diff --git a/python-webthing-ws.spec b/python-webthing-ws.spec index 7dd2803f77334d5795ab83a7388d7e5c8857f7b4..fb0e7c04a928f7552640bc27b6c728d86bcdc41b 100644 --- a/python-webthing-ws.spec +++ b/python-webthing-ws.spec @@ -1,44 +1,76 @@ -%global pypi_name webthing-ws -Name: python-%{pypi_name} -Version: 0.1.1 -Release: 1 -Summary: WebThing WebSocket consumer and API client - -License: MIT -URL: https://github.com/fabaff/webthing-ws -Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz -BuildArch: noarch +%global _empty_manifest_terminate_build 0 +Name: python-webthing-ws +Version: 0.2.0 +Release: 1 +Summary: WebThing WebSocket consumer and API client +License: MIT +URL: https://github.com/fabaff/webthing-ws +Source0: https://files.pythonhosted.org/packages/04/4d/af38dc10f8535d2330097e346180bb32e38ca74328dd8dcc227fcbeb8618/webthing-ws-0.2.0.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: WebThing WebSocket consumer and API client +Provides: python-webthing-ws = %{version}-%{release} +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 +if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi +if [ -f README.txt ]; then cp -af README.txt %{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-%{pypi_name} -%doc README.rst example.py -%license LICENSE -%{python3_sitelib}/webthing_ws/ -%{python3_sitelib}/webthing_ws*.egg-info +%files -n python3-webthing-ws -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Mon Jul 03 2023 chenzixuan - 0.2.0-1 +- Update package to version 0.2.0 + * 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.2.0.tar.gz b/webthing-ws-0.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7ca861ef7481d3cd345fb35f9b6cdac540f2c65b Binary files /dev/null and b/webthing-ws-0.2.0.tar.gz differ