diff --git a/gfal2-util.spec b/gfal2-util.spec index 3e592b7..aff985b 100644 --- a/gfal2-util.spec +++ b/gfal2-util.spec @@ -1,6 +1,10 @@ +%{!?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.6.0 -Release: 5%{?dist} +Version: 1.5.3 +Release: 1%{?dist} Summary: GFAL2 utility tools License: GPLv3 URL: http://dmc.web.cern.ch/ @@ -14,13 +18,17 @@ Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: gfal2-core -BuildRequires: gfal2-python >= 1.9.5 +BuildRequires: gfal2-python >= 1.9.0 BuildRequires: gfal2-plugin-file -BuildRequires: python3-devel +BuildRequires: python2-devel -Requires: gfal2-python >= 1.9.5 +Requires: gfal2-python >= 1.9.0 Requires: python2 +%if %{?fedora}%{!?fedora:0} < 26 +BuildRequires: python-argparse +Requires: python-argparse +%endif %description gfal2-util is a set of basic utility tools for file @@ -29,10 +37,11 @@ gfal2-util supports the protocols of GFAL 2.0 : WebDav(s), gridFTP, http(s), SRM, xrootd, etc... %clean -%{__python3} setup.py clean +rm -rf %{buildroot} +%{__python2} setup.py clean %prep -%autosetup +%setup -q %build # Validate the version @@ -44,59 +53,23 @@ if [ "$gfal2_util_ver" != "$gfal2_util_spec_ver" ]; then exit 1 fi -%{__python3} setup.py build +%{__python2} setup.py build %install -%{__python3} setup.py install --root=%{buildroot} +rm -rf %{buildroot} +%{__python2} setup.py install --root=%{buildroot} + +%check +%{__python2} test/functional/test_all.py %files -%{python3_sitelib}/gfal2_util* +%{python2_sitelib}/gfal2_util* %{_bindir}/gfal-* %{_mandir}/man1/* -%doc RELEASE-NOTES VERSION -%license LICENSE - -%changelog -* Thu Jul 22 2021 Fedora Release Engineering - 1.6.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 1.6.0-4 -- Rebuilt for Python 3.10 - -* Tue Feb 02 2021 Filipe Rosset - 1.6.0-3 -- Disable tests to fix FTBFS for while - -* Tue Jan 26 2021 Fedora Release Engineering - 1.6.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Tue Dec 15 2020 Michal Simon - 1.6.0-1 -- Upgrade to upstream release 1.6.0 +%doc RELEASE-NOTES VERSION LICENSE -* Sat Aug 01 2020 Fedora Release Engineering - 1.5.3-9 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Mon Jul 27 2020 Fedora Release Engineering - 1.5.3-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue May 26 2020 Miro Hrončok - 1.5.3-7 -- Rebuilt for Python 3.9 - -* Tue Jan 28 2020 Fedora Release Engineering - 1.5.3-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Mon Sep 16 2019 Andrea Manzi - 1.5.3-5 -- updated dependency name for python3-gfal2 - -* Mon Aug 19 2019 Miro Hrončok - 1.5.3-4 -- Rebuilt for Python 3.8 - -* Thu Jul 25 2019 Fedora Release Engineering - 1.5.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Tue Jul 23 2019 Andrea Manzi - 1.5.3-2 -- python3 version +%changelog * Thu Jul 11 2019 Andrea Manzi - 1.5.3-1 - New upstream release diff --git a/sources b/sources index 65a815f..81b7965 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gfal2-util-1.6.0.tar.gz) = 5a48aa54c989f89e6519fd96f9bca33d43f3c94604fb7056076e9902fd18db14b5708222bbb50f4ddd648d0a214b15ad9a52b65bcee3d41686d4e8116e047670 +SHA512 (gfal2-util-1.5.3.tar.gz) = ac0f3ed4c3400818d2cb511d7ba498feb2e972c0af9f37a6878caf8dd972cfb5a259a6970e046d73662be4812fe5ccec27e0a5ab3718c2c7e1b2e971f4faef29