|
|
a574eec |
%global with_python3 1
|
|
Marcin Zajaczkowski |
2cd6a1f |
Name: pyxattr
|
|
Marcin Zajaczkowski |
2cd6a1f |
Summary: Extended attributes library wrapper for Python
|
|
|
a574eec |
Version: 0.5.3
|
|
|
bbb6128 |
Release: 4%{?dist}
|
|
Marcin Zajaczkowski |
2cd6a1f |
License: LGPLv2+
|
|
Marcin Zajaczkowski |
2cd6a1f |
Group: Development/Libraries
|
|
|
a574eec |
URL: http://pyxattr.k1024.org/
|
|
|
a574eec |
Source: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
Marcin Zajaczkowski |
3699be0 |
Patch0: 0001-use-Py_ssize_t.patch
|
|
|
a574eec |
BuildRequires: libattr-devel
|
|
|
a574eec |
BuildRequires: python2-devel, python-setuptools
|
|
|
a574eec |
%if %{?with_python3}
|
|
|
a574eec |
BuildRequires: python3-devel, python3-setuptools
|
|
|
a574eec |
%endif # with_python3
|
|
|
77a8c8a |
|
|
|
77a8c8a |
%description
|
|
|
77a8c8a |
Python extension module wrapper for libattr. It allows to query, list,
|
|
|
77a8c8a |
add and remove extended attributes from files and directories.
|
|
|
77a8c8a |
|
|
|
a574eec |
%if %{?with_python3}
|
|
|
a574eec |
%package -n python3-%{name}
|
|
|
a574eec |
Summary: Extended attributes library wrapper for Python 3
|
|
|
a574eec |
|
|
|
a574eec |
%description -n python3-%{name}
|
|
|
a574eec |
Python extension module wrapper for libattr. It allows to query, list,
|
|
|
a574eec |
add and remove extended attributes from files and directories.
|
|
|
a574eec |
|
|
|
a574eec |
Python 3 version.
|
|
|
a574eec |
%endif # with_python3
|
|
|
a574eec |
|
|
|
77a8c8a |
%prep
|
|
|
77a8c8a |
%setup -q
|
|
Marcin Zajaczkowski |
3699be0 |
%patch0 -p1
|
|
|
77a8c8a |
|
|
|
a574eec |
%if 0%{?with_python3}
|
|
|
a574eec |
rm -rf %{py3dir}
|
|
|
a574eec |
cp -a . %{py3dir}
|
|
|
a574eec |
%endif # with_python3
|
|
|
a574eec |
|
|
|
77a8c8a |
%build
|
|
|
a574eec |
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
|
a574eec |
|
|
|
a574eec |
%if 0%{?with_python3}
|
|
|
a574eec |
pushd %{py3dir}
|
|
|
a574eec |
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
a574eec |
popd
|
|
|
a574eec |
%endif # with_python3
|
|
|
77a8c8a |
|
|
|
77a8c8a |
%install
|
|
|
a574eec |
%{__python2} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
|
|
a574eec |
|
|
|
a574eec |
%if 0%{?with_python3}
|
|
|
a574eec |
pushd %{py3dir}
|
|
|
a574eec |
%{__python3} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
|
|
a574eec |
popd
|
|
|
a574eec |
%endif # with_python3
|
|
|
a574eec |
|
|
|
a574eec |
%check
|
|
|
b99f7ab |
# selinux in koji produces unexpected xattrs for tests
|
|
|
b99f7ab |
export TEST_IGNORE_XATTRS=security.selinux
|
|
|
b99f7ab |
|
|
|
a574eec |
%{__python2} setup.py test
|
|
|
77a8c8a |
|
|
|
a574eec |
%if 0%{?with_python3}
|
|
|
a574eec |
pushd %{py3dir}
|
|
|
a574eec |
%{__python3} setup.py test
|
|
|
a574eec |
popd
|
|
|
a574eec |
%endif # with_python3
|
|
|
77a8c8a |
|
|
|
77a8c8a |
%files
|
|
|
77a8c8a |
%defattr(0644,root,root,0755)
|
|
|
a574eec |
%{python2_sitearch}/xattr.so
|
|
|
a574eec |
%{python2_sitearch}/*egg-info
|
|
|
24d7240 |
%{!?_licensedir:%global license %%doc}
|
|
|
24d7240 |
%license COPYING
|
|
|
24d7240 |
%doc NEWS README
|
|
|
77a8c8a |
|
|
|
a574eec |
%if %{?with_python3}
|
|
|
a574eec |
%files -n python3-%{name}
|
|
|
a574eec |
%defattr(0644,root,root,0755)
|
|
|
a574eec |
%{python3_sitearch}/xattr.cpython-??m.so
|
|
|
a574eec |
%{python3_sitearch}/*egg-info
|
|
|
24d7240 |
%{!?_licensedir:%global license %%doc}
|
|
|
24d7240 |
%license COPYING
|
|
|
24d7240 |
%doc NEWS README
|
|
|
a574eec |
%endif # with_python3
|
|
|
a574eec |
|
|
|
77a8c8a |
%changelog
|
|
|
bbb6128 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
|
|
|
bbb6128 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
bbb6128 |
|
|
Marcin Zajaczkowski |
3699be0 |
* Thu Aug 7 2014 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.3-3
|
|
Marcin Zajaczkowski |
3699be0 |
- add Mark Hamzy's patch to fix issue with PPC builds (bug 1127310)
|
|
Marcin Zajaczkowski |
3699be0 |
|
|
|
24d7240 |
* Mon Aug 4 2014 Tom Callaway <spot@fedoraproject.org> - 0.5.3-2
|
|
|
24d7240 |
- fix license handling
|
|
|
24d7240 |
|
|
|
a574eec |
* Sat Jun 28 2014 Miro HronĨok <mhroncok@redhat.com> - 0.5.3-1
|
|
|
a574eec |
- Updated to 0.5.3
|
|
|
a574eec |
- Updated the website
|
|
|
a574eec |
- Updated download URL to PyPI
|
|
|
a574eec |
- Removed useless Require of python >= 2.2
|
|
|
a574eec |
- Use %%{pythonX_sitearch} macros
|
|
|
a574eec |
- Removed BuildRoot definition, %%clean section and rm -rf at the beginning of %%install
|
|
|
a574eec |
- Introduced Python 3 subpackage
|
|
|
a574eec |
- Introduced %%check and run the test suite
|
|
|
a574eec |
|
|
|
d3a8f36 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
|
|
|
d3a8f36 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
d3a8f36 |
|
|
|
d457d30 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
|
d457d30 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
d457d30 |
|
|
|
6765de1 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
|
|
|
6765de1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
6765de1 |
|
|
|
d04df58 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
|
d04df58 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d04df58 |
|
|
Marcin Zajaczkowski |
e7558f5 |
* Tue Jun 26 2012 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.1-1
|
|
Marcin Zajaczkowski |
e7558f5 |
- updated to 0.5.1
|
|
Marcin Zajaczkowski |
e7558f5 |
- fix bugs found with cpychecker (bug 809974)
|
|
Marcin Zajaczkowski |
e7558f5 |
|
|
Marcin Zajaczkowski |
2cd6a1f |
* Mon Feb 27 2012 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.0-5
|
|
Marcin Zajaczkowski |
2cd6a1f |
- remove prodive/obsolete of python-xattr (bug 781838)
|
|
Marcin Zajaczkowski |
2cd6a1f |
- fix problem with mixed use of tabs and spaces
|
|
Marcin Zajaczkowski |
2cd6a1f |
|
|
|
d520826 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4
|
|
|
d520826 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
d520826 |
|
|
|
cdc07d2 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
cdc07d2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
cdc07d2 |
|
|
|
359e832 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.0-2
|
|
|
359e832 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
359e832 |
|
|
|
24ecace |
* Sun Dec 27 2009 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.0-1
|
|
|
24ecace |
- updated to 0.5.0
|
|
|
24ecace |
- added support for unicode filenames (bug 479417)
|
|
|
24ecace |
|
|
|
a509114 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
|
|
|
a509114 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
a509114 |
|
|
|
818594d |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
818594d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
818594d |
|
|
|
9f05f3b |
* Sat Dec 6 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.4.0-2
|
|
|
9f05f3b |
- added python-setuptools in BuildRequires which is needed in build process
|
|
|
9f05f3b |
since version 0.4.0 (thanks to Kevin Fenzi)
|
|
|
9f05f3b |
|
|
|
9f05f3b |
* Fri Dec 5 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.4.0-1
|
|
|
9f05f3b |
- updated to 0.4.0
|
|
|
9f05f3b |
- License Tag adjusted to current licensing LGPLv2+
|
|
|
9f05f3b |
- modified Python Eggs support due to its usage in source distribution
|
|
|
9f05f3b |
|
|
|
a0b6ecb |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.2-4
|
|
|
a0b6ecb |
- Rebuild for Python 2.6
|
|
|
a0b6ecb |
|
|
|
12b3bf0 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.2-3
|
|
|
12b3bf0 |
- Autorebuild for GCC 4.3
|
|
|
12b3bf0 |
|
|
|
1830d73 |
* Tue Jan 15 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.2-2
|
|
|
1830d73 |
- added compatibility with Python Eggs forced in F9
|
|
|
1830d73 |
|
|
|
c2ccf79 |
* Mon Aug 27 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.2-1
|
|
|
04cb5a8 |
- upgraded to 0.2.2
|
|
|
c2ccf79 |
|
|
|
c2ccf79 |
* Sun Aug 26 2007 Kevin Fenzi <kevin@tummy.com> - 0.2.1-5
|
|
|
c2ccf79 |
- Updated License tag
|
|
|
04cb5a8 |
|
|
|
114c596 |
* Wed Apr 25 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-4
|
|
|
114c596 |
- added Provides/Obsoletes tags
|
|
|
114c596 |
|
|
|
77a8c8a |
* Sat Apr 21 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-3
|
|
|
77a8c8a |
- removed redundant after name change "exclude" tag
|
|
|
77a8c8a |
- comments cleanup
|
|
|
77a8c8a |
|
|
|
77a8c8a |
* Wed Apr 18 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-2
|
|
|
77a8c8a |
- applied suggestions from Kevin Fenzi
|
|
|
77a8c8a |
- name changed from python-xattr to pyxattr
|
|
|
77a8c8a |
- corrected path to the source file
|
|
|
77a8c8a |
|
|
|
77a8c8a |
* Thu Apr 5 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-1
|
|
|
77a8c8a |
- updated to 0.2.1
|
|
|
77a8c8a |
- added python-devel in BuildRequires
|
|
|
77a8c8a |
- added more doc files
|
|
|
77a8c8a |
- added Provides section
|
|
|
77a8c8a |
- modified to Fedora Extras requirements
|
|
|
77a8c8a |
|
|
|
77a8c8a |
* Sun Sep 11 2005 Dag Wieers <dag@wieers.com> - 0.2-1 - +/
|
|
|
77a8c8a |
- Initial package. (using DAR)
|