Backport SPEC improvements from pylibacl

This commit is contained in:
Marcin Zajączkowski 2019-12-03 19:17:42 +01:00
parent b6f31a5fc0
commit d3d8bbf39c

View File

@ -1,7 +1,7 @@
Name: pyxattr
Summary: Extended attributes library wrapper for Python
Version: 0.7.1
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
URL: https://pyxattr.k1024.org/
Source0: %{URL}/downloads/%{name}-%{version}.tar.gz
@ -14,24 +14,20 @@ BuildRequires: python3-devel
BuildRequires: gnupg2
BuildRequires: %{py3_dist pytest}
%global _description\
Python extension module wrapper for libattr. It allows to query, list,\
add and remove extended attributes from files and directories.
%global _description %{expand:
Python extension module wrapper for libattr. It allows to query, list,
add and remove extended attributes from files and directories.}
%description %_description
%package -n python3-%{name}
Summary: Extended attributes library wrapper for Python 3
Summary: %{summary}
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
Python extension module wrapper for libattr. It allows to query, list,
add and remove extended attributes from files and directories.
%description -n python3-%{name} %_description
%prep
gpg2 --import --import-options import-export,import-minimal %{SOURCE2} > ./gpg-keyring.gpg
gpg2 --keyring ./gpg-keyring.gpg --verify %{SOURCE1}
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup
%build
@ -55,6 +51,9 @@ python3 -m pytest test
%doc NEWS README.md
%changelog
* Tue Dec 03 2019 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.7.1-2
- Backport RPM specification improvements from sister project pylibacl
* Tue Nov 26 2019 Dan Čermák <dan.cermak@cgc-instruments.com> - 0.7.1-1
- Update to 0.7.1
- Drop python2 subpackage