summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 08:06:32 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 08:06:32 +0000
commita73c3c84954722b6671606884c8ad564a3ad46c8 (patch)
treeecd8ccc7fdd9f1346b1ebfe52630eb3f9ff6fc38
parent1b00b8c087f12c1e245290b09311696e3dde03cd (diff)
automatic import of python-asmog
-rw-r--r--.gitignore1
-rw-r--r--python-asmog.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9a944ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/asmog-0.0.6.tar.gz
diff --git a/python-asmog.spec b/python-asmog.spec
new file mode 100644
index 0000000..774d995
--- /dev/null
+++ b/python-asmog.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-asmog
+Version: 0.0.6
+Release: 1
+Summary: Python API for Ampio Smog Sensors
+License: Apache License 2.0
+URL: https://github.com/kstaniek/python-ampio-smog-api
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ba/db/69afb364f5f7203162e96144129b0742d725f5982e82f26e3e2d5b533aa6/asmog-0.0.6.tar.gz
+BuildArch: noarch
+
+
+%description
+Python Client for interacting with `Ampio Smog Sensors <smog1.ampio.pl:3050>`_
+This module is not officially developed nor surrported by Ampio.
+
+%package -n python3-asmog
+Summary: Python API for Ampio Smog Sensors
+Provides: python-asmog
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-asmog
+Python Client for interacting with `Ampio Smog Sensors <smog1.ampio.pl:3050>`_
+This module is not officially developed nor surrported by Ampio.
+
+%package help
+Summary: Development documents and examples for asmog
+Provides: python3-asmog-doc
+%description help
+Python Client for interacting with `Ampio Smog Sensors <smog1.ampio.pl:3050>`_
+This module is not officially developed nor surrported by Ampio.
+
+%prep
+%autosetup -n asmog-0.0.6
+
+%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-asmog -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.6-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..43be9d6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+77c322ef5f759cab383bbaf49202310e asmog-0.0.6.tar.gz