diff --git a/.gitignore b/.gitignore index 1482ea5..a1d8858 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /*.tar.gz /*.rpm +/dmlite-python3.patch diff --git a/dmlite.spec b/dmlite.spec index 8a32f86..e1568cd 100644 --- a/dmlite.spec +++ b/dmlite.spec @@ -74,6 +74,7 @@ URL: https://gitlab.cern.ch/lcgdm/dmlite # git clone http://gitlab.cern.ch/lcgdm/dmlite.git # cd dmlite && git archive --prefix dmlite-1.13.2/ tags/v1.13.2 | gzip > dmlite-1.13.2.tar.gz Source0: %{name}-%{version}.tar.gz +Patch0: dmlite-python3.patch %if %{?fedora}%{!?fedora:0} >= 17 || %{?rhel}%{!?rhel:0} >= 7 BuildRequires: gcc-c++ @@ -735,6 +736,9 @@ This package provides the modules for the DPM configuration via puppet %prep %setup -q -n %{name}-%{version} +%if %{?fedora}%{!?fedora:0} >= 31 || %{?rhel}%{!?rhel:0} >= 8 +%patch0 -p1 +%endif %build ./src/plugins/apache-httpd/buildcurl.sh diff --git a/sources b/sources index 2d52a75..dfc47a4 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ +SHA512 (dmlite-python3.patch) = ddbf90a11e081965095d30cd75cfbed74cc3ed374dd52adddc0998942e47d1f3991af14a1b9cc2577720bd9456b6d7eaf07131ee76a389551de4647f804cfb99 SHA512 (dmlite-1.13.2.tar.gz) = 92c05c08b53ffd8a0dbed6f9d81f715049ec5f187f8a66469fd20a95f548f97582d95d84675275e80afdf6577d0377b074eccacda52bd73c4ded3053e9cde844