From bbc9ea5af43f11a0712d9ac575994f72c0fe67c8 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 17 May 2023 04:24:15 +0000 Subject: automatic import of python-amun --- .gitignore | 1 + python-amun.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 88 insertions(+) create mode 100644 python-amun.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..6d0f89e 100644 --- a/.gitignore +++ b/.gitignore @@ -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 - 0.5.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..f54bf2e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +90b3c803666d7f38c77324d13e3a10e3 amun-0.5.0.tar.gz -- cgit v1.2.3