diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-09 06:04:15 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-09 06:04:15 +0000 |
commit | 1937df97a3d561081256fda50869a98bf8334b88 (patch) | |
tree | b2c805ab66142b74f9dbb6ab8607e6324b6810b8 /python-pybrary.spec | |
parent | e9ca79a1c31a0f1e4bf2714601b028b5efa987bf (diff) |
automatic import of python-pybraryopeneuler20.03
Diffstat (limited to 'python-pybrary.spec')
-rw-r--r-- | python-pybrary.spec | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/python-pybrary.spec b/python-pybrary.spec new file mode 100644 index 0000000..7cea4f5 --- /dev/null +++ b/python-pybrary.spec @@ -0,0 +1,121 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pybrary +Version: 0.2322.0 +Release: 1 +Summary: Python Library +License: MIT +URL: https://pypi.org/project/pybrary/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/67/00/57f627d9ac8251f7fc54eddf04e7408572ed50062917c1dbe3d716a06872/pybrary-0.2322.0.tar.gz +BuildArch: noarch + +Requires: python3-cryptography + +%description +# pybrary + +Python Library + +## Abstract + +Python tools + +## Usage + + import pybrary + + +## Installation + + $ pip install pybrary + + +%package -n python3-pybrary +Summary: Python Library +Provides: python-pybrary +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pybrary +# pybrary + +Python Library + +## Abstract + +Python tools + +## Usage + + import pybrary + + +## Installation + + $ pip install pybrary + + +%package help +Summary: Development documents and examples for pybrary +Provides: python3-pybrary-doc +%description help +# pybrary + +Python Library + +## Abstract + +Python tools + +## Usage + + import pybrary + + +## Installation + + $ pip install pybrary + + +%prep +%autosetup -n pybrary-0.2322.0 + +%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-pybrary -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2322.0-1 +- Package Spec generated |