diff --git a/python-webthing-ws.spec b/python-webthing-ws.spec index 7dd2803f77334d5795ab83a7388d7e5c8857f7b4..ae12b06fa9e5e281aef4e6d6b3c6e455d560ae3e 100644 --- a/python-webthing-ws.spec +++ b/python-webthing-ws.spec @@ -1,44 +1,75 @@ -%global pypi_name webthing-ws -Name: python-%{pypi_name} -Version: 0.1.1 -Release: 1 -Summary: WebThing WebSocket consumer and API client +%global _empty_manifest_terminate_build 0 +Name: python-webthing-ws +Version: 0.1.2 +Release: 1 +Summary: A WebThing WebSocket consumer and API client. +License: MIT +URL: https://github.com/home-assistant-ecosystem/webthing-ws +Source0: https://files.pythonhosted.org/packages/e8/2e/8f68b353ef02b06f9065805b75984b4810b800996522ba469e2d9db0066a/webthing-ws-0.1.2.tar.gz +BuildArch: noarch -License: MIT -URL: https://github.com/fabaff/webthing-ws -Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz -BuildArch: noarch %description A WebThing WebSocket consumer and API client. -%package -n python3-%{pypi_name} -Summary: %{summary} - -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%{?python_provide:%python_provide python3-%{pypi_name}} +%package -n python3-webthing-ws +Summary: A WebThing WebSocket consumer and API client. +Provides: python-webthing-ws +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-webthing-ws +A WebThing WebSocket consumer and API client. -%description -n python3-%{pypi_name} +%package help +Summary: Development documents and examples for webthing-ws +Provides: python3-webthing-ws-doc +%description help A WebThing WebSocket consumer and API client. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n webthing-ws-%{version} %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-webthing-ws -f filelist.lst +%dir %{python3_sitelib}/* -%files -n python3-%{pypi_name} -%doc README.rst example.py -%license LICENSE -%{python3_sitelib}/webthing_ws/ -%{python3_sitelib}/webthing_ws*.egg-info +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Sep 26 2022 guozhengxin - 0.1.2-1 +- Upgrade package to version 0.1.2 +- Allow later async_timeout + * Mon Jun 28 2021 anyunhao - 0.1.1-1 - package init - - diff --git a/webthing-ws-0.1.1.tar.gz b/webthing-ws-0.1.1.tar.gz deleted file mode 100644 index 7bec0b083ec222f8b74eb544fea9db85a7da00d0..0000000000000000000000000000000000000000 Binary files a/webthing-ws-0.1.1.tar.gz and /dev/null differ diff --git a/webthing-ws-0.1.2.tar.gz b/webthing-ws-0.1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..630476cc196e21d49c9484379378afa025bbd7e2 Binary files /dev/null and b/webthing-ws-0.1.2.tar.gz differ