diff --git a/pyxattr-0.7.2.tar.gz b/pyxattr-0.7.2.tar.gz deleted file mode 100644 index 6032e94ca4e8fdd6e380d6ef9189a6bbd64ca687..0000000000000000000000000000000000000000 Binary files a/pyxattr-0.7.2.tar.gz and /dev/null differ diff --git a/pyxattr.spec b/pyxattr.spec index 3b07a7c12a6512eba52dc47391ece6c0a996e87a..1ea5c05072665aaf182e883a9b96f7393d73059f 100644 --- a/pyxattr.spec +++ b/pyxattr.spec @@ -1,30 +1,31 @@ -Name: pyxattr -Summary: Extended attributes library wrapper for Python -Version: 0.7.2 -Release: 2 -License: LGPLv2+ -URL: http://pyxattr.k1024.org/ -Source: https://pyxattr.k1024.org/downloads/%{name}-%{version}.tar.gz - -BuildRequires: gcc libattr-devel python3-devel python3-setuptools +%global _empty_manifest_terminate_build 0 +Name: pyxattr +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 -This is the pyxattr module, a Python extension module which gives access to -the extended attributes for filesystem objects available in some operating systems. +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-%{name} -Summary: Extended attributes library wrapper for Python 3 +%package -n python3-pyxattr +Summary: Python wrapper for extended filesystem attributes +Provides: python-pyxattr -%description -n python3-%{name} -This is the pyxattr module, a Python extension module which gives access to -the extended attributes for filesystem objects available in some operating systems. -for python3 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: gcc +BuildRequires: gdb +buildRequires: python3-cffi -%prep -%setup -q +%description -n python3-pyxattr +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). -rm -rf %{py3dir} -cp -a . %{py3dir} + +%prep +%autosetup -n xattr-%{version} %build %py3_build @@ -32,19 +33,42 @@ cp -a . %{py3dir} %install %py3_install -%check -#pushd %%{py3dir} -#%%{__python3} setup.py test -#popd +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 . -%files -n python3-%{name} -%{python3_sitearch}/*.so -%{python3_sitearch}/pyxattr* -%{!?_licensedir:%global license %%doc} -%license COPYING -%doc NEWS README.md + +%files -n python3-pyxattr -f filelist.lst + +%dir %{python3_sitearch}/* +%{_docdir}/* %changelog +* Tue Jul 27 2021 OpenStack_SIG - 0.9.7-1 +- update to 0.9.7 + * Tue Feb 2 2021 zhangxingliang - 0.7.2-2 - revert changes in check 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