diff --git a/python-xattr.spec b/python-xattr.spec new file mode 100644 index 0000000000000000000000000000000000000000..73392f67d88768baaf620e193cb228fe2798c68c --- /dev/null +++ b/python-xattr.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-xattr +Version: 0.9.7 +Release: 1 +Summary: Python wrapper for extended filesystem attributes +License: MIT +URL: http://github.com/xattr/xattr +Source0: https://files.pythonhosted.org/packages/c1/74/1ff659d6deb1d2d6babb9483171edfa330264ae2cbf005035bb7a77b07d2/xattr-0.9.7.tar.gz +%description +Extended attributes extend the basic attributes of files and directories in the file system. +They are stored as name:data pairs associated with file system objects (files, directories, symlinks, etc). + +%package -n python3-xattr +Summary: Python wrapper for extended filesystem attributes +Provides: python-xattr +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +# General requires +# General requires +Requires: python3-cffi +%description -n python3-xattr +Extended attributes extend the basic attributes of files and directories in the file system. +They are stored as name:data pairs associated with file system objects (files, directories, symlinks, etc). + +%package help +Summary: Python wrapper for extended filesystem attributes +Provides: python3-xattr-doc +%description help +Extended attributes extend the basic attributes of files and directories in the file system. +They are stored as name:data pairs associated with file system objects (files, directories, symlinks, etc). + +%prep +%autosetup -n xattr-%{version} + +%build +%py3_build + +%install +%py3_install + +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%check +%{__python3} setup.py test + +%files -n python3-xattr -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Aug 11 2021 OpenStack_SIG - 0.9.7-1 +- Package Spec generate diff --git a/xattr-0.9.7.tar.gz b/xattr-0.9.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..08ace98495f6b22941271b06967ce33c6f5576ce Binary files /dev/null and b/xattr-0.9.7.tar.gz differ