summaryrefslogtreecommitdiff
path: root/python-bvx-network.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 04:39:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 04:39:00 +0000
commitcccf0171653ee7c6f39cff52f6828f26ef32701c (patch)
tree37a83c1c44a4a234ead8de20d737a373e9925eb0 /python-bvx-network.spec
parent7b6c8947411b54008959078d27846b66039c9436 (diff)
automatic import of python-bvx-network
Diffstat (limited to 'python-bvx-network.spec')
-rw-r--r--python-bvx-network.spec73
1 files changed, 73 insertions, 0 deletions
diff --git a/python-bvx-network.spec b/python-bvx-network.spec
new file mode 100644
index 0000000..f3432c5
--- /dev/null
+++ b/python-bvx-network.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-bvx-network
+Version: 0.0.9
+Release: 1
+Summary: Network utils.
+License: The MIT License
+URL: https://github.com/kotsutsumi/bvx-network
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/45/8f/68360a8bf5a9f773f125bdd8b874a454f7cf474561b3faf05acf8260a96f/bvx-network-0.0.9.tar.gz
+BuildArch: noarch
+
+Requires: python3-psutil
+
+%description
+
+
+%package -n python3-bvx-network
+Summary: Network utils.
+Provides: python-bvx-network
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-bvx-network
+
+
+%package help
+Summary: Development documents and examples for bvx-network
+Provides: python3-bvx-network-doc
+%description help
+
+
+%prep
+%autosetup -n bvx-network-0.0.9
+
+%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-bvx-network -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.9-1
+- Package Spec generated