From bc6014e24b37f2b09eeed76c5470a23481f67040 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Sep 26 2012 12:00:40 +0000 Subject: Initial import (#853252) --- diff --git a/.gitignore b/.gitignore index e69de29..ee64fea 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/datanommer-0.1.5.tar.gz diff --git a/datanommer.spec b/datanommer.spec new file mode 100644 index 0000000..2b721c0 --- /dev/null +++ b/datanommer.spec @@ -0,0 +1,81 @@ +Name: datanommer +Version: 0.1.5 +Release: 1%{?dist} +Summary: A storage consumer for the Fedora Message Bus (fedmsg) + +Group: Development/Libraries +License: GPLv3+ +URL: http://pypi.python.org/pypi/datanommer +Source0: http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz +BuildArch: noarch + + +BuildRequires: python2-devel +BuildRequires: python-setuptools +BuildRequires: python-nose + +BuildRequires: fedmsg >= 0.5.0 +Requires: fedmsg-hub >= 0.5.0 + +%if %{?rhel}%{!?rhel:0} >= 6 +BuildRequires: python-sqlalchemy0.7 +Requires: python-sqlalchemy0.7 +%else +BuildRequires: python-sqlalchemy >= 0.7 +Requires: python-sqlalchemy >= 0.7 +%endif + +# This is required due to a bug in moksha's packaging +# That is fixed in moksha-0.8.8-4 +BuildRequires: python-bunch +Requires: python-bunch + + +%description +This is datanommer. It is comprised of only a `fedmsg +`_ consumer that stuffs every message +in a sqlalchemy database. + +There are also a handful of CLI tools to dump information from the +database. + +%prep +%setup -q -n %{name}-%{version} + +# Make sure that epel/rhel picks up the correct version of sqlalchemy +%{__awk} 'NR==1{print "import __main__; __main__.__requires__ = __requires__ = [\"sqlalchemy>=0.7\"]; import pkg_resources"}1' setup.py > setup.py.tmp +%{__mv} setup.py.tmp setup.py + + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install -O1 --skip-build --root=%{buildroot} +%{__mkdir_p} %{buildroot}/%{_sysconfdir}/fedmsg.d/ +%{__cp} example-config.py %{buildroot}/%{_sysconfdir}/fedmsg.d/datanommer.py + +%check +%{__python} setup.py test + +%files +%doc README.rst LICENSE +%{python_sitelib}/%{name} +%{python_sitelib}/%{name}-%{version}* + +%config(noreplace) %{_sysconfdir}/fedmsg.d/datanommer.py* + +%{_bindir}/datanommer-create-db +%{_bindir}/datanommer-stats +%{_bindir}/datanommer-dump + +%changelog +* Mon Sep 24 2012 Ralph Bean - 0.1.5-1 +- Upstream release removed the gpl->LICENSE symlink. More trouble than it was + worth. +* Wed Sep 19 2012 Ralph Bean - 0.1.4-1 +- Depend on the very latest fedmsg to dispel confusion. +* Thu Sep 06 2012 Ralph Bean - 0.1.3-2 +- Remove whitespace between config and noreplace. +* Thu Aug 30 2012 Ralph Bean - 0.1.3-1 +- Initial package for Fedora diff --git a/sources b/sources index e69de29..b4f5500 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f5c34ae9fbdff60e1ab0600f0e45f4b3 datanommer-0.1.5.tar.gz