diff options
Diffstat (limited to 'python-xattr.spec')
-rw-r--r-- | python-xattr.spec | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/python-xattr.spec b/python-xattr.spec new file mode 100644 index 0000000..833883f --- /dev/null +++ b/python-xattr.spec @@ -0,0 +1,97 @@ +%global _empty_manifest_terminate_build 0 +Name: python-xattr +Version: 0.10.1 +Release: 1 +Summary: Python wrapper for extended filesystem attributes +License: MIT License +URL: http://github.com/xattr/xattr +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a0/19/dfb42dd6e6749c6e6dde55b12ee44b3c8247c3cfa5b85180a60902722538/xattr-0.10.1.tar.gz +BuildArch: noarch + +Requires: python3-cffi + +%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). + +Extended attributes are currently only available on Darwin 8.0+ (Mac OS X 10.4) +and Linux 2.6+. Experimental support is included for Solaris and FreeBSD. + + + + +%package -n python3-xattr +Summary: Python wrapper for extended filesystem attributes +Provides: python-xattr +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%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). + +Extended attributes are currently only available on Darwin 8.0+ (Mac OS X 10.4) +and Linux 2.6+. Experimental support is included for Solaris and FreeBSD. + + + + +%package help +Summary: Development documents and examples for xattr +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). + +Extended attributes are currently only available on Darwin 8.0+ (Mac OS X 10.4) +and Linux 2.6+. Experimental support is included for Solaris and FreeBSD. + + + + +%prep +%autosetup -n xattr-0.10.1 + +%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 . + +%files -n python3-xattr -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.10.1-1 +- Package Spec generated |