pgdg-python3-dns: Initial packaging
authorDevrim Gunduz <devrim@gunduz.org>
Wed, 21 May 2025 11:37:47 +0000 (14:37 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Wed, 21 May 2025 11:37:47 +0000 (14:37 +0300)
rpm/redhat/main/common/pgdg-python3-dns/EL-9/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pgdg-python3-dns/EL-9/pgdg-python3-dns.spec [new symlink]
rpm/redhat/main/common/pgdg-python3-dns/main/Makefile [new file with mode: 0644]
rpm/redhat/main/common/pgdg-python3-dns/main/pgdg-python3-dns.spec [new file with mode: 0644]

diff --git a/rpm/redhat/main/common/pgdg-python3-dns/EL-9/Makefile b/rpm/redhat/main/common/pgdg-python3-dns/EL-9/Makefile
new file mode 100644 (file)
index 0000000..a386722
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.rhel9
+SPECFILE="pgdg-python3-dns.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pgdg-python3-dns/EL-9/pgdg-python3-dns.spec b/rpm/redhat/main/common/pgdg-python3-dns/EL-9/pgdg-python3-dns.spec
new file mode 120000 (symlink)
index 0000000..fb80647
--- /dev/null
@@ -0,0 +1 @@
+../main/pgdg-python3-dns.spec
\ No newline at end of file
diff --git a/rpm/redhat/main/common/pgdg-python3-dns/main/Makefile b/rpm/redhat/main/common/pgdg-python3-dns/main/Makefile
new file mode 100644 (file)
index 0000000..44a22db
--- /dev/null
@@ -0,0 +1,17 @@
+#################################
+# RPM-specific Makefile                #
+# https://yum.postgresql.org   #
+#                              #
+# Devrim Gunduz                        #
+# devrim@gunduz.org            #
+#################################
+
+# Predefined values
+
+ARCH=`rpm --eval "%{_arch}"`
+DIR=`pwd`
+DIST=.f99
+SPECFILE="pgdg-python3-dns.spec"
+
+# Now, include global Makefile
+include ../../../../global/Makefile.global
diff --git a/rpm/redhat/main/common/pgdg-python3-dns/main/pgdg-python3-dns.spec b/rpm/redhat/main/common/pgdg-python3-dns/main/pgdg-python3-dns.spec
new file mode 100644 (file)
index 0000000..c2ad433
--- /dev/null
@@ -0,0 +1,61 @@
+%if 0%{?fedora} && 0%{?fedora} <= 42
+%global        __python3 %{_bindir}/python3.13
+%global        python3_pkgversion 3.13
+%endif
+%if 0%{?rhel} && 0%{?rhel} <= 10
+%global        __python3 %{_bindir}/python3.12
+%global        python3_pkgversion 3.12
+%endif
+%if 0%{?suse_version} >= 1500
+%global        __python3 %{_bindir}/python3.11
+%global        python3_pkgversion 311
+%endif
+
+Name:          python%{python3_pkgversion}-dns
+Version:       1.15.0
+Release:       42PGDG%{?dist}
+Summary:       DNS toolkit for Python
+
+Group:         Development/Languages
+License:       MIT
+URL:           http://www.dnspython.org/
+
+Source0:       http://www.dnspython.org/kits/%{version}/dnspython-%{version}.tar.gz
+
+BuildArch:     noarch
+
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+
+%description
+dnspython is a DNS toolkit for Python. It supports almost all record
+types. It can be used for queries, zone transfers, and dynamic
+updates. It supports TSIG authenticated messages and EDNS0.
+
+dnspython provides both high and low level access to DNS. The high
+level classes perform queries for data of a given name, type, and
+class, and return an answer set. The low level classes allow direct
+manipulation of DNS zones, messages, names, and records.
+
+%prep
+%setup -q -n dnspython-%{version}
+
+# strip exec permissions so that we don't pick up dependencies from docs
+find examples -type f | xargs chmod a-x
+
+%build
+%py3_build
+
+%install
+%py3_install
+%files -n python%{python3_pkgversion}-dns
+%defattr(-,root,root,-)
+# Add README.* when it is included with the source (commit a906279)
+%doc {ChangeLog,LICENSE,examples}
+%{python3_sitelib}/*egg-info
+%{python3_sitelib}/dns
+
+%changelog
+* Wed May 21 2025 Devrim Gunduz <devrim@gunduz.org> - 1.15.0-42PGDG
+- Initial packaging for the PostgreSQL RPM repository to support
+  patroni-etcd package on RHEL 9.