summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 06:25:30 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 06:25:30 +0000
commitf0df930da1ee665e05a7eeeedfd69d37c4ea77f4 (patch)
tree149974a1194ea81583ba1637d293f0346072d271
parent4de044357390658a71222fcc68591b1c12a4fffb (diff)
automatic import of python-insecure-package
-rw-r--r--.gitignore1
-rw-r--r--python-insecure-package.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7350e8d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/insecure-package-0.1.0.tar.gz
diff --git a/python-insecure-package.spec b/python-insecure-package.spec
new file mode 100644
index 0000000..0a3ab1c
--- /dev/null
+++ b/python-insecure-package.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-insecure-package
+Version: 0.1.0
+Release: 1
+Summary: Insecure Package, don't use it
+License: MIT license
+URL: https://github.com/pyupio/insecure_package
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/dd/b7/b7318693b356d0e0ba566fb22b72a349a10337880c254e5e7e9f24f4f9b3/insecure-package-0.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-insecure-package
+Summary: Insecure Package, don't use it
+Provides: python-insecure-package
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-insecure-package
+
+
+%package help
+Summary: Development documents and examples for insecure-package
+Provides: python3-insecure-package-doc
+%description help
+
+
+%prep
+%autosetup -n insecure-package-0.1.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-insecure-package -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ed65a77
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1e8732a739c35b78adf50388d4041b71 insecure-package-0.1.0.tar.gz