pyxattr/pyxattr.spec

60 lines
1.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:15:41 -04:00
Name: pyxattr
Summary: Extended attributes library wrapper for Python
2021-01-26 11:55:06 +08:00
Version: 0.7.2
2020-07-29 18:39:44 +08:00
Release: 1
2019-09-30 11:15:41 -04:00
License: LGPLv2+
URL: http://pyxattr.k1024.org/
Source: https://pyxattr.k1024.org/downloads/%{name}-%{version}.tar.gz
2020-07-29 18:39:44 +08:00
BuildRequires: gcc libattr-devel python3-devel python3-setuptools
2021-01-26 11:55:06 +08:00
BuildRequires: python3-pytest
2019-09-30 11:15:41 -04:00
%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 python3-%{name}
Summary: Extended attributes library wrapper for Python 3
%description -n python3-%{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 python3
%prep
%setup -q
rm -rf %{py3dir}
cp -a . %{py3dir}
%build
2020-07-29 18:39:44 +08:00
%py3_build
2019-09-30 11:15:41 -04:00
%install
2020-07-29 18:39:44 +08:00
%py3_install
2019-09-30 11:15:41 -04:00
%check
2021-01-26 11:55:06 +08:00
export TEST_IGNORE_XATTRS=security.selinux
export PYTHONPATH=%{buildroot}%{python3_sitearch}:$PYTHONPATH
%{__python3} -m pytest tests
2019-09-30 11:15:41 -04:00
%files -n python3-%{name}
%{python3_sitearch}/*.so
%{python3_sitearch}/pyxattr*
%{!?_licensedir:%global license %%doc}
%license COPYING
2020-07-29 18:39:44 +08:00
%doc NEWS README.md
2019-09-30 11:15:41 -04:00
%changelog
2021-01-26 11:55:06 +08:00
* Tue Jan 26 2021 zoulin <zoulin13@huawei.com> - 0.7.2-1
- update to 0.7.2
* Wed Jul 29 2020 zhangxingliang <zhangxingliang3@huawei.com> - 0.7.1-1
2020-07-29 18:39:44 +08:00
- update to 0.7.1
2021-01-26 11:55:06 +08:00
* Tue Jul 7 2020 Liquor <lirui130@huawei.com> - 0.6.1-2
2020-07-07 20:44:38 +08:00
- cancel the check
2019-09-30 11:15:41 -04:00
* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6.1-1
- Package init