|
Jeremy Cline |
50fd67a |
%global pkgname fedora-messaging
|
|
Jeremy Cline |
50fd67a |
%global srcname fedora_messaging
|
|
Jeremy Cline |
50fd67a |
%global desc \
|
|
Jeremy Cline |
50fd67a |
Tools and APIs to make working with AMQP in Fedora easier.
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
Name: %{pkgname}
|
|
Jeremy Cline |
ce56bef |
Version: 1.7.0
|
|
Jeremy Cline |
f6e611d |
Release: 2%{?dist}
|
|
Jeremy Cline |
50fd67a |
Summary: Set of tools for using Fedora's messaging infrastructure
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
License: GPLv2+
|
|
Jeremy Cline |
50fd67a |
URL: https://github.com/fedora-infra/fedora-messaging
|
|
Jeremy Cline |
d143784 |
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
|
Jeremy Cline |
50fd67a |
Patch0: Use-old-napoleon-module-for-EPEL-7.patch
|
|
Jeremy Cline |
fb380ee |
Patch1: Remove-service-identity-from-dependencies.patch
|
|
Jeremy Cline |
50fd67a |
BuildArch: noarch
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-devel
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-blinker
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-click
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-jsonschema
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-mock
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-pika >= 0.12.0
|
|
Jeremy Cline |
50fd67a |
BuildRequires: pyOpenSSL
|
|
Jeremy Cline |
50fd67a |
BuildRequires: pytest
|
|
Jeremy Cline |
56c64dd |
BuildRequires: python-toml
|
|
Jeremy Cline |
b84f6f1 |
BuildRequires: python-twisted-core
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-pytz
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-six
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-sphinx
|
|
Jeremy Cline |
50fd67a |
BuildRequires: python-sphinxcontrib-napoleon
|
|
Jeremy Cline |
50fd67a |
Requires: python-%{pkgname} = %{version}-%{release}
|
|
Jeremy Cline |
50fd67a |
|
|
|
4b7266a |
BuildRequires: systemd
|
|
|
cc7d9d7 |
|
|
Jeremy Cline |
50fd67a |
%description %{desc}
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%package -n python2-%{pkgname}
|
|
Jeremy Cline |
50fd67a |
Summary: %{summary}
|
|
Jeremy Cline |
50fd67a |
%{?python_provide:%python_provide python2-%{pkgname}}
|
|
Jeremy Cline |
50fd67a |
# Drop when https://github.com/fedora-infra/fedora-messaging/pull/51 is released
|
|
Jeremy Cline |
50fd67a |
Requires: python-blinker
|
|
Jeremy Cline |
50fd67a |
Requires: python-click
|
|
Jeremy Cline |
50fd67a |
Requires: python-jsonschema
|
|
Jeremy Cline |
50fd67a |
Requires: python-pika >= 0.12.0
|
|
Jeremy Cline |
50fd67a |
Requires: pyOpenSSL
|
|
Jeremy Cline |
b84f6f1 |
Requires: python-toml
|
|
Jeremy Cline |
b84f6f1 |
Requires: python-twisted-core
|
|
Jeremy Cline |
b84f6f1 |
Requires: python-setuptools
|
|
Jeremy Cline |
50fd67a |
Requires: python-six
|
|
Jeremy Cline |
50fd67a |
Requires: python-pytz
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%description -n python2-%{pkgname} %{desc}
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%package doc
|
|
Jeremy Cline |
50fd67a |
Summary: Documentation for %{pkgname}
|
|
Jeremy Cline |
50fd67a |
%description doc
|
|
Jeremy Cline |
50fd67a |
Documentation for %{pkgname}.
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%prep
|
|
Jeremy Cline |
2aff561 |
%autosetup -p1 -n %{pkgname}-%{version}
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
# Twisted is too old in EPEL7 to bother supporting.
|
|
Jeremy Cline |
50fd67a |
rm -f fedora_messaging/tests/unit/twisted/*.py
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
# Swathes of unit tests fail due to old versions of mock
|
|
Jeremy Cline |
50fd67a |
rm -f fedora_messaging/tests/unit/test_config.py
|
|
Jeremy Cline |
50fd67a |
rm -f fedora_messaging/tests/unit/test_cli.py
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%build
|
|
Jeremy Cline |
50fd67a |
%py2_build
|
|
Jeremy Cline |
50fd67a |
# generate docs
|
|
Jeremy Cline |
50fd67a |
PYTHONPATH=${PWD} sphinx-build -b man -d docs/_build/doctrees docs docs/_build/man
|
|
Jeremy Cline |
50fd67a |
# remove the sphinx-build leftovers
|
|
Jeremy Cline |
50fd67a |
rm -rf docs/_build/*/.buildinfo
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%install
|
|
Jeremy Cline |
50fd67a |
%py2_install
|
|
Jeremy Cline |
50fd67a |
install -D -m 644 config.toml.example $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/config.toml
|
|
Jeremy Cline |
b84f6f1 |
install -D -m 644 configs/fedora.toml $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.toml
|
|
Jeremy Cline |
f6e611d |
install -D -m 644 configs/fedora.stg.toml $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg.toml
|
|
Jeremy Cline |
b84f6f1 |
install -D -m 644 configs/cacert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/cacert.pem
|
|
Jeremy Cline |
b84f6f1 |
# Yes, this is supposed to be a world-readable private key. It's for public Fedora broker access.
|
|
Jeremy Cline |
b84f6f1 |
install -D -m 644 configs/fedora-key.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora-key.pem
|
|
Jeremy Cline |
b84f6f1 |
install -D -m 644 configs/fedora-cert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora-cert.pem
|
|
Jeremy Cline |
f6e611d |
install -D -m 644 configs/stg-cacert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/stg-cacert.pem
|
|
Jeremy Cline |
f6e611d |
install -D -m 644 configs/fedora.stg-key.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg-key.pem
|
|
Jeremy Cline |
f6e611d |
install -D -m 644 configs/fedora.stg-cert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg-cert.pem
|
|
Jeremy Cline |
50fd67a |
install -D -m 644 docs/_build/man/fedora-messaging.1 $RPM_BUILD_ROOT%{_mandir}/man1/fedora-messaging.1
|
|
|
cc7d9d7 |
install -D -m 644 fm-consumer@.service $RPM_BUILD_ROOT%{_unitdir}/fm-consumer@.service
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%check
|
|
Jeremy Cline |
50fd67a |
export PYTHONPATH=.
|
|
Jeremy Cline |
50fd67a |
py.test -vv fedora_messaging/tests/unit/
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%files
|
|
Jeremy Cline |
50fd67a |
%license LICENSE
|
|
Jeremy Cline |
50fd67a |
%doc README.rst
|
|
Jeremy Cline |
50fd67a |
%config(noreplace) %{_sysconfdir}/fedora-messaging/config.toml
|
|
Jeremy Cline |
b84f6f1 |
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.toml
|
|
Jeremy Cline |
f6e611d |
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg.toml
|
|
Jeremy Cline |
b84f6f1 |
%config(noreplace) %{_sysconfdir}/fedora-messaging/cacert.pem
|
|
Jeremy Cline |
b84f6f1 |
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora-key.pem
|
|
Jeremy Cline |
b84f6f1 |
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora-cert.pem
|
|
Jeremy Cline |
f6e611d |
%config(noreplace) %{_sysconfdir}/fedora-messaging/stg-cacert.pem
|
|
Jeremy Cline |
f6e611d |
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg-key.pem
|
|
Jeremy Cline |
f6e611d |
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg-cert.pem
|
|
Jeremy Cline |
50fd67a |
%{_mandir}/man1/%{name}.*
|
|
Jeremy Cline |
50fd67a |
%{_bindir}/%{name}
|
|
|
cc7d9d7 |
%{_unitdir}/fm-consumer@.service
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%files -n python2-%{pkgname}
|
|
Jeremy Cline |
50fd67a |
%license LICENSE
|
|
Jeremy Cline |
50fd67a |
%{python2_sitelib}/%{srcname}
|
|
Jeremy Cline |
2aff561 |
%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%files doc
|
|
Jeremy Cline |
50fd67a |
%license LICENSE
|
|
Jeremy Cline |
50fd67a |
%doc README.rst docs/*.rst
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
%changelog
|
|
Jeremy Cline |
f6e611d |
* Mon Jun 10 2019 Jeremy Cline <jcline@redhat.com> - 1.7.0-2
|
|
Jeremy Cline |
f6e611d |
- Include the stage config and credentials
|
|
Jeremy Cline |
f6e611d |
|
|
Jeremy Cline |
ce56bef |
* Tue May 21 2019 Jeremy Cline <jcline@redhat.com> - 1.7.0-1
|
|
Jeremy Cline |
ce56bef |
- Update to v1.7.0
|
|
Jeremy Cline |
ce56bef |
|
|
Jeremy Cline |
9b56f0c |
* Wed Apr 17 2019 Jeremy Cline <jcline@redhat.com> - 1.6.1-1
|
|
Jeremy Cline |
9b56f0c |
- Update to v1.6.1
|
|
Jeremy Cline |
9b56f0c |
|
|
Jeremy Cline |
b84f6f1 |
* Fri Apr 05 2019 Jeremy Cline <jcline@redhat.com> - 1.6.0-2
|
|
Jeremy Cline |
b84f6f1 |
- Drop Twisted from requires.txt
|
|
Jeremy Cline |
b84f6f1 |
|
|
Jeremy Cline |
b84f6f1 |
* Thu Apr 04 2019 Jeremy Cline <jcline@redhat.com> - 1.6.0-1
|
|
Jeremy Cline |
b84f6f1 |
- Update to v1.6.0
|
|
Jeremy Cline |
b84f6f1 |
|
|
|
cc7d9d7 |
* Thu Mar 07 2019 Aurelien Bompard <abompard@fedoraproject.org> - 1.5.0-2
|
|
|
cc7d9d7 |
- Add the Systemd service template file.
|
|
|
cc7d9d7 |
|
|
Jeremy Cline |
7688669 |
* Thu Jan 24 2019 Jeremy Cline <jeremy@jcline.org> - 1.3.0-1
|
|
Jeremy Cline |
7688669 |
- Update to v1.3.0
|
|
Jeremy Cline |
7688669 |
|
|
Jeremy Cline |
7a4a79e |
* Mon Jan 21 2019 Jeremy Cline <jeremy@jcline.org> - 1.2.0-1
|
|
Jeremy Cline |
7a4a79e |
- Update to v1.2.0
|
|
Jeremy Cline |
7a4a79e |
|
|
Jeremy Cline |
449e7c4 |
* Thu Nov 15 2018 Jeremy Cline <jeremy@jcline.org> - 1.1.0-1
|
|
Jeremy Cline |
449e7c4 |
- Update to v1.1.0
|
|
Jeremy Cline |
449e7c4 |
|
|
Jeremy Cline |
87ca6c9 |
* Wed Oct 10 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.1-1
|
|
Jeremy Cline |
87ca6c9 |
- Update to v1.0.1
|
|
Jeremy Cline |
87ca6c9 |
|
|
Jeremy Cline |
d143784 |
* Wed Oct 10 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.0-1
|
|
Jeremy Cline |
d143784 |
- Update to v1.0.0
|
|
Jeremy Cline |
d143784 |
|
|
Jeremy Cline |
50fd67a |
* Fri Sep 07 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.0-0.2b1
|
|
Jeremy Cline |
50fd67a |
- Move dependency generator macro to top of file
|
|
Jeremy Cline |
50fd67a |
- Depend on version + release for the library
|
|
Jeremy Cline |
50fd67a |
- Add python_provide macro
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
* Wed Aug 29 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.0-0.1b1
|
|
Jeremy Cline |
50fd67a |
- Update to 1.0.0b1
|
|
Jeremy Cline |
50fd67a |
- Drop Python 2 package for Rawhide
|
|
Jeremy Cline |
50fd67a |
|
|
Jeremy Cline |
50fd67a |
* Wed Aug 15 2018 Aurelien Bompard <abompard@fedoraproject.org> - 1.0.0-0.1.a1
|
|
Jeremy Cline |
50fd67a |
- Initial package
|