diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 15:12:52 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 15:12:52 +0000 |
| commit | ef030ed5f9afcef548efe8f745ec6b8a40af56a7 (patch) | |
| tree | 37d390b494587f1a8c9a1366a63dd3d529a862bf | |
| parent | 84cc2d75922825b02beb61fc7c896b1b4f0c874f (diff) | |
automatic import of python-biplist
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-biplist.spec | 90 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
@@ -0,0 +1 @@ +/biplist-1.0.3.tar.gz 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 <Python_Bot@openeuler.org> - 1.0.3-1 +- Package Spec generated @@ -0,0 +1 @@ +e2ff83d5f66e5798801d142eb7c1a07a biplist-1.0.3.tar.gz |
