diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:21:00 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:21:00 +0000 |
| commit | d330df7ffddef3142374592155e982b2088f3a5e (patch) | |
| tree | 8ca99348b2f8d8aae50d8e2aa9640fb6b52e7ffa /python-amqpstorm.spec | |
| parent | 7720e4bc0d06f0599167cf278298fb3d97d6f45f (diff) | |
automatic import of python-amqpstorm
Diffstat (limited to 'python-amqpstorm.spec')
| -rw-r--r-- | python-amqpstorm.spec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python-amqpstorm.spec b/python-amqpstorm.spec new file mode 100644 index 0000000..f5a5fdd --- /dev/null +++ b/python-amqpstorm.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-AMQPStorm +Version: 2.10.6 +Release: 1 +Summary: Thread-safe Python RabbitMQ Client & Management library. +License: MIT License +URL: https://www.amqpstorm.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/32/0d/0b2ef4b51ece2a5d9325d53439af7882d34252120d0eaaa9cef621044bbf/AMQPStorm-2.10.6.tar.gz +BuildArch: noarch + + +%description +Thread-safe Python RabbitMQ Client & Management library. +|Version| + +%package -n python3-AMQPStorm +Summary: Thread-safe Python RabbitMQ Client & Management library. +Provides: python-AMQPStorm +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-AMQPStorm +Thread-safe Python RabbitMQ Client & Management library. +|Version| + +%package help +Summary: Development documents and examples for AMQPStorm +Provides: python3-AMQPStorm-doc +%description help +Thread-safe Python RabbitMQ Client & Management library. +|Version| + +%prep +%autosetup -n AMQPStorm-2.10.6 + +%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-AMQPStorm -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.10.6-1 +- Package Spec generated |
