[python-flask-mongoengine] Initial import (#947799)

Matej Stuchlik mstuchli at fedoraproject.org
Mon Apr 8 08:06:48 UTC 2013


commit 8f589b6e541b10c206e7d6d8d1334f69e0587532
Author: Matej Stuchlik <mstuchli at redhat.com>
Date:   Mon Apr 8 10:06:09 2013 +0200

    Initial import (#947799)

 .gitignore                                       |    1 +
 python-flask-mongoengine-0.6-tests-removal.patch |   10 ++++
 python-flask-mongoengine.spec                    |   52 ++++++++++++++++++++++
 sources                                          |    1 +
 4 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9ff6369 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/flask-mongoengine-0.6.tar.gz
diff --git a/python-flask-mongoengine-0.6-tests-removal.patch b/python-flask-mongoengine-0.6-tests-removal.patch
new file mode 100644
index 0000000..0fefabb
--- /dev/null
+++ b/python-flask-mongoengine-0.6-tests-removal.patch
@@ -0,0 +1,10 @@
+--- setup.py.orig	2013-04-04 07:57:10.751973642 +0200
++++ setup.py	2013-04-04 07:57:23.971010737 +0200
+@@ -40,7 +40,6 @@
+     packages=['flask_mongoengine',
+               'flask_mongoengine.wtf'],
+     include_package_data=True,
+-    setup_requires=['nose', 'coverage'],
+     classifiers=[
+         'Development Status :: 4 - Beta',
+         'Environment :: Web Environment',
diff --git a/python-flask-mongoengine.spec b/python-flask-mongoengine.spec
new file mode 100644
index 0000000..b0075ed
--- /dev/null
+++ b/python-flask-mongoengine.spec
@@ -0,0 +1,52 @@
+%global srcname flask-mongoengine
+
+Name:		python-flask-mongoengine
+Version:	0.6
+Release:	2%{?dist}
+Summary:	Flask extension that provides integration with MongoEngine
+
+License:	BSD
+URL:		https://flask-mongoengine.readthedocs.org/
+Source0:	https://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
+#Removes nose and coverage dependencies from setup.py
+Patch0:		python-flask-mongoengine-0.6-tests-removal.patch
+
+BuildArch:	noarch
+Buildrequires:	python2-devel python-setuptools python-sphinx
+Requires:	python-mongoengine python-flask python-flask-wtf python-six
+
+%description
+A Flask extension that provides integration with MongoEngine. It handles
+connection management for your app. You can also use WTForms as model forms
+for your models.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+%patch0
+
+%build
+%{__python} setup.py build
+cd %{_builddir}/%{srcname}-%{version}/docs/
+make man
+
+#Tests passed on my machine, but I did not include them because they
+#require mongod running
+
+%install
+%{__python} setup.py install --skip-build -O1 --root %{buildroot}
+mkdir -p %{buildroot}%{_mandir}/man1/
+cp %{_builddir}/%{srcname}-%{version}/docs/_build/man/%{srcname}.1 %{buildroot}%{_mandir}/man1/
+
+%files
+%doc LICENSE README.rst
+%{python_sitelib}/flask_mongoengine
+%{python_sitelib}/*.egg-info
+%{_mandir}/man1/%{srcname}.1.gz
+
+
+%changelog
+* Thu Apr 04 2013 Matej Stuchlik <mstuchli at redhat.com> - 0.6-2
+- Added patch that removes unused dependencies and changed the URL field
+
+* Wed Apr 3 2013 mstuchli <mstuchli at redhat.com> - 0.6-1
+- Initial spec
diff --git a/sources b/sources
index e69de29..345ebf5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+67f7d3e7032fb5c681fda894e018dabd  flask-mongoengine-0.6.tar.gz


More information about the scm-commits mailing list