[python-fmn-lib] Initial import (#1037897)

Ralph Bean ralph at fedoraproject.org
Thu Dec 5 18:38:06 UTC 2013


commit b93438e1ef96a2cb064ba96c0b2aa5aff1ab03a4
Author: Ralph Bean <rbean at redhat.com>
Date:   Thu Dec 5 13:37:57 2013 -0500

    Initial import (#1037897)

 .gitignore          |    1 +
 python-fmn-lib.spec |   84 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..35a6afb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fmn.lib-0.1.1.tar.gz
diff --git a/python-fmn-lib.spec b/python-fmn-lib.spec
new file mode 100644
index 0000000..c5bea61
--- /dev/null
+++ b/python-fmn-lib.spec
@@ -0,0 +1,84 @@
+%global modname fmn.lib
+
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2:        %global __python2 %{__python}}
+%{!?python2_sitelib:  %global python2_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name:               python-fmn-lib
+Version:            0.1.1
+Release:            1%{?dist}
+Summary:            Internal API components and model for Fedora Notifications
+
+Group:              Development/Libraries
+License:            LGPLv2+
+URL:                http://pypi.python.org/pypi/fmn.lib
+Source0:            http://pypi.python.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz
+
+BuildArch:          noarch
+
+BuildRequires:      python2-devel
+BuildRequires:      python-setuptools
+BuildRequires:      python-nose
+
+
+BuildRequires:      python-beautifulsoup4
+BuildRequires:      python-fmn-rules
+BuildRequires:      python-docutils
+BuildRequires:      python-markupsafe
+
+%if 0%{?rhel} && 0%{?rhel} <= 6
+BuildRequires:      python-ordereddict
+BuildRequires:      python-sqlalchemy0.8
+%else
+BuildRequires:      python-sqlalchemy
+%endif
+
+
+Requires:           python-beautifulsoup4
+Requires:           python-fmn-rules
+Requires:           python-docutils
+Requires:           python-markupsafe
+
+%if 0%{?rhel} && 0%{?rhel} <= 6
+Requires:           python-ordereddict
+Requires:           python-sqlalchemy0.8
+%else
+Requires:           python-sqlalchemy
+%endif
+
+
+%description
+fmn is a family of systems to manage end-user notifications triggered by
+fedmsg, the Fedora FEDerated MESsage bus.
+
+This modules contains the internal API for components and data model for Fedora
+Notifications
+
+%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}%{_bindir}
+install createdb.py %{buildroot}%{_bindir}/fmn-createdb
+
+%check
+%{__python2} setup.py test
+
+%files
+%doc README.rst COPYING COPYING.LESSER CHANGELOG.rst
+%{python2_sitelib}/fmn/lib/
+%{python2_sitelib}/%{modname}-%{version}*
+%{_bindir}/fmn-createdb
+
+%changelog
+* Tue Dec 03 2013 Ralph Bean <rbean at redhat.com> - 0.1.1-1
+- initial package for Fedora
diff --git a/sources b/sources
index e69de29..0c50df8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f608f9b1096469756ae94c7c9b4d6dfb  fmn.lib-0.1.1.tar.gz


More information about the scm-commits mailing list