From e10ead3c25616bb6572b50fe3f03a50b71428316 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Feb 15 2018 15:21:50 +0000 Subject: Version 3.2 Signed-off-by: Aurélien Bompard --- diff --git a/.gitignore b/.gitignore index a819259..e8b000a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /flufl.lock-2.4.1.tar.gz +/flufl.lock-3.2.tar.gz +/LICENSE diff --git a/python-flufl-lock.spec b/python-flufl-lock.spec index bfbcf4d..9f6bc34 100644 --- a/python-flufl-lock.spec +++ b/python-flufl-lock.spec @@ -6,52 +6,36 @@ The flufl.lock library provides an NFS-safe file-based locking algorithm \ influenced by the GNU/Linux "open(2)" man page, under the description of \ the "O_EXCL" option. -# EPEL7 support: default Python is Python 2, and Python2 packages prefix -# is unversioned. -%if 0%{?rhel} && 0%{?rhel} <= 7 -%global py2_namespace python -%else -%global py2_namespace python2 -%endif Name: python-%{pkgname} -Version: 2.4.1 -Release: 6%{?dist} +Version: 3.2 +Release: 1%{?dist} Summary: %{summary} -License: LGPLv3+ +License: ASL 2.0 URL: https://gitlab.com/warsaw/flufl.lock Source0: https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz +Source1: https://gitlab.com/warsaw/flufl.lock/raw/master/LICENSE BuildArch: noarch -BuildRequires: %{py2_namespace}-devel -BuildRequires: %{py2_namespace}-setuptools -# Python3 BuildRequires: python-srpm-macros BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-atpublic %if 0%{?with_python3_other} BuildRequires: python%{python3_other_pkgversion}-devel BuildRequires: python%{python3_other_pkgversion}-setuptools +BuildRequires: python%{python3_other_pkgversion}-atpublic %endif %description %{_description} -%if %{py2_namespace} != python -%package -n %{py2_namespace}-%{pkgname} -Summary: %{summary} -%{?python_provide:%python_provide %{py2_namespace}-%{pkgname}} -Requires: %{py2_namespace}-setuptools - -%description -n %{py2_namespace}-%{pkgname} %{_description} -%endif - - %package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} Requires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-atpublic %description -n python%{python3_pkgversion}-%{pkgname} %{_description} @@ -61,6 +45,7 @@ Requires: python%{python3_pkgversion}-setuptools Summary: %{summary} %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}} Requires: python%{python3_other_pkgversion}-setuptools +Requires: python%{python3_other_pkgversion}-atpublic %description -n python%{python3_other_pkgversion}-%{pkgname} %{_description} %endif @@ -68,10 +53,10 @@ Requires: python%{python3_other_pkgversion}-setuptools %prep %autosetup -n %{srcname}-%{version} +cp -p %{SOURCE1} . %build -%py2_build %py3_build %if 0%{?with_python3_other} %py3_other_build @@ -79,7 +64,6 @@ Requires: python%{python3_other_pkgversion}-setuptools %install -%py2_install %py3_install %if 0%{?with_python3_other} %py3_other_install @@ -90,28 +74,23 @@ rm -rf %{buildroot}%{_prefix}/lib/python*/site-packages/flufl/lock/{*.rst,docs,c %check -%{__python2} setup.py test %{__python3} setup.py test %if 0%{?with_python3_other} %{__python3_other} setup.py test %endif -%files -n %{py2_namespace}-%{pkgname} -%doc flufl/lock/README.rst flufl/lock/NEWS.rst flufl/lock/docs/using.rst -%{python2_sitelib}/flufl/ -%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}.egg-info/ -%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}-nspkg.pth - %files -n python%{python3_pkgversion}-%{pkgname} -%doc flufl/lock/README.rst flufl/lock/NEWS.rst flufl/lock/docs/using.rst +%license LICENSE +%doc README.rst flufl/lock/NEWS.rst flufl/lock/docs/using.rst %{python3_sitelib}/flufl/ %{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/ %{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}-nspkg.pth %if 0%{?with_python3_other} %files -n python%{python3_other_pkgversion}-%{pkgname} -%doc flufl/lock/README.rst flufl/lock/NEWS.rst flufl/lock/docs/using.rst +%license LICENSE +%doc README.rst flufl/lock/NEWS.rst flufl/lock/docs/using.rst %{python3_other_sitelib}/flufl/ %{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}.egg-info/ %{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}-nspkg.pth @@ -119,6 +98,9 @@ rm -rf %{buildroot}%{_prefix}/lib/python*/site-packages/flufl/lock/{*.rst,docs,c %changelog +* Thu Feb 15 2018 Aurelien Bompard - 3.2-1 +- Version 3.2 + * Fri Feb 09 2018 Fedora Release Engineering - 2.4.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index e9bff5c..55fb910 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -294da1c7a7473a5f9e8d3ad01b4a1259 flufl.lock-2.4.1.tar.gz +SHA512 (flufl.lock-3.2.tar.gz) = 496195e1c52f628bc6c0e8fc3dcd5373ed01cfee35b6165cae37ab4b90d70265c6a0aea565f1e0663277c2b9e9bafde8af1420133a15e6254275fad2f28a56d0 +SHA512 (LICENSE) = 07b0382feb2b1dd80267241bb5cbac15971fa6237d66f793d0282de7ecb958bbcf65aba7d5a0f458e2fb2cfec17b987ca34c129e0775bc5283245251e388c08f