| |
@@ -1,20 +1,14 @@
|
| |
- %global with_python3 1
|
| |
Name: pyxattr
|
| |
Summary: Extended attributes library wrapper for Python
|
| |
- Version: 0.5.6
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 0.6.1
|
| |
+ Release: 1%{?dist}
|
| |
License: LGPLv2+
|
| |
- URL: http://pyxattr.k1024.org/
|
| |
- Source: https://pyxattr.k1024.org/downloads/%{name}-%{version}.tar.gz
|
| |
- # Bacported with modifications from 0.6.1
|
| |
- # https://github.com/iustin/pyxattr/commit/a799657a333b5fa44ae9bfb51b7bd40441123064
|
| |
- Patch0: 0002-use-system-xattr-h.patch
|
| |
+ URL: https://pyxattr.k1024.org/
|
| |
+ Source: %{url}/downloads/%{name}-%{version}.tar.gz
|
| |
BuildRequires: gcc
|
| |
BuildRequires: libattr-devel
|
| |
- BuildRequires: python2-devel, python2-setuptools
|
| |
- %if %{?with_python3}
|
| |
- BuildRequires: python3-devel, python3-setuptools
|
| |
- %endif # with_python3
|
| |
+ BuildRequires: python2-devel
|
| |
+ BuildRequires: python3-devel
|
| |
|
| |
%global _description\
|
| |
Python extension module wrapper for libattr. It allows to query, list,\
|
| |
@@ -25,80 +19,54 @@
|
| |
%package -n python2-%{name}
|
| |
Summary: %summary
|
| |
%{?python_provide:%python_provide python2-%{name}}
|
| |
- # Remove before F30
|
| |
- Provides: pyxattr = %{version}-%{release}
|
| |
- Provides: pyxattr%{?_isa} = %{version}-%{release}
|
| |
- Obsoletes: pyxattr < %{version}-%{release}
|
| |
|
| |
%description -n python2-%{name} %_description
|
| |
|
| |
- %if %{?with_python3}
|
| |
%package -n python3-%{name}
|
| |
Summary: Extended attributes library wrapper for Python 3
|
| |
+ %{?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.
|
| |
|
| |
Python 3 version.
|
| |
- %endif # with_python3
|
| |
|
| |
%prep
|
| |
- %setup -q
|
| |
- %patch0 -p1
|
| |
-
|
| |
- %if 0%{?with_python3}
|
| |
- rm -rf %{py3dir}
|
| |
- cp -a . %{py3dir}
|
| |
- %endif # with_python3
|
| |
+ %autosetup
|
| |
|
| |
%build
|
| |
- CFLAGS="%{optflags}" %{__python2} setup.py build
|
| |
-
|
| |
- %if 0%{?with_python3}
|
| |
- pushd %{py3dir}
|
| |
+ %py2_build
|
| |
%py3_build
|
| |
- popd
|
| |
- %endif # with_python3
|
| |
|
| |
%install
|
| |
- %{__python2} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
| |
-
|
| |
- %if 0%{?with_python3}
|
| |
- pushd %{py3dir}
|
| |
+ %py2_install
|
| |
%py3_install
|
| |
- popd
|
| |
- %endif # with_python3
|
| |
|
| |
%check
|
| |
# selinux in koji produces unexpected xattrs for tests
|
| |
export TEST_IGNORE_XATTRS=security.selinux
|
| |
|
| |
- %{__python2} setup.py test
|
| |
-
|
| |
- %if 0%{?with_python3}
|
| |
- pushd %{py3dir}
|
| |
- %{__python3} setup.py test
|
| |
- popd
|
| |
- %endif # with_python3
|
| |
+ python2 setup.py test
|
| |
+ python3 setup.py test
|
| |
|
| |
%files -n python2-%{name}
|
| |
%{python2_sitearch}/xattr.so
|
| |
%{python2_sitearch}/*egg-info
|
| |
- %{!?_licensedir:%global license %%doc}
|
| |
%license COPYING
|
| |
%doc NEWS README.rst
|
| |
|
| |
- %if %{?with_python3}
|
| |
%files -n python3-%{name}
|
| |
%{python3_sitearch}/xattr.cpython-??*
|
| |
%{python3_sitearch}/*egg-info
|
| |
- %{!?_licensedir:%global license %%doc}
|
| |
%license COPYING
|
| |
%doc NEWS README.rst
|
| |
- %endif # with_python3
|
| |
|
| |
%changelog
|
| |
+ * Sun Jul 14 2019 Dan Čermák <dan.cermak@cgc-instruments.com> - 0.6.1-1
|
| |
+ - Bump version to 0.6.1
|
| |
+ - Simplify spec file
|
| |
+
|
| |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.6-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
:thumbsup: