%global modname fedbadges Name: python-fedbadges Version: 0.2.1 Release: 1%{?dist} Summary: fedmsg consumer for awarding open badges Group: Development/Libraries License: GPLv2+ URL: http://pypi.python.org/pypi/fedbadges Source0: http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: fedmsg BuildRequires: PyYAML BuildRequires: python-fedmsg-meta-fedora-infrastructure BuildRequires: python-tahrir-api BuildRequires: python-datanommer-models BuildRequires: python-nose BuildRequires: python-mock Requires: fedmsg Requires: PyYAML Requires: python-fedmsg-meta-fedora-infrastructure Requires: python-tahrir-api Requires: python-datanommer-models %description fedbadges is the python module necessary to award Open Badges from fedmsg bus activity. It installs a 'consumer' for the fedmsg-hub. Each message it receives is compared against any number of rules defined in config files on disk. If any match, badges are awarded to the appropriate users. %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info # This is only temporary until upstream ships a requirements.txt file sed -i 's/install_requires/#install_requires/' setup.py %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root=%{buildroot} # This executable just doesn't work. So remove it. Our code # can still be used via the fedmsg-hub daemon. rm %{buildroot}/%{_bindir}/fedmsg-badges %check %{__python} setup.py test %files %doc README.rst LICENSE %{python_sitelib}/%{modname}/ %{python_sitelib}/%{modname}-%{version}* %changelog * Fri Jun 07 2013 Ralph Bean - 0.2.0-1 - Initial packaging for Fedora.