11
22%global debug_package %{nil }
33
4- %if 0%{?fedora } && 0%{?fedora } == 43
5- %global __ospython %{_bindir }/python3.14
6- %global python3_pkgversion 3.14
4+ %if 0%{?fedora } && 0%{?fedora } == 45
5+ %global __ospython %{_bindir }/python3.15
6+ %global python3_pkgversion 3.15
77%global python3_pkgprefix python3
88%endif
9- %if 0%{?fedora } && 0%{?fedora } <= 42
10- %global __ospython %{_bindir }/python3.13
11- %global python3_pkgversion 3.13
9+ %if 0%{?fedora } && 0%{?fedora } <= 44
10+ %global __ospython %{_bindir }/python3.14
11+ %global python3_pkgversion 3.14
1212%global python3_pkgprefix python3
1313%endif
14- %if 0%{?rhel } && 0%{?rhel } == 8
15- %global __ospython %{_bindir }/python3
16- %global python3_pkgversion 3.12
17- %global python3_pkgprefix python3.12
18- %endif
19- %if 0%{?rhel } && 0%{?rhel } >= 9
14+ %if 0%{?rhel } && 0%{?rhel } <= 10
2015%global __ospython %{_bindir }/python3.12
2116%global python3_pkgversion 3.12
2217%global python3_pkgprefix python3.12
@@ -51,12 +46,13 @@ BuildRequires: python%{python3_pkgversion}-devel
5146
5247Requires: %{python3_pkgprefix }-six
5348Requires: %{python3_pkgprefix }-dateutil
49+ Requires: %{python3_pkgprefix }-systemd
5450Requires: %{python3_pkgprefix }-ydiff < 1.5
5551Requires: %{python3_pkgprefix }-ydiff >= 1.4.2
5652Requires: %{name }-etcd
5753
5854
59- %if ! 0%{?suse_version }
55+ %if ! 0%{?suse_version } && 0%{? rhel } != 10
6056Requires: %{python3_pkgprefix }-click
6157Requires: %{python3_pkgprefix }-cryptography >= 1.4
6258Requires: %{python3_pkgprefix }-prettytable
@@ -67,6 +63,17 @@ Requires: %{python3_pkgprefix}-urllib3 >= 1.19.1
6763Requires: %{python3_pkgprefix }-wcwidth
6864%endif
6965
66+ %if 0%{?rhel } && 0%{?rhel } == 10
67+ Requires: python3-click
68+ Requires: python%{python3_pkgversion }-cryptography >= 1.4
69+ Requires: python3-prettytable
70+ Requires: python%{python3_pkgversion }-pyyaml
71+ Requires: python3-psutil
72+ Requires: python%{python3_pkgversion }-urllib3 >= 1.19.1
73+ Requires: python3-psycopg2
74+ Requires: python3-wcwidth
75+ %endif
76+
7077%if 0%{?suse_version } >= 1500
7178Requires: %{python3_pkgprefix }-click
7279Requires: %{python3_pkgprefix }-cryptography >= 1.4
@@ -100,18 +107,28 @@ Summary: Related components to use patroni with Consul
100107Requires: %{name } = %{epoch }:%{version }-%{release }
101108Requires: consul
102109Requires: %{python3_pkgprefix }-py-consul >= 1.6.0
110+ %if 0%{?rhel } != 10
103111Requires: %{python3_pkgprefix }-requests
112+ %endif
113+ %if 0%{?rhel } && 0%{?rhel } == 10
114+ Requires: python3-requests
115+ %endif
104116%description -n %{name }-consul
105117Meta package to pull consul related dependencies for patroni
106118
107119%package -n %{name }-etcd
108120Summary: Related components to use patroni with etcd
109121Requires: %{name } = %{epoch }:%{version }-%{release }
110- %if ! 0%{?suse_version }
122+ %if ! 0%{?suse_version } && 0%{? rhel } != 10
111123Requires: %{python3_pkgprefix }-etcd >= 0.4.3
112124Requires: %{python3_pkgprefix }-dns
113125%endif
126+ %if 0%{?rhel } && 0%{?rhel } == 10
127+ Requires: python3-etcd >= 0.4.3
128+ Requires: python3-dns
129+ %endif
114130%if 0%{?suse_version } >= 1500
131+ Requires: %{python3_pkgprefix }-etcd >= 0.4.3
115132Requires: %{python3_pkgprefix }-dnspython
116133%endif
117134%description -n %{name }-etcd
@@ -120,14 +137,24 @@ Meta package to pull etcd related dependencies for patroni
120137%package -n %{name }-aws
121138Summary: Related components to use patroni on AWS
122139Requires: %{name } = %{epoch }:%{version }-%{release }
140+ %if 0%{?rhel } != 10
123141Requires: %{python3_pkgprefix }-boto3
142+ %endif
143+ %if 0%{?rhel } && 0%{?rhel } == 10
144+ Requires: python3-boto3
145+ %endif
124146%description -n %{name }-aws
125147Meta package to pull AWS related dependencies for patroni
126148
127149%package -n %{name }-zookeeper
128150Summary: Related components to use patroni with Zookeeper
129151Requires: %{name } = %{epoch }:%{version }-%{release }
152+ %if 0%{?rhel } != 10
130153Requires: %{python3_pkgprefix }-kazoo >= 1.3.1
154+ %endif
155+ %if 0%{?rhel } && 0%{?rhel } == 10
156+ Requires: python3-kazoo >= 1.3.1
157+ %endif
131158%description -n %{name }-zookeeper
132159Meta package to pull zookeeper related dependencies for patroni
133160
0 commit comments