!4 pyxattr update to 0.7.1

Merge pull request !4 from yixiangzhike/master
This commit is contained in:
openeuler-ci-bot 2020-07-30 14:16:24 +08:00 committed by Gitee
commit 6bd4b463f4
3 changed files with 9 additions and 36 deletions

Binary file not shown.

BIN
pyxattr-0.7.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,29 +1,17 @@
Name: pyxattr
Summary: Extended attributes library wrapper for Python
Version: 0.6.1
Release: 2
Version: 0.7.1
Release: 1
License: LGPLv2+
URL: http://pyxattr.k1024.org/
Source: https://pyxattr.k1024.org/downloads/%{name}-%{version}.tar.gz
BuildRequires: gcc libattr-devel python2-devel python2-setuptools python3-devel python3-setuptools
BuildRequires: gcc libattr-devel python3-devel python3-setuptools
%description
This is the pyxattr module, a Python extension module which gives access to
the extended attributes for filesystem objects available in some operating systems.
%package -n python2-%{name}
Summary: Extended attributes library wrapper for Python 2
%{?python_provide:%python_provide python2-%{name}}
Provides: pyxattr = %{version}-%{release}
Provides: pyxattr%{?_isa} = %{version}-%{release}
Obsoletes: pyxattr < %{version}-%{release}
%description -n python2-%{name}
This is the pyxattr module, a Python extension module which gives access to
the extended attributes for filesystem objects available in some operating systems.
for python2
%package -n python3-%{name}
Summary: Extended attributes library wrapper for Python 3
@ -39,42 +27,27 @@ rm -rf %{py3dir}
cp -a . %{py3dir}
%build
CFLAGS="%{optflags}" %{__python2} setup.py build
pushd %{py3dir}
CFLAGS="%{optflags}" %{__python3} setup.py build
popd
%py3_build
%install
%{__python2} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
pushd %{py3dir}
%{__python3} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
popd
%py3_install
%check
#export TEST_IGNORE_XATTRS=security.selinux
#%{__python2} setup.py test
#pushd %{py3dir}
#%{__python3} setup.py test
#popd
%files -n python2-%{name}
%{python2_sitearch}/*.so
%{python2_sitearch}/pyxattr*
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc NEWS README.rst
%files -n python3-%{name}
%{python3_sitearch}/*.so
%{python3_sitearch}/pyxattr*
%{!?_licensedir:%global license %%doc}
%license COPYING
%doc NEWS README.rst
%doc NEWS README.md
%changelog
* Wed Jul 29 2020 zhangxingliang <zhangxingliang@hauwei.com> - 0.7.1-1
- update to 0.7.1
* Tue Jul 7 2020 Liquor <lirui130@hauwei.com> - 0.6.1-2
- cancel the check