epel9
Irina Boverman 5 years ago
parent e2c464023b
commit 17a3dc9543

@ -10,13 +10,6 @@
%filter_setup %filter_setup
} }
%global pythonx python2
%{!?__python2:%global __python2 %{__python}}
%{!?__python2:%global python2_sitelib %{python_sitelib}}
%{!?__python2:%global python2_sitearch %{python_sitearch}}
%{!?__python2:%global pythonx python}
Name: qpid-proton Name: qpid-proton
Version: 0.30.0 Version: 0.30.0
Release: 1%{?dist} Release: 1%{?dist}
@ -41,7 +34,6 @@ BuildRequires: pkgconfig
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: libuuid-devel BuildRequires: libuuid-devel
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: %{pythonx}-devel
%if 0%{?fedora} || 0%{?rhel} > 7 %if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
@ -259,10 +251,8 @@ cat %{buildroot}%{proton_datadir}/examples/python/proton_server.py >> %{buildroo
mv %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original %{buildroot}%{proton_datadir}/examples/python/proton_server.py mv %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original %{buildroot}%{proton_datadir}/examples/python/proton_server.py
%endif %endif
chmod +x %{buildroot}%{python2_sitearch}/_cproton.so
%if 0%{?fedora} || 0%{?rhel} > 7 %if 0%{?fedora} || 0%{?rhel} > 7
chmod +x %{buildroot}%{python3_sitearch}/_cproton.so chmod +x %{buildroot}%{python3_sitearch}/_cproton.so
%endif
%if 0%{?rhel} && 0%{?rhel} <= 6 %if 0%{?rhel} && 0%{?rhel} <= 6
install -pm 644 %{SOURCE1} %{buildroot}%{proton_datadir}/ install -pm 644 %{SOURCE1} %{buildroot}%{proton_datadir}/

Loading…
Cancel
Save