Update to 0.7.1
- drop python2 subpackage - add gpg signature verification (as described here: https://fedoraproject.org/wiki/PackagingDrafts:GPGSignatures) - use pytest to run the tests as upstream does now
This commit is contained in:
parent
c01b295210
commit
664f7b143e
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
/pyxattr-0.5.3.tar.gz
|
||||
/pyxattr-0.5.6.tar.gz
|
||||
/pyxattr-0.6.1.tar.gz
|
||||
/pyxattr-0.7.1.tar.gz
|
||||
|
75
key.asc
Normal file
75
key.asc
Normal file
@ -0,0 +1,75 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBEoSXQEBEACbnpKK4Er2m50OsiKOO8UDTLvaP95Vzi34pYSMB5HelvUJy1NU
|
||||
QV372A2N4PyiMXuD0ZUkUWdJ64GxHwzB5788hutXa3XIsQuYzmth2Dd1p+dMu0VX
|
||||
JwJ50nHhMnApJToNV/rtd++mPkPtpwuyImdNsEM1/ThxirEPW6ii9+npImlnLlkY
|
||||
kNZFaD96UTm2/hJZJ2n+i9yuhj4hM6Gw/uyRG54UmXoS9ZsCdZLVH6Mmrr42mtGv
|
||||
ejhrlOlOsxsJ0kOtxMGxFqds/+MLBekywBLSk+tDpt7sbBZsTvkSDQGfscgoFcCB
|
||||
w2mlU9D4ZpjgKxiXftKME94FuFJ6y291Y+e4q6FrjpqLFWr5BVIY1F/k49oPHQbH
|
||||
ihIeDkRlfldHHde5ZpERQbf7Xmf2W/m8AzLwu5IFXFBaQFN0NmzrNRFCZfVp8IAG
|
||||
7BTrurEhZzY7PLYdNjXd5H7A6xfZPOTbBTxUQIWirPHs1z6nHznl+I/lJIz9ouFh
|
||||
Z3MNKR4MCsOdDL7JOtLv2wLaC5KSbbdnJ9alo3K8+hYcVbzr4GEGHABOLIbiBLfT
|
||||
H3iFvttWPjYqK1bYsMbS7MWUxAxc2zdR8Y9qR0JWRGTKlM0hz3BlFK+71sEjhWVC
|
||||
7h3DYEi4FjqLaryU+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UBLIC KEY BLOCK-----
|
16
pyxattr-0.7.1.tar.gz.asc
Normal file
16
pyxattr-0.7.1.tar.gz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEy5TjqjsXVdYeuxml9m4+QZ+E9N4FAl3cnnoACgkQ9m4+QZ+E
|
||||
9N7AlxAAgw5hy4IGwNL1hDX75bnHA6S+u63EdEiGrWaaq2ilLp/Sg711UcvFvMEH
|
||||
3vmc/f52DFsGQZ4hETSz6KUieYtgjqWCCC7nhs7ZRJYf3vzL0YhCdekuQwjtdbkX
|
||||
8XXr/hPJZ5os8IzFD48Mxs8k1O3g+/GJvzKGDrZ5Rz3fucEA7QGSRBeDg+3nlnee
|
||||
SSwlwN1LZxzod83kkl9AuwfWu+oFG5v8Qv9gebiJHBEND+CgqgSo2hHjPHoZsUB6
|
||||
sJt3Cs7XTdn66lzNSimZB2s1NdMtrlu5fOaiY26xiAWW0DdHh0jl/pukTeN1pgr8
|
||||
/BN6gzHpXKqbbKBvkzbe3JvjZaqyP4KabWAhJhWpnW+vRD47BaefRQcmxPrfzUN1
|
||||
xYMq9EKI/cxCHIlnLs0/cujZGX96s0k4vIssAx+5jmRHiux6DVklVGnUnjshzquP
|
||||
AfhKo2RZvMSmDM5QXJAiUoyvZyZhowXglnYg8GrXSbvveRNvg3xDA5e2EJzslSEB
|
||||
UsHvTimh1BqZtp+IpbbPA8MkAXze9m5R1gkWuuWYd1BdiTfvFW3izywi1PjE6jKu
|
||||
tJqXKniHTSU96tvqIJ7Q47TQSnJpIH7mKdUOepnz2GwwdbNA8F6e7+3aT+8j5cpR
|
||||
QzpioM7k+RCiyvOn8dlKaIUOmtc4SWjBZ3ib6EWe6Wf3SPsK4X4=
|
||||
=r2dp
|
||||
-----END PGP SIGNATURE-----
|
51
pyxattr.spec
51
pyxattr.spec
@ -1,14 +1,18 @@
|
||||
Name: pyxattr
|
||||
Summary: Extended attributes library wrapper for Python
|
||||
Version: 0.6.1
|
||||
Release: 3%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: https://pyxattr.k1024.org/
|
||||
Source: %{url}/downloads/%{name}-%{version}.tar.gz
|
||||
Name: pyxattr
|
||||
Summary: Extended attributes library wrapper for Python
|
||||
Version: 0.7.1
|
||||
Release: 1%{?dist}
|
||||
License: LGPLv2+
|
||||
URL: https://pyxattr.k1024.org/
|
||||
Source0: %{URL}/downloads/%{name}-%{version}.tar.gz
|
||||
Source1: %{URL}/downloads/%{name}-%{version}.tar.gz.asc
|
||||
Source2: https://k1024.org/files/key.asc
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: libattr-devel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: gnupg2
|
||||
BuildRequires: %{py3_dist pytest}
|
||||
|
||||
%global _description\
|
||||
Python extension module wrapper for libattr. It allows to query, list,\
|
||||
@ -16,12 +20,6 @@ add and remove extended attributes from files and directories.
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python2-%{name}
|
||||
Summary: %summary
|
||||
%{?python_provide:%python_provide python2-%{name}}
|
||||
|
||||
%description -n python2-%{name} %_description
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Extended attributes library wrapper for Python 3
|
||||
%{?python_provide:%python_provide python3-%{name}}
|
||||
@ -30,39 +28,38 @@ Summary: Extended attributes library wrapper for Python 3
|
||||
Python extension module wrapper for libattr. It allows to query, list,
|
||||
add and remove extended attributes from files and directories.
|
||||
|
||||
Python 3 version.
|
||||
|
||||
%prep
|
||||
gpg2 --import --import-options import-export,import-minimal %{SOURCE2} > ./gpg-keyring.gpg
|
||||
gpg2 --keyring ./gpg-keyring.gpg --verify %{SOURCE1}
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%py2_build
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%py2_install
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
# selinux in koji produces unexpected xattrs for tests
|
||||
export TEST_IGNORE_XATTRS=security.selinux
|
||||
|
||||
python2 setup.py test
|
||||
python3 setup.py test
|
||||
|
||||
%files -n python2-%{name}
|
||||
%{python2_sitearch}/xattr.so
|
||||
%{python2_sitearch}/*egg-info
|
||||
%license COPYING
|
||||
%doc NEWS README.rst
|
||||
# the module is just a C extension => need to add the installed destination to
|
||||
# PYTHONPATH, otherwise it won't be found
|
||||
export PYTHONPATH=%{buildroot}%{python3_sitearch}:$PYTHONPATH
|
||||
python3 -m pytest test
|
||||
|
||||
%files -n python3-%{name}
|
||||
%{python3_sitearch}/xattr.cpython-??*
|
||||
%{python3_sitearch}/*egg-info
|
||||
%license COPYING
|
||||
%doc NEWS README.rst
|
||||
%doc NEWS README.md
|
||||
|
||||
%changelog
|
||||
* Tue Nov 26 2019 Dan Čermák <dan.cermak@cgc-instruments.com> - 0.7.1-1
|
||||
- Update to 0.7.1
|
||||
- Drop python2 subpackage
|
||||
- Add gpg signature check
|
||||
|
||||
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.1-3
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (pyxattr-0.6.1.tar.gz) = 2c2defee81e2bd7e7e7f67d33676858f27494f12ba5c3d34bd548912a058cae562e9e9ed0dc5697892d1d55c29f2a5e10455260092b63faa54e40b841c42681d
|
||||
SHA512 (pyxattr-0.7.1.tar.gz) = 093cb3f9b9637194b9737c07da7dde45b3d5083ec16a9209af80d30c86da8f93badff5aada395415be3dd48da73004286e47d0aa0671c95e65b0492d02e86009
|
||||
|
Loading…
Reference in New Issue
Block a user