summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-09 06:15:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-09 06:15:28 +0000
commitd38830b97451dd40ced2c831ff6a6a3bee8d673c (patch)
treebba8a9b86c434355032e669b17c54dccece56d0c
parent880527edea1fc19ac0c73de500ec08ca063db8a1 (diff)
automatic import of python-pcrunneropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pcrunner.spec88
-rw-r--r--sources1
3 files changed, 90 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2c239bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pcrunner-1.0.3.tar.gz
diff --git a/python-pcrunner.spec b/python-pcrunner.spec
new file mode 100644
index 0000000..5eb15d3
--- /dev/null
+++ b/python-pcrunner.spec
@@ -0,0 +1,88 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pcrunner
+Version: 1.0.3
+Release: 1
+Summary: A module for running Passive Nagios/Icinga Checks
+License: ISC
+URL: https://github.com/maartenq/pcrunner
+Source0: https://mirrors.aliyun.com/pypi/web/packages/9a/63/87aeea707ef31941e8d956056decb88c5f4524eb7b4eb3b4ef8d561f319c/pcrunner-1.0.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-PyYAML
+Requires: python3-Sphinx
+Requires: python3-black
+Requires: python3-build
+Requires: python3-coverage
+Requires: python3-pre-commit
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-responses
+Requires: python3-sphinx-rtd-theme
+Requires: python3-tox
+Requires: python3-twine
+Requires: python3-Sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-pytest
+Requires: python3-pytest-cov
+
+%description
+
+
+%package -n python3-pcrunner
+Summary: A module for running Passive Nagios/Icinga Checks
+Provides: python-pcrunner
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pcrunner
+
+
+%package help
+Summary: Development documents and examples for pcrunner
+Provides: python3-pcrunner-doc
+%description help
+
+
+%prep
+%autosetup -n pcrunner-1.0.3
+
+%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-pcrunner -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Jun 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..1d8699e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1d6dfda5447c2c013a14f0d738346e0a pcrunner-1.0.3.tar.gz