diff --git a/gfal2-util.spec b/gfal2-util.spec index 8b04602..0d5e168 100644 --- a/gfal2-util.spec +++ b/gfal2-util.spec @@ -1,12 +1,11 @@ -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%{!?python_version: %global python_version %(%{__python} -c "from sys import version_info; print('%d.%d'% (version_info[0],version_info[1]))")} +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python2_version: %global python2_version %(%{__python2} -c "from sys import version_info; print('%d.%d'% (version_info[0],version_info[1]))")} Name: gfal2-util -Version: 1.5.1 +Version: 1.5.3 Release: 1%{?dist} Summary: GFAL2 utility tools -Group: Applications/Internet License: GPLv3 URL: http://dmc.web.cern.ch/ # git clone https://gitlab.cern.ch/dmc/gfal2-util.git gfal2-util-1.5.1 --depth=1 @@ -15,16 +14,15 @@ URL: http://dmc.web.cern.ch/ # popd # tar czf gfal2-util-1.5.1.tar.gz --exclude-vcs gfal2-util-1.5.1 Source0: %{name}-%{version}.tar.gz -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: gfal2-core -BuildRequires: gfal2-python >= 1.9.0 +BuildRequires: python2-gfal2 >= 1.9.0 BuildRequires: gfal2-plugin-file -BuildRequires: python2 +BuildRequires: python2-devel -Requires: gfal2-python >= 1.9.0 +Requires: python2-gfal2 >= 1.9.0 Requires: python2 %if %{?fedora}%{!?fedora:0} < 26 @@ -40,7 +38,7 @@ gridFTP, http(s), SRM, xrootd, etc... %clean rm -rf %{buildroot} -python setup.py clean +%{__python2} setup.py clean %prep %setup -q @@ -55,24 +53,42 @@ if [ "$gfal2_util_ver" != "$gfal2_util_spec_ver" ]; then exit 1 fi -python setup.py build +%{__python2} setup.py build %install rm -rf %{buildroot} -python setup.py install --root=%{buildroot} +%{__python2} setup.py install --root=%{buildroot} %check -python test/functional/test_all.py +%{__python2} test/functional/test_all.py %files -%defattr (-,root,root) -%{python_sitelib}/gfal2_util* +%{python2_sitelib}/gfal2_util* %{_bindir}/gfal-* %{_mandir}/man1/* %doc RELEASE-NOTES VERSION LICENSE %changelog +* Thu Jul 11 2019 Andrea Manzi - 1.5.3-1 +- New upstream release + +* Sun Feb 17 2019 Andrea Manzi - 1.5.2-1 +- New upstream release + +* Thu Jan 31 2019 Fedora Release Engineering - 1.5.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Feb 20 2018 Iryna Shcherbina - 1.5.1-3 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Wed Feb 07 2018 Fedora Release Engineering - 1.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Jul 26 2017 Alejandro Alvarez - 1.5.1-1 - New upstream release diff --git a/sources b/sources index afed5f1..81b7965 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gfal2-util-1.5.1.tar.gz) = 4b0c47d0e5f7b82016d429f0c5f2b2efd0d36411a7a5b54250f79397c0ad874a41b625b761f004914bddbe646598795af79c50d9407c809280eb4349b67041f5 +SHA512 (gfal2-util-1.5.3.tar.gz) = ac0f3ed4c3400818d2cb511d7ba498feb2e972c0af9f37a6878caf8dd972cfb5a259a6970e046d73662be4812fe5ccec27e0a5ab3718c2c7e1b2e971f4faef29