184ee60
%if 0%{?rhel} && 0%{?rhel} <= 6
184ee60
%{!?__python2:        %global __python2 /usr/bin/python2}
184ee60
%{!?python2_sitelib:  %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
184ee60
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
184ee60
%endif
184ee60
184ee60
%global modname robosignatory
184ee60
184ee60
Name:               python-robosignatory
55e0f7b
Version:            0.0.5
e79d68a
Release:            1%{?dist}
184ee60
Summary:            A fedmsg consumer that automatically signs artifacts
184ee60
184ee60
License:            GPLv2+
184ee60
URL:                https://pagure.io/robosignatory/
184ee60
Source0:            https://pagure.io/releases/robosignatory/robosignatory-%{version}.tar.gz
184ee60
184ee60
BuildArch:          noarch
184ee60
184ee60
184ee60
BuildRequires:      python2-devel
184ee60
BuildRequires:      python-setuptools
184ee60
184ee60
BuildRequires:      fedmsg
184ee60
Requires:           fedmsg
184ee60
184ee60
BuildRequires:      koji
184ee60
Requires:           koji
184ee60
Requires:           sigul
184ee60
184ee60
Requires:           rpmdevtools
184ee60
184ee60
184ee60
%description
184ee60
A fedmsg consumer that automatically signs artifacts.
184ee60
184ee60
RoboSignatory is composed of multiple consumers:
184ee60
- TagConsumer is a consumer that listens for tags into a specific koji tag,
184ee60
  then signs the build and moves it to a different koji tag.
184ee60
184ee60
184ee60
%prep
184ee60
%setup -q -n %{modname}-%{version}
184ee60
184ee60
# Remove bundled egg-info in case it exists
184ee60
rm -rf %{modname}.egg-info
184ee60
184ee60
%build
184ee60
%{__python2} setup.py build
184ee60
184ee60
%install
184ee60
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
184ee60
184ee60
%files
184ee60
%doc README.rst LICENSE
184ee60
%{python2_sitelib}/%{modname}/
184ee60
%{python2_sitelib}/%{modname}-%{version}*
184ee60
%{_bindir}/robosignatory-signbuild
8c9e5ee
%{_bindir}/robosignatory-signatomic
184ee60
184ee60
%changelog
55e0f7b
* Mon Oct 17 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.0.5-1
55e0f7b
- New upstream release
55e0f7b
e79d68a
* Mon Oct 17 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.0.4-1
e79d68a
- New upstream release
e79d68a
0bea3c6
* Mon Oct 17 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.0.3-2
0bea3c6
- New 0.0.3 sources
0bea3c6
756de95
* Mon Oct 17 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.0.3-1
756de95
- New upstream release
756de95
184ee60
* Sun Sep 11 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.0.2-1
184ee60
- New upstream release
184ee60
184ee60
* Sat Sep 10 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.0.1-1
184ee60
- Initial packaging
184ee60