%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 - 1.0.2-1 - Package Spec generated