summaryrefslogtreecommitdiff
path: root/python-iehf.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:10:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:10:21 +0000
commit67bcaa7833323966ab28e66cdd82e1e48b0c7f3e (patch)
tree18de5f2e91fa0e1caa015bb2ad8dc4aeed92424d /python-iehf.spec
parent72a843c14b6fd1d4baaa4763124845f18e1b957b (diff)
automatic import of python-iehfopeneuler20.03
Diffstat (limited to 'python-iehf.spec')
-rw-r--r--python-iehf.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-iehf.spec b/python-iehf.spec
new file mode 100644
index 0000000..10257a8
--- /dev/null
+++ b/python-iehf.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-iehf
+Version: 0.0.22
+Release: 1
+Summary: HF for IE
+License: MIT License
+URL: https://pypi.org/project/iehf/
+Source0: https://mirrors.aliyun.com/pypi/web/packages/32/38/4b23a4cbb2b6ae5866579dc9d6cab97fefc70d16509f9c9a18920ff30620/iehf-0.0.22.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-iehf
+Summary: HF for IE
+Provides: python-iehf
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-iehf
+
+
+%package help
+Summary: Development documents and examples for iehf
+Provides: python3-iehf-doc
+%description help
+
+
+%prep
+%autosetup -n iehf-0.0.22
+
+%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-iehf -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.22-1
+- Package Spec generated