summaryrefslogtreecommitdiff
path: root/python-libdw.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 07:50:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 07:50:55 +0000
commit2ba42e3e54dd2cd060b11fbbdcf53bcafb93a711 (patch)
tree37def53a20391d7151add8be7a756b12de6911a9 /python-libdw.spec
parent06ea64e0a7187e0d88d09d7f99b76004bbe2dcc5 (diff)
automatic import of python-libdwopeneuler20.03
Diffstat (limited to 'python-libdw.spec')
-rw-r--r--python-libdw.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/python-libdw.spec b/python-libdw.spec
new file mode 100644
index 0000000..5c43d01
--- /dev/null
+++ b/python-libdw.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-libdw
+Version: 4.3.0
+Release: 1
+Summary: The Digital World Code Distribution
+License: MIT
+URL: http://www.sutd.edu.sg
+Source0: https://mirrors.aliyun.com/pypi/web/packages/12/e7/3800fbd297e64d1f0cad28b09d0aa52fb75c087a5e81e582913627abd8ce/libdw-4.3.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-gcloud
+Requires: python3-oauth2client
+Requires: python3-requests-toolbelt
+Requires: python3-jwt
+Requires: python3-sseclient
+
+%description
+
+
+%package -n python3-libdw
+Summary: The Digital World Code Distribution
+Provides: python-libdw
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-libdw
+
+
+%package help
+Summary: Development documents and examples for libdw
+Provides: python3-libdw-doc
+%description help
+
+
+%prep
+%autosetup -n libdw-4.3.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-libdw -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 4.3.0-1
+- Package Spec generated