Blame python-fmn-sse.spec

1d692f9
%global srcname fmn.sse
1d692f9
%global pkgname fmn-sse
1d692f9
1d692f9
Name:           python-%{pkgname}
1d692f9
Version:        0.2.1
1d692f9
Release:        2%{?dist}
1d692f9
Summary:        A server-sent events server that integrates with FMN
1d692f9
1d692f9
License:        GPLv2+
1d692f9
URL:            https://github.com/fedora-infra/%{srcname}
1d692f9
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
1d692f9
BuildArch:      noarch
1d692f9
1d692f9
%description
1d692f9
fmn is a family of systems to manage end-user notifications triggered by
1d692f9
fedmsg, the FEDerated MESsage bus. The FMN Server-Sent Events server allows
1d692f9
users to view their fedmsg feed in real-time using server-sent events. It relies
1d692f9
on a service to populate the RabbitMQ message queues for it. Typically, this is
1d692f9
done with the FMN core services.
1d692f9
1d692f9
1d692f9
%package common
1d692f9
Summary: %{summary}
1d692f9
1d692f9
%description common
1d692f9
Common files for the python-fmn-sse package.
1d692f9
1d692f9
1d692f9
%package -n python2-%{pkgname}
1d692f9
Summary: %{summary}
901420f
Requires:           python-fedmsg-core
901420f
Requires:           python-pika
901420f
Requires:           python-six
547fec7
Requires:           python-twisted-web
1d692f9
Requires:           %{name}-common = %{version}-%{release}
1d692f9
Requires(post):     systemd
1d692f9
Requires(preun):    systemd
1d692f9
Requires(postun):   systemd
901420f
BuildRequires:      python-fedmsg-core
901420f
BuildRequires:      python-devel
901420f
BuildRequires:      python-flake8
901420f
BuildRequires:      python-mock
901420f
BuildRequires:      python-pika
901420f
BuildRequires:      python-setuptools
901420f
BuildRequires:      python-six
547fec7
BuildRequires:      python-twisted-web
1d692f9
BuildRequires:      systemd
1d692f9
BuildRequires:      systemd-devel
1d692f9
%{?python_provide:%python_provide python2-%{pkgname}}
1d692f9
1d692f9
%description -n python2-%{pkgname}
1d692f9
fmn is a family of systems to manage end-user notifications triggered by
1d692f9
fedmsg, the FEDerated MESsage bus. The FMN Server-Sent Events server allows
1d692f9
users to view their fedmsg feed in real-time using server-sent events. It relies
1d692f9
on a service to populate the RabbitMQ message queues for it. Typically, this is
1d692f9
done with the FMN core services.
1d692f9
1d692f9
1d692f9
%prep
1d692f9
%autosetup -n %{srcname}-%{version}
1d692f9
1d692f9
1d692f9
%build
1d692f9
%py2_build
1d692f9
1d692f9
1d692f9
%install
1d692f9
%py2_install
1d692f9
1d692f9
1d692f9
install -d %{buildroot}%{_unitdir}
1d692f9
install -d %{buildroot}%{_datadir}/fmn_sse
1d692f9
install -pm644 usr/share/fmn_sse/sse_server.tac %{buildroot}/%{_datadir}/fmn_sse/sse_server.tac
1d692f9
install -pm644 systemd/fmn-sse-python2@.service %{buildroot}%{_unitdir}/
1d692f9
9183b8f
# https://github.com/fedora-infra/fmn.sse/issues/76
9183b8f
# %check
9183b8f
# PYTHONPATH=$(pwd) %{__python2} -m unittest discover
1d692f9
1d692f9
1d692f9
%files common
1d692f9
%license LICENSE
1d692f9
%doc README.md CHANGELOG.rst
1d692f9
%{_datadir}/fmn_sse
1d692f9
1d692f9
1d692f9
%files -n python2-%{pkgname}
1d692f9
%license LICENSE
1d692f9
%doc README.md CHANGELOG.rst
1d692f9
%{python2_sitelib}/*
1d692f9
%{_unitdir}/fmn-sse-python2@.service
1d692f9
1d692f9
1d692f9
%changelog
1d692f9
* Fri Jan 20 2017 Jeremy Cline <jeremy@jcline.org> - 0.2.1-2
1d692f9
- Fixes based on package review
1d692f9
1d692f9
* Mon Jan 09 2017 Jeremy Cline <jeremy@jcline.org> - 0.2.1-1
1d692f9
- Initial package.