2014-06-28 18:36:05 +00:00
|
|
|
%global with_python3 1
|
2012-02-27 18:35:12 +00:00
|
|
|
Name: pyxattr
|
|
|
|
Summary: Extended attributes library wrapper for Python
|
2014-06-28 18:36:05 +00:00
|
|
|
Version: 0.5.3
|
2016-02-04 21:34:28 +00:00
|
|
|
Release: 7%{?dist}
|
2012-02-27 18:35:12 +00:00
|
|
|
License: LGPLv2+
|
|
|
|
Group: Development/Libraries
|
2014-06-28 18:36:05 +00:00
|
|
|
URL: http://pyxattr.k1024.org/
|
|
|
|
Source: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
2014-08-07 09:30:35 +00:00
|
|
|
Patch0: 0001-use-Py_ssize_t.patch
|
2014-06-28 18:36:05 +00:00
|
|
|
BuildRequires: libattr-devel
|
|
|
|
BuildRequires: python2-devel, python-setuptools
|
|
|
|
%if %{?with_python3}
|
|
|
|
BuildRequires: python3-devel, python3-setuptools
|
|
|
|
%endif # with_python3
|
2007-04-23 20:47:40 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Python extension module wrapper for libattr. It allows to query, list,
|
|
|
|
add and remove extended attributes from files and directories.
|
|
|
|
|
2014-06-28 18:36:05 +00:00
|
|
|
%if %{?with_python3}
|
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Extended attributes library wrapper for Python 3
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
2007-04-23 20:47:40 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-08-07 09:30:35 +00:00
|
|
|
%patch0 -p1
|
2007-04-23 20:47:40 +00:00
|
|
|
|
2014-06-28 18:36:05 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif # with_python3
|
|
|
|
|
2007-04-23 20:47:40 +00:00
|
|
|
%build
|
2014-06-28 18:36:05 +00:00
|
|
|
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2007-04-23 20:47:40 +00:00
|
|
|
|
|
|
|
%install
|
2014-06-28 18:36:05 +00:00
|
|
|
%{__python2} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
%check
|
2014-06-28 18:52:51 +00:00
|
|
|
# selinux in koji produces unexpected xattrs for tests
|
|
|
|
export TEST_IGNORE_XATTRS=security.selinux
|
|
|
|
|
2014-06-28 18:36:05 +00:00
|
|
|
%{__python2} setup.py test
|
2007-04-23 20:47:40 +00:00
|
|
|
|
2014-06-28 18:36:05 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py test
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2007-04-23 20:47:40 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2014-06-28 18:36:05 +00:00
|
|
|
%{python2_sitearch}/xattr.so
|
|
|
|
%{python2_sitearch}/*egg-info
|
2014-08-04 04:16:21 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README
|
2007-04-23 20:47:40 +00:00
|
|
|
|
2014-06-28 18:36:05 +00:00
|
|
|
%if %{?with_python3}
|
|
|
|
%files -n python3-%{name}
|
|
|
|
%defattr(0644,root,root,0755)
|
2015-10-14 08:57:05 +00:00
|
|
|
%{python3_sitearch}/xattr.cpython-??m*
|
2014-06-28 18:36:05 +00:00
|
|
|
%{python3_sitearch}/*egg-info
|
2014-08-04 04:16:21 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README
|
2014-06-28 18:36:05 +00:00
|
|
|
%endif # with_python3
|
|
|
|
|
2007-04-23 20:47:40 +00:00
|
|
|
%changelog
|
2016-02-04 21:34:28 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-10-14 08:57:05 +00:00
|
|
|
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.5.3-6
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
- Change pattern for listed so file to reflect new naming in py35
|
|
|
|
|
2015-06-18 21:34:29 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2014-08-17 22:09:01 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-07 09:30:35 +00:00
|
|
|
* Thu Aug 7 2014 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.3-3
|
|
|
|
- add Mark Hamzy's patch to fix issue with PPC builds (bug 1127310)
|
|
|
|
|
2014-08-04 04:16:21 +00:00
|
|
|
* Mon Aug 4 2014 Tom Callaway <spot@fedoraproject.org> - 0.5.3-2
|
|
|
|
- fix license handling
|
|
|
|
|
2014-06-28 18:36:05 +00:00
|
|
|
* Sat Jun 28 2014 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-1
|
|
|
|
- Updated to 0.5.3
|
|
|
|
- Updated the website
|
|
|
|
- Updated download URL to PyPI
|
|
|
|
- Removed useless Require of python >= 2.2
|
|
|
|
- Use %%{pythonX_sitearch} macros
|
|
|
|
- Removed BuildRoot definition, %%clean section and rm -rf at the beginning of %%install
|
|
|
|
- Introduced Python 3 subpackage
|
|
|
|
- Introduced %%check and run the test suite
|
|
|
|
|
2014-06-08 00:48:34 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-04 11:16:12 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 21:01:48 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 11:49:18 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-26 13:04:24 +00:00
|
|
|
* Tue Jun 26 2012 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.1-1
|
|
|
|
- updated to 0.5.1
|
|
|
|
- fix bugs found with cpychecker (bug 809974)
|
|
|
|
|
2012-02-27 18:35:12 +00:00
|
|
|
* Mon Feb 27 2012 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.0-5
|
|
|
|
- remove prodive/obsolete of python-xattr (bug 781838)
|
|
|
|
- fix problem with mixed use of tabs and spaces
|
|
|
|
|
2012-01-14 02:23:48 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-02-09 07:51:49 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-22 06:07:45 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-01-14 19:59:09 +00:00
|
|
|
* Sun Dec 27 2009 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.0-1
|
|
|
|
- updated to 0.5.0
|
|
|
|
- added support for unicode filenames (bug 479417)
|
|
|
|
|
2009-07-27 01:38:30 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-27 00:31:36 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-27 13:58:57 +00:00
|
|
|
* Sat Dec 6 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.4.0-2
|
|
|
|
- added python-setuptools in BuildRequires which is needed in build process
|
|
|
|
since version 0.4.0 (thanks to Kevin Fenzi)
|
|
|
|
|
|
|
|
* Fri Dec 5 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.4.0-1
|
|
|
|
- updated to 0.4.0
|
|
|
|
- License Tag adjusted to current licensing LGPLv2+
|
|
|
|
- modified Python Eggs support due to its usage in source distribution
|
|
|
|
|
2008-11-29 06:33:00 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.2-4
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-02-20 03:39:18 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.2-3
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-15 20:34:37 +00:00
|
|
|
* Tue Jan 15 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.2-2
|
|
|
|
- added compatibility with Python Eggs forced in F9
|
|
|
|
|
2007-08-27 18:44:12 +00:00
|
|
|
* Mon Aug 27 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.2-1
|
2007-08-27 18:35:04 +00:00
|
|
|
- upgraded to 0.2.2
|
2007-08-27 18:44:12 +00:00
|
|
|
|
|
|
|
* Sun Aug 26 2007 Kevin Fenzi <kevin@tummy.com> - 0.2.1-5
|
|
|
|
- Updated License tag
|
2007-08-27 18:35:04 +00:00
|
|
|
|
2007-04-25 19:08:35 +00:00
|
|
|
* Wed Apr 25 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-4
|
|
|
|
- added Provides/Obsoletes tags
|
|
|
|
|
2007-04-23 20:47:40 +00:00
|
|
|
* Sat Apr 21 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-3
|
|
|
|
- removed redundant after name change "exclude" tag
|
|
|
|
- comments cleanup
|
|
|
|
|
|
|
|
* Wed Apr 18 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-2
|
|
|
|
- applied suggestions from Kevin Fenzi
|
|
|
|
- name changed from python-xattr to pyxattr
|
|
|
|
- corrected path to the source file
|
|
|
|
|
|
|
|
* Thu Apr 5 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-1
|
|
|
|
- updated to 0.2.1
|
|
|
|
- added python-devel in BuildRequires
|
|
|
|
- added more doc files
|
|
|
|
- added Provides section
|
|
|
|
- modified to Fedora Extras requirements
|
|
|
|
|
|
|
|
* Sun Sep 11 2005 Dag Wieers <dag@wieers.com> - 0.2-1 - +/
|
|
|
|
- Initial package. (using DAR)
|