diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 11:49:52 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 11:49:52 +0000 |
commit | c21e4cd42a44ffa4f0710dffee7a549d471735af (patch) | |
tree | 7bd8a663fb5d70ae4ed77f47f967648d275e2bb1 | |
parent | 51fcf93c9ba2f9df616db8d570af6fbd1da10892 (diff) |
automatic import of python-gurux-dlmsopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-gurux-dlms.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/gurux_dlms-1.0.143.tar.gz diff --git a/python-gurux-dlms.spec b/python-gurux-dlms.spec new file mode 100644 index 0000000..73de437 --- /dev/null +++ b/python-gurux-dlms.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-gurux-dlms +Version: 1.0.143 +Release: 1 +Summary: Gurux DLMS library for Python. +License: GPLv2 +URL: https://github.com/gurux/gurux.dlms.python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/42/28/151cef53454b845ba87da3a057fec3bebfcade6ada4413e14c05b318571a/gurux_dlms-1.0.143.tar.gz +BuildArch: noarch + + +%description +If you find an issue, please report it here: +https://www.gurux.fi/project/issues/gurux.dlms.python + +%package -n python3-gurux-dlms +Summary: Gurux DLMS library for Python. +Provides: python-gurux-dlms +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-gurux-dlms +If you find an issue, please report it here: +https://www.gurux.fi/project/issues/gurux.dlms.python + +%package help +Summary: Development documents and examples for gurux-dlms +Provides: python3-gurux-dlms-doc +%description help +If you find an issue, please report it here: +https://www.gurux.fi/project/issues/gurux.dlms.python + +%prep +%autosetup -n gurux-dlms-1.0.143 + +%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-gurux-dlms -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.143-1 +- Package Spec generated @@ -0,0 +1 @@ +c3f24f538edb770578a66dd20685eef4 gurux_dlms-1.0.143.tar.gz |