diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:14:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:14:20 +0000 |
commit | c7248069cc9f198f90e2435cc0d1978cccfaaa5d (patch) | |
tree | 3a57942277a35359e204fd1bccbb9cd422ee8ae0 /python-horusdemodlib.spec | |
parent | c033f099fa28aa073eeb40cadee7b2a63ebc66b8 (diff) |
automatic import of python-horusdemodlibopeneuler20.03
Diffstat (limited to 'python-horusdemodlib.spec')
-rw-r--r-- | python-horusdemodlib.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-horusdemodlib.spec b/python-horusdemodlib.spec new file mode 100644 index 0000000..aa9f25a --- /dev/null +++ b/python-horusdemodlib.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-horusdemodlib +Version: 0.3.10 +Release: 1 +Summary: Project Horus HAB Telemetry Demodulators +License: LGPL-2.1-or-later +URL: https://pypi.org/project/horusdemodlib/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/98/25/1bbb0e84a4cdce9bece23b73329314612655c7d81be81dc327c18fcc6312/horusdemodlib-0.3.10.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-crcmod +Requires: python3-numpy +Requires: python3-dateutil + +%description + + +%package -n python3-horusdemodlib +Summary: Project Horus HAB Telemetry Demodulators +Provides: python-horusdemodlib +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-horusdemodlib + + +%package help +Summary: Development documents and examples for horusdemodlib +Provides: python3-horusdemodlib-doc +%description help + + +%prep +%autosetup -n horusdemodlib-0.3.10 + +%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-horusdemodlib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.10-1 +- Package Spec generated |