Blame fedora-messaging.spec

Jeremy Cline 711d9cb
%global pkgname fedora-messaging
Jeremy Cline 711d9cb
%global srcname fedora_messaging
Jeremy Cline 711d9cb
%global desc \
Jeremy Cline 711d9cb
Tools and APIs to make working with AMQP in Fedora easier.
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%{?python_enable_dependency_generator}
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Name:           %{pkgname}
342a672
Version:        2.0.2
342a672
Release:        1%{?dist}
Jeremy Cline 711d9cb
Summary:        Set of tools for using Fedora's messaging infrastructure
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
License:        GPLv2+
Jeremy Cline 711d9cb
URL:            https://github.com/fedora-infra/fedora-messaging
Jeremy Cline 571934f
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
Jeremy Cline 711d9cb
BuildArch:      noarch
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
BuildRequires:  python3-devel
Jeremy Cline 711d9cb
BuildRequires:  python3-blinker
Jeremy Cline 711d9cb
BuildRequires:  python3-click
bdd8fe3
BuildRequires:  python3-crochet
Jeremy Cline 711d9cb
BuildRequires:  python3-jsonschema
Jeremy Cline 711d9cb
BuildRequires:  python3-mock
Jeremy Cline 711d9cb
BuildRequires:  python3-pika
Jeremy Cline 711d9cb
BuildRequires:  python3-pyOpenSSL
Jeremy Cline 711d9cb
BuildRequires:  python3-pytest
12ba8db
#BuildRequires:  python3-pytest-twisted
Jeremy Cline 7353ee5
BuildRequires:  python3-toml
Jeremy Cline 711d9cb
BuildRequires:  python3-service-identity
Jeremy Cline 711d9cb
BuildRequires:  python3-six
Jeremy Cline 711d9cb
BuildRequires:  python3-sphinx
Jeremy Cline 711d9cb
BuildRequires:  python3-twisted
Jeremy Cline 711d9cb
Requires:       python3-%{pkgname} = %{version}-%{release}
Jeremy Cline 711d9cb
65da202
BuildRequires: systemd-rpm-macros
65da202
Jeremy Cline 711d9cb
%description %{desc}
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%package     -n python3-%{pkgname}
Jeremy Cline 711d9cb
Summary:        %{summary}
Jeremy Cline 711d9cb
%{?python_provide:%python_provide python3-%{pkgname}}
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%description -n python3-%{pkgname} %{desc}
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%package doc
Jeremy Cline 711d9cb
Summary:        Documentation for %{pkgname}
Jeremy Cline 711d9cb
%description doc
Jeremy Cline 711d9cb
Documentation for %{pkgname}.
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%prep
Jeremy Cline 571934f
%autosetup -n %{pkgname}-%{version}
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%build
Jeremy Cline 711d9cb
%py3_build
Jeremy Cline 711d9cb
# generate docs
Jeremy Cline 711d9cb
PYTHONPATH=${PWD} sphinx-build-3 -M html -d docs/_build/doctrees docs docs/_build/html
Jeremy Cline 711d9cb
PYTHONPATH=${PWD} sphinx-build-3 -M man -d docs/_build/doctrees docs docs/_build/man
Jeremy Cline 711d9cb
# remove the sphinx-build leftovers
Jeremy Cline 711d9cb
rm -rf docs/_build/*/.buildinfo
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%install
Jeremy Cline 711d9cb
%py3_install
Jeremy Cline 711d9cb
install -D -m 644 config.toml.example $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/config.toml
Jeremy Cline 72c9057
install -D -m 644 configs/fedora.toml $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.toml
Jeremy Cline 424fc36
install -D -m 644 configs/fedora.stg.toml $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg.toml
Jeremy Cline 72c9057
install -D -m 644 configs/cacert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/cacert.pem
Jeremy Cline 72c9057
# Yes, this is supposed to be a world-readable private key. It's for public Fedora broker access.
Jeremy Cline 72c9057
install -D -m 644 configs/fedora-key.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora-key.pem
Jeremy Cline 72c9057
install -D -m 644 configs/fedora-cert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora-cert.pem
Jeremy Cline 424fc36
install -D -m 644 configs/stg-cacert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/stg-cacert.pem
Jeremy Cline 424fc36
install -D -m 644 configs/fedora.stg-key.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg-key.pem
Jeremy Cline 424fc36
install -D -m 644 configs/fedora.stg-cert.pem $RPM_BUILD_ROOT%{_sysconfdir}/fedora-messaging/fedora.stg-cert.pem
Jeremy Cline 711d9cb
install -D -m 644 docs/_build/man/fedora-messaging.1 $RPM_BUILD_ROOT%{_mandir}/man1/fedora-messaging.1
65da202
install -D -m 644 fm-consumer@.service $RPM_BUILD_ROOT%{_unitdir}/fm-consumer@.service
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%check
12ba8db
#export PYTHONPATH=.
12ba8db
#pytest-3 -vv
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%files
Jeremy Cline 711d9cb
%license LICENSE
Jeremy Cline 711d9cb
%doc README.rst
c0ab76c
%dir %{_sysconfdir}/fedora-messaging/
Jeremy Cline 711d9cb
%config(noreplace) %{_sysconfdir}/fedora-messaging/config.toml
Jeremy Cline 72c9057
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.toml
Jeremy Cline 424fc36
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg.toml
Jeremy Cline 72c9057
%config(noreplace) %{_sysconfdir}/fedora-messaging/cacert.pem
Jeremy Cline 72c9057
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora-key.pem
Jeremy Cline 72c9057
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora-cert.pem
Jeremy Cline 424fc36
%config(noreplace) %{_sysconfdir}/fedora-messaging/stg-cacert.pem
Jeremy Cline 424fc36
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg-key.pem
Jeremy Cline 424fc36
%config(noreplace) %{_sysconfdir}/fedora-messaging/fedora.stg-cert.pem
Jeremy Cline 711d9cb
%{_mandir}/man1/%{name}.*
Jeremy Cline 711d9cb
%{_bindir}/%{name}
65da202
%{_unitdir}/fm-consumer@.service
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%files -n python3-%{pkgname}
Jeremy Cline 711d9cb
%license LICENSE
Jeremy Cline 711d9cb
%{python3_sitelib}/%{srcname}
Jeremy Cline 571934f
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%files doc
Jeremy Cline 711d9cb
%license LICENSE
d1dec8a
%doc README.rst docs/*.rst docs/_build/html docs/sample_schema_package
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
%changelog
342a672
* Tue Aug 04 2020 Aurelien Bompard <abompard@fedoraproject.org> - 2.0.2-1
342a672
- Update to 2.0.2
342a672
3eb5236
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
3eb5236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3eb5236
f343cdc
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-3
f343cdc
- Rebuilt for Python 3.9
f343cdc
9bf2080
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
9bf2080
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9bf2080
e40b910
* Fri Jan 03 2020 Aurelien Bompard <abompard@fedoraproject.org> - 2.0.1-1
e40b910
- Update to 2.0.1
e40b910
d268385
* Tue Dec 03 2019 Aurelien Bompard <abompard@fedoraproject.org> - 2.0.0-1
d268385
- Update to 2.0.0
12ba8db
- Until pytest-twisted is packaged, disable the tests in %%check.
d268385
901beb0
* Tue Sep 03 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.2-1
901beb0
- Update to 1.7.2. Fixes bug #1742459
901beb0
aa89026
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.1-3
aa89026
- Rebuilt for Python 3.8
aa89026
9a3ee6b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.1-2
9a3ee6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9a3ee6b
Jeremy Cline 6a14095
* Tue Jun 25 2019 Jeremy Cline <jcline@redhat.com> - 1.7.1-1
Jeremy Cline 6a14095
- Update to v1.7.1
Jeremy Cline 6a14095
d1dec8a
* Wed Jun 19 2019 Pavel Raiskup <praiskup@redhat.com> - 1.7.0-3
d1dec8a
- install sample schema documentation cited by
d1dec8a
  https://fedora-messaging.readthedocs.io/en/latest/tutorial/schemas.html
d1dec8a
Jeremy Cline 424fc36
* Mon Jun 10 2019 Jeremy Cline <jcline@redhat.com> - 1.7.0-2
Jeremy Cline 424fc36
- Include the stage config and credentials
Jeremy Cline 424fc36
Jeremy Cline fd375cb
* Tue May 21 2019 Jeremy Cline <jcline@redhat.com> - 1.7.0-1
Jeremy Cline fd375cb
- Update to v1.7.0
Jeremy Cline fd375cb
Jeremy Cline cb07520
* Wed Apr 17 2019 Jeremy Cline <jcline@redhat.com> - 1.6.1-1
Jeremy Cline cb07520
- Update to v1.6.1
Jeremy Cline cb07520
Jeremy Cline 72c9057
* Thu Apr 04 2019 Jeremy Cline <jcline@redhat.com> - 1.6.0-1
Jeremy Cline 72c9057
- Update to v1.6.0
Jeremy Cline 72c9057
65da202
* Thu Mar 07 2019 Aurelien Bompard <abompard@fedoraproject.org> - 1.5.0-2
65da202
- Add the Systemd service template file.
65da202
d69fe00
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
d69fe00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d69fe00
Jeremy Cline 030b274
* Thu Jan 24 2019 Jeremy Cline <jeremy@jcline.org> - 1.3.0-1
Jeremy Cline 030b274
- Update to v1.3.0
Jeremy Cline 030b274
Jeremy Cline 82c735e
* Mon Jan 21 2019 Jeremy Cline <jeremy@jcline.org> - 1.2.0-1
Jeremy Cline 82c735e
- Update to v1.2.0
Jeremy Cline 82c735e
Jeremy Cline a9766c5
* Thu Nov 15 2018 Jeremy Cline <jeremy@jcline.org> - 1.1.0-1
Jeremy Cline a9766c5
- Update to v1.1.0
Jeremy Cline a9766c5
Jeremy Cline 6d5b791
* Wed Oct 10 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.1-1
Jeremy Cline 6d5b791
- Update to v1.0.1
Jeremy Cline 6d5b791
Jeremy Cline fb1bb91
* Wed Oct 10 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.0-1
Jeremy Cline fb1bb91
- Update to v1.0.0
Jeremy Cline fb1bb91
Jeremy Cline 711d9cb
* Fri Sep 07 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.0-0.2b1
Jeremy Cline 711d9cb
- Move dependency generator macro to top of file
Jeremy Cline 711d9cb
- Depend on version + release for the library
Jeremy Cline 711d9cb
- Add python_provide macro
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
* Wed Aug 29 2018 Jeremy Cline <jeremy@jcline.org> - 1.0.0-0.1b1
Jeremy Cline 711d9cb
- Update to 1.0.0b1
Jeremy Cline 711d9cb
- Drop Python 2 package for Rawhide
Jeremy Cline 711d9cb
Jeremy Cline 711d9cb
* Wed Aug 15 2018 Aurelien Bompard <abompard@fedoraproject.org> - 1.0.0-0.1.a1
Jeremy Cline 711d9cb
- Initial package