From 18be38e27addc8df382aea2a3c5f100d220adf6d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 05:24:26 +0000 Subject: automatic import of python-appknox --- .gitignore | 1 + python-appknox.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 83 insertions(+) create mode 100644 python-appknox.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..856b7d2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/appknox-4.3.0.tar.gz diff --git a/python-appknox.spec b/python-appknox.spec new file mode 100644 index 0000000..7300e13 --- /dev/null +++ b/python-appknox.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-appknox +Version: 4.3.0 +Release: 1 +Summary: Command-line interface & Python wrapper for the Appknox API +License: MIT +URL: https://github.com/appknox/appknox-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e7/1b/646bd8441705141e584d3a62e2299ee9aec71b6b7efa4c7d8d36086f6741/appknox-4.3.0.tar.gz +BuildArch: noarch + +Requires: python3-click +Requires: python3-requests +Requires: python3-tabulate +Requires: python3-black +Requires: python3-flake8-bugbear +Requires: python3-flake8-isort + +%description + 2 MyOrganization +$ appknox projects + +%package -n python3-appknox +Summary: Command-line interface & Python wrapper for the Appknox API +Provides: python-appknox +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-appknox + 2 MyOrganization +$ appknox projects + +%package help +Summary: Development documents and examples for appknox +Provides: python3-appknox-doc +%description help + 2 MyOrganization +$ appknox projects + +%prep +%autosetup -n appknox-4.3.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-appknox -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 4.3.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..95eae09 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +371ed31fa83db0db515c1866dcb91f9b appknox-4.3.0.tar.gz -- cgit v1.2.3