diff --git a/python-stompest.spec b/python-stompest.spec new file mode 100644 index 0000000000000000000000000000000000000000..153e16c85590ca151611297ed41c10ffd82ba29c --- /dev/null +++ b/python-stompest.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-stompest +Version: 2.3.0 +Release: 1 +Summary: STOMP library for Python including a synchronous client. +License: Apache-2.0 +URL: https://github.com/nikipore/stompest +Source0: https://files.pythonhosted.org/packages/6f/eb/29c1800f821372fd4b0f92c5185970147d73cf72dc17e43c88cf4e9d57f3/stompest-2.3.0.tar.gz +BuildArch: noarch + + +%description +Stompest is a full-featured STOMP 1.0, 1.1 and 1.2 implementation for Python 2.7 and Python 3 (versions 3.3 and higher), with optional TLS/SSL support. + +%package -n python3-stompest +Summary: STOMP library for Python including a synchronous client. +Provides: python-stompest +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-stompest +Stompest is a full-featured STOMP 1.0, 1.1 and 1.2 implementation for Python 2.7 and Python 3 (versions 3.3 and higher), with optional TLS/SSL support. + +%package help +Summary: Development documents and examples for stompest +Provides: python3-stompest-doc + +%description help +Stompest is a full-featured STOMP 1.0, 1.1 and 1.2 implementation for Python 2.7 and Python 3 (versions 3.3 and higher), with optional TLS/SSL support. + +%prep +%autosetup -n stompest-%{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-stompest -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri Dec 09 2022 chendexi - 2.3.0-1 +- Package init diff --git a/stompest-2.3.0.tar.gz b/stompest-2.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..e3bb940627e14499f86174e36bca81dcc1069dc2 Binary files /dev/null and b/stompest-2.3.0.tar.gz differ