diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:24:15 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 04:24:15 +0000 |
| commit | bbc9ea5af43f11a0712d9ac575994f72c0fe67c8 (patch) | |
| tree | 80423ed98f97a8fcb3f9b3ba67e2d976659cf7bc | |
| parent | e60fa01f8914a6f0618eebf22c1f22b5e1bd7190 (diff) | |
automatic import of python-amun
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-amun.spec | 86 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 88 insertions, 0 deletions
@@ -0,0 +1 @@ +/amun-0.5.0.tar.gz diff --git a/python-amun.spec b/python-amun.spec new file mode 100644 index 0000000..5366188 --- /dev/null +++ b/python-amun.spec @@ -0,0 +1,86 @@ +%global _empty_manifest_terminate_build 0 +Name: python-amun +Version: 0.5.0 +Release: 1 +Summary: A CLI tool and library for interacting with Amun +License: GPLv3+ +URL: https://pypi.org/project/amun/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ea/4e/03d94141130d02594696ca1c10f62f0fbf46605a7f64ed1efeb6e99221e7/amun-0.5.0.tar.gz +BuildArch: noarch + +Requires: python3-certifi +Requires: python3-six +Requires: python3-dateutil +Requires: python3-setuptools +Requires: python3-urllib3 + +%description +A CLI tool and library for interacting with Amun + + + + +%package -n python3-amun +Summary: A CLI tool and library for interacting with Amun +Provides: python-amun +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-amun +A CLI tool and library for interacting with Amun + + + + +%package help +Summary: Development documents and examples for amun +Provides: python3-amun-doc +%description help +A CLI tool and library for interacting with Amun + + + + +%prep +%autosetup -n amun-0.5.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-amun -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.0-1 +- Package Spec generated @@ -0,0 +1 @@ +90b3c803666d7f38c77324d13e3a10e3 amun-0.5.0.tar.gz |
