|
|
3a849e |
%global with_python3 1
|
|
|
3a849e |
|
|
|
3a849e |
%if 0%{?rhel} > 7
|
|
|
3a849e |
# Disable python2 build by default
|
|
|
3a849e |
%global with_python2 0
|
|
|
3a849e |
%else
|
|
|
3a849e |
%global with_python2 1
|
|
|
3a849e |
%endif
|
|
|
3a849e |
|
|
|
3a849e |
Name: pyxattr
|
|
|
3a849e |
Summary: Extended attributes library wrapper for Python
|
|
|
3a849e |
Version: 0.5.3
|
|
|
3a849e |
Release: 18%{?dist}
|
|
|
3a849e |
License: LGPLv2+
|
|
|
3a849e |
Group: Development/Libraries
|
|
|
3a849e |
URL: http://pyxattr.k1024.org/
|
|
|
3a849e |
Source: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
|
|
|
3a849e |
Patch0: 0001-use-Py_ssize_t.patch
|
|
|
3a849e |
Patch1: 0002-add-workaround-for-undefined-ENOATTR.patch
|
|
|
3a849e |
BuildRequires: libattr-devel
|
|
|
3a849e |
%if %{?with_python2}
|
|
|
3a849e |
BuildRequires: python2-devel, python2-setuptools
|
|
|
3a849e |
%endif
|
|
|
3a849e |
%if %{?with_python3}
|
|
|
3a849e |
BuildRequires: python3-devel, python3-setuptools
|
|
|
3a849e |
%endif # with_python3
|
|
|
3a849e |
|
|
|
3a849e |
%global _description\
|
|
|
3a849e |
Python extension module wrapper for libattr. It allows to query, list,\
|
|
|
3a849e |
add and remove extended attributes from files and directories.
|
|
|
3a849e |
|
|
|
3a849e |
%description %_description
|
|
|
3a849e |
|
|
|
3a849e |
%if %{?with_python2}
|
|
|
3a849e |
%package -n python2-%{name}
|
|
|
3a849e |
Summary: %summary
|
|
|
3a849e |
%{?python_provide:%python_provide python2-%{name}}
|
|
|
3a849e |
# Remove before F30
|
|
|
3a849e |
Provides: pyxattr = %{version}-%{release}
|
|
|
3a849e |
Provides: pyxattr%{?_isa} = %{version}-%{release}
|
|
|
3a849e |
Obsoletes: pyxattr < %{version}-%{release}
|
|
|
3a849e |
|
|
|
3a849e |
%description -n python2-%{name} %_description
|
|
|
3a849e |
%endif
|
|
|
3a849e |
|
|
|
3a849e |
%if %{?with_python3}
|
|
|
3a849e |
%package -n python3-%{name}
|
|
|
3a849e |
Summary: Extended attributes library wrapper for Python 3
|
|
|
3a849e |
|
|
|
3a849e |
%description -n python3-%{name}
|
|
|
3a849e |
Python extension module wrapper for libattr. It allows to query, list,
|
|
|
3a849e |
add and remove extended attributes from files and directories.
|
|
|
3a849e |
|
|
|
3a849e |
Python 3 version.
|
|
|
3a849e |
%endif # with_python3
|
|
|
3a849e |
|
|
|
3a849e |
%prep
|
|
|
3a849e |
%setup -q
|
|
|
3a849e |
%patch0 -p1
|
|
|
3a849e |
%patch1 -p1
|
|
|
3a849e |
|
|
|
3a849e |
%build
|
|
|
3a849e |
%if %{?with_python2}
|
|
|
3a849e |
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
|
3a849e |
%endif
|
|
|
3a849e |
|
|
|
3a849e |
%if 0%{?with_python3}
|
|
|
3a849e |
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
3a849e |
%endif # with_python3
|
|
|
3a849e |
|
|
|
3a849e |
%install
|
|
|
3a849e |
%if %{?with_python2}
|
|
|
3a849e |
%{__python2} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
|
|
3a849e |
%endif
|
|
|
3a849e |
|
|
|
3a849e |
%if 0%{?with_python3}
|
|
|
3a849e |
%{__python3} setup.py install --root="%{buildroot}" --prefix="%{_prefix}"
|
|
|
3a849e |
%endif # with_python3
|
|
|
3a849e |
|
|
|
3a849e |
%check
|
|
|
3a849e |
# selinux in koji produces unexpected xattrs for tests
|
|
|
3a849e |
export TEST_IGNORE_XATTRS=security.selinux
|
|
|
3a849e |
|
|
|
3a849e |
%if %{?with_python2}
|
|
|
3a849e |
%{__python2} setup.py test
|
|
|
3a849e |
%endif
|
|
|
3a849e |
|
|
|
3a849e |
%if 0%{?with_python3}
|
|
|
3a849e |
%{__python3} setup.py test
|
|
|
3a849e |
%endif # with_python3
|
|
|
3a849e |
|
|
|
3a849e |
%if %{?with_python2}
|
|
|
3a849e |
%files -n python2-%{name}
|
|
|
3a849e |
%defattr(0644,root,root,0755)
|
|
|
3a849e |
%{python2_sitearch}/xattr.so
|
|
|
3a849e |
%{python2_sitearch}/*egg-info
|
|
|
3a849e |
%{!?_licensedir:%global license %%doc}
|
|
|
3a849e |
%license COPYING
|
|
|
3a849e |
%doc NEWS README
|
|
|
3a849e |
%endif
|
|
|
3a849e |
|
|
|
3a849e |
%if %{?with_python3}
|
|
|
3a849e |
%files -n python3-%{name}
|
|
|
3a849e |
%defattr(0644,root,root,0755)
|
|
|
3a849e |
%{python3_sitearch}/xattr.cpython-??m*
|
|
|
3a849e |
%{python3_sitearch}/*egg-info
|
|
|
3a849e |
%{!?_licensedir:%global license %%doc}
|
|
|
3a849e |
%license COPYING
|
|
|
3a849e |
%doc NEWS README
|
|
|
3a849e |
%endif # with_python3
|
|
|
3a849e |
|
|
|
3a849e |
%changelog
|
|
|
3a849e |
* Sat Aug 04 2018 Milind Changire <mchangir@redhat.com> - 0.5.3-18
|
|
|
3a849e |
- fixes bz#1610029
|
|
|
3a849e |
|
|
|
3a849e |
* Tue Jun 26 2018 LumĆr Balhar <lbalhar@redhat.com> - 0.5.3-17
|
|
|
3a849e |
- Python 2 subpackage disable by default
|
|
|
3a849e |
|
|
|
3a849e |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-16
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.3-15
|
|
|
3a849e |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
3a849e |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
3a849e |
|
|
|
3a849e |
* Tue Dec 26 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.3-14
|
|
|
3a849e |
- Also add Provides for the old name without %%_isa
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Aug 13 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.3-13
|
|
|
3a849e |
- Python 2 binary package renamed to python2-pyxattr
|
|
|
3a849e |
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-12
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-11
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-10
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.5.3-9
|
|
|
3a849e |
- Rebuild for Python 3.6
|
|
|
3a849e |
|
|
|
3a849e |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-8
|
|
|
3a849e |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-7
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Wed Oct 14 2015 Robert Kuska <rkuska@redhat.com> - 0.5.3-6
|
|
|
3a849e |
- Rebuilt for Python3.5 rebuild
|
|
|
3a849e |
- Change pattern for listed so file to reflect new naming in py35
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-5
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-4
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Aug 7 2014 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.3-3
|
|
|
3a849e |
- add Mark Hamzy's patch to fix issue with PPC builds (bug 1127310)
|
|
|
3a849e |
|
|
|
3a849e |
* Mon Aug 4 2014 Tom Callaway <spot@fedoraproject.org> - 0.5.3-2
|
|
|
3a849e |
- fix license handling
|
|
|
3a849e |
|
|
|
3a849e |
* Sat Jun 28 2014 Miro HronĨok <mhroncok@redhat.com> - 0.5.3-1
|
|
|
3a849e |
- Updated to 0.5.3
|
|
|
3a849e |
- Updated the website
|
|
|
3a849e |
- Updated download URL to PyPI
|
|
|
3a849e |
- Removed useless Require of python >= 2.2
|
|
|
3a849e |
- Use %%{pythonX_sitearch} macros
|
|
|
3a849e |
- Removed BuildRoot definition, %%clean section and rm -rf at the beginning of %%install
|
|
|
3a849e |
- Introduced Python 3 subpackage
|
|
|
3a849e |
- Introduced %%check and run the test suite
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-5
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-2
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Tue Jun 26 2012 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.1-1
|
|
|
3a849e |
- updated to 0.5.1
|
|
|
3a849e |
- fix bugs found with cpychecker (bug 809974)
|
|
|
3a849e |
|
|
|
3a849e |
* Mon Feb 27 2012 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.0-5
|
|
|
3a849e |
- remove prodive/obsolete of python-xattr (bug 781838)
|
|
|
3a849e |
- fix problem with mixed use of tabs and spaces
|
|
|
3a849e |
|
|
|
3a849e |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-4
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.0-2
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Dec 27 2009 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.5.0-1
|
|
|
3a849e |
- updated to 0.5.0
|
|
|
3a849e |
- added support for unicode filenames (bug 479417)
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-4
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
3a849e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
3a849e |
|
|
|
3a849e |
* Sat Dec 6 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.4.0-2
|
|
|
3a849e |
- added python-setuptools in BuildRequires which is needed in build process
|
|
|
3a849e |
since version 0.4.0 (thanks to Kevin Fenzi)
|
|
|
3a849e |
|
|
|
3a849e |
* Fri Dec 5 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.4.0-1
|
|
|
3a849e |
- updated to 0.4.0
|
|
|
3a849e |
- License Tag adjusted to current licensing LGPLv2+
|
|
|
3a849e |
- modified Python Eggs support due to its usage in source distribution
|
|
|
3a849e |
|
|
|
3a849e |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.2-4
|
|
|
3a849e |
- Rebuild for Python 2.6
|
|
|
3a849e |
|
|
|
3a849e |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.2-3
|
|
|
3a849e |
- Autorebuild for GCC 4.3
|
|
|
3a849e |
|
|
|
3a849e |
* Tue Jan 15 2008 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.2-2
|
|
|
3a849e |
- added compatibility with Python Eggs forced in F9
|
|
|
3a849e |
|
|
|
3a849e |
* Mon Aug 27 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.2-1
|
|
|
3a849e |
- upgraded to 0.2.2
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Aug 26 2007 Kevin Fenzi <kevin@tummy.com> - 0.2.1-5
|
|
|
3a849e |
- Updated License tag
|
|
|
3a849e |
|
|
|
3a849e |
* Wed Apr 25 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-4
|
|
|
3a849e |
- added Provides/Obsoletes tags
|
|
|
3a849e |
|
|
|
3a849e |
* Sat Apr 21 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-3
|
|
|
3a849e |
- removed redundant after name change "exclude" tag
|
|
|
3a849e |
- comments cleanup
|
|
|
3a849e |
|
|
|
3a849e |
* Wed Apr 18 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-2
|
|
|
3a849e |
- applied suggestions from Kevin Fenzi
|
|
|
3a849e |
- name changed from python-xattr to pyxattr
|
|
|
3a849e |
- corrected path to the source file
|
|
|
3a849e |
|
|
|
3a849e |
* Thu Apr 5 2007 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 0.2.1-1
|
|
|
3a849e |
- updated to 0.2.1
|
|
|
3a849e |
- added python-devel in BuildRequires
|
|
|
3a849e |
- added more doc files
|
|
|
3a849e |
- added Provides section
|
|
|
3a849e |
- modified to Fedora Extras requirements
|
|
|
3a849e |
|
|
|
3a849e |
* Sun Sep 11 2005 Dag Wieers <dag@wieers.com> - 0.2-1 - +/
|
|
|
3a849e |
- Initial package. (using DAR)
|