[python-fedbadges] Initial import (#972148)

Ralph Bean ralph at fedoraproject.org
Mon Jun 10 16:18:46 UTC 2013


commit 277ba55f12ef07257f7020302579390781c018f7
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Jun 10 12:18:31 2013 -0400

    Initial import (#972148)

 .gitignore            |    1 +
 python-fedbadges.spec |   68 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8b24df0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fedbadges-0.2.1.tar.gz
diff --git a/python-fedbadges.spec b/python-fedbadges.spec
new file mode 100644
index 0000000..66f6167
--- /dev/null
+++ b/python-fedbadges.spec
@@ -0,0 +1,68 @@
+%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
+
+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 <rbean at redhat.com> - 0.2.0-1
+- Initial packaging for Fedora.
diff --git a/sources b/sources
index e69de29..1b69e0c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+115c3002cb904aa356e8b371df41d942  fedbadges-0.2.1.tar.gz


More information about the scm-commits mailing list