summaryrefslogtreecommitdiff
path: root/python-modules.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 16:29:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 16:29:51 +0000
commit30dad398b718688385e096ccd2595ea7507a7f9e (patch)
tree6f61ea6b6ed2a5146aa9ae211a27c9a3ccfe8341 /python-modules.spec
parent1d57776ba738a499f85cd19966720d7954069f93 (diff)
automatic import of python-modules
Diffstat (limited to 'python-modules.spec')
-rw-r--r--python-modules.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-modules.spec b/python-modules.spec
new file mode 100644
index 0000000..a9d5d03
--- /dev/null
+++ b/python-modules.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-modules
+Version: 1.0.0
+Release: 1
+Summary: Simple test on modules
+License: UNKNOWN
+URL: www.facebook.com/rakeshbubli
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4b/95/2f306ff2299ed8d44fbabac4c0b193628c4c65398ed59af2db66b6f52632/modules-1.0.0.tar.gz
+BuildArch: noarch
+
+
+%description
+UNKNOWN
+
+%package -n python3-modules
+Summary: Simple test on modules
+Provides: python-modules
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-modules
+UNKNOWN
+
+%package help
+Summary: Development documents and examples for modules
+Provides: python3-modules-doc
+%description help
+UNKNOWN
+
+%prep
+%autosetup -n modules-1.0.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-modules -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1
+- Package Spec generated