%if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %global modname fedmsg_genacls Name: python-fedmsg-genacls Version: 0.1 Release: 1%{?dist} Summary: A fedmsg consumer that sets gitosis acls in response to pkgdb messages Group: Development/Libraries License: LGPLv2+ URL: http://pypi.python.org/pypi/fedmsg_genacls Source0: http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: fedmsg Requires: fedmsg %description An example of using fedmsg to monitor pkgdb for messages, but delaying action for a few seconds to accumulate messages and avoid pile-up. %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %build %{__python2} setup.py build %install %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} mkdir -p %{buildroot}%{_sysconfdir}/fedmsg.d/ cp fedmsg.d/genacls-example-config.py %{buildroot}%{_sysconfdir}/fedmsg.d/genacls.py %files %doc README.rst LICENSE %{python2_sitelib}/%{modname}.py* %{python2_sitelib}/%{modname}-%{version}* %config(noreplace) %{_sysconfdir}/fedmsg.d/genacls.py* %changelog * Mon Mar 24 2014 Ralph Bean - 0.1-1 - Initial packaging for Fedora