summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:48:43 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:48:43 +0000
commit92628e068e8555d9607b685c29afe264a4cd2e5e (patch)
tree2825ba2c19e280f761c808bd27e11f89264b1ddc
parente6399622842a08cefdddbeb39432f9e9d778bae4 (diff)
automatic import of python-pysesame2
-rw-r--r--.gitignore1
-rw-r--r--python-pysesame2.spec97
-rw-r--r--sources1
3 files changed, 99 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..197a3ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pysesame2-1.0.2.tar.gz
diff --git a/python-pysesame2.spec b/python-pysesame2.spec
new file mode 100644
index 0000000..2ea6e01
--- /dev/null
+++ b/python-pysesame2.spec
@@ -0,0 +1,97 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pysesame2
+Version: 1.0.2
+Release: 1
+Summary: Python API for Sesame Smartlock made by CANDY HOUSE, Inc.
+License: MIT
+URL: https://github.com/yagami-cerberus/pysesame2
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a8/fb/35e2973a441560ba7e7c6e4f265b64df8c9df4d3a61c1c3624d9a46f7265/pysesame2-1.0.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+
+%description
+00000000-0000-0000-0000-000000000001 000000000001 MY-SESAME-LOCK-1
+00000000-0000-0000-0000-000000000002 000000000002 MY-SESAME-LOCK-2
+# sesame2 --apikey YOUR_APIKEY lock 00000000-0000-0000-0000-000000000001
+# sesame2 --apikey YOUR_APIKEY status 00000000-0000-0000-0000-000000000001
+Locked: True
+Battery: 100
+Responsive: True
+```
+Use `sesame2 --help` get more options
+
+%package -n python3-pysesame2
+Summary: Python API for Sesame Smartlock made by CANDY HOUSE, Inc.
+Provides: python-pysesame2
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pysesame2
+00000000-0000-0000-0000-000000000001 000000000001 MY-SESAME-LOCK-1
+00000000-0000-0000-0000-000000000002 000000000002 MY-SESAME-LOCK-2
+# sesame2 --apikey YOUR_APIKEY lock 00000000-0000-0000-0000-000000000001
+# sesame2 --apikey YOUR_APIKEY status 00000000-0000-0000-0000-000000000001
+Locked: True
+Battery: 100
+Responsive: True
+```
+Use `sesame2 --help` get more options
+
+%package help
+Summary: Development documents and examples for pysesame2
+Provides: python3-pysesame2-doc
+%description help
+00000000-0000-0000-0000-000000000001 000000000001 MY-SESAME-LOCK-1
+00000000-0000-0000-0000-000000000002 000000000002 MY-SESAME-LOCK-2
+# sesame2 --apikey YOUR_APIKEY lock 00000000-0000-0000-0000-000000000001
+# sesame2 --apikey YOUR_APIKEY status 00000000-0000-0000-0000-000000000001
+Locked: True
+Battery: 100
+Responsive: True
+```
+Use `sesame2 --help` get more options
+
+%prep
+%autosetup -n pysesame2-1.0.2
+
+%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-pysesame2 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..bb69813
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+631b888a3669068d462a8d9a11d2de7d pysesame2-1.0.2.tar.gz