From ef030ed5f9afcef548efe8f745ec6b8a40af56a7 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 15:12:52 +0000 Subject: automatic import of python-biplist --- python-biplist.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 python-biplist.spec (limited to 'python-biplist.spec') diff --git a/python-biplist.spec b/python-biplist.spec new file mode 100644 index 0000000..e064b9a --- /dev/null +++ b/python-biplist.spec @@ -0,0 +1,90 @@ +%global _empty_manifest_terminate_build 0 +Name: python-biplist +Version: 1.0.3 +Release: 1 +Summary: biplist is a library for reading/writing binary plists. +License: BSD +URL: https://bitbucket.org/wooster/biplist +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3e/56/2db170a498c9c6545cda16e93c2f2ef9302da44802787b45a8a520d01bdb/biplist-1.0.3.tar.gz +BuildArch: noarch + + +%description +`biplist` is a binary plist parser/generator for Python. + +Binary Property List (plist) files provide a faster and smaller serialization +format for property lists on OS X. This is a library for generating binary +plists which can be read by OS X, iOS, or other clients. + +This module requires Python 2.6 or higher or Python 3.4 or higher. + +%package -n python3-biplist +Summary: biplist is a library for reading/writing binary plists. +Provides: python-biplist +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-biplist +`biplist` is a binary plist parser/generator for Python. + +Binary Property List (plist) files provide a faster and smaller serialization +format for property lists on OS X. This is a library for generating binary +plists which can be read by OS X, iOS, or other clients. + +This module requires Python 2.6 or higher or Python 3.4 or higher. + +%package help +Summary: Development documents and examples for biplist +Provides: python3-biplist-doc +%description help +`biplist` is a binary plist parser/generator for Python. + +Binary Property List (plist) files provide a faster and smaller serialization +format for property lists on OS X. This is a library for generating binary +plists which can be read by OS X, iOS, or other clients. + +This module requires Python 2.6 or higher or Python 3.4 or higher. + +%prep +%autosetup -n biplist-1.0.3 + +%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-biplist -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 1.0.3-1 +- Package Spec generated -- cgit v1.2.3