[python-werkzeug/el6: 11/11] Make it able to be built for el6.

Ricky Elrod codeblock at fedoraproject.org
Fri Jul 13 21:03:00 UTC 2012


commit e7bd479a48f919350bfe23a44a5ac3525ce639cc
Author: Ricky Elrod <ricky at elrod.me>
Date:   Fri Jul 13 17:02:04 2012 -0400

    Make it able to be built for el6.

 python-werkzeug.spec |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/python-werkzeug.spec b/python-werkzeug.spec
index d46d557..59410ee 100644
--- a/python-werkzeug.spec
+++ b/python-werkzeug.spec
@@ -4,7 +4,7 @@
 
 Name:           python-werkzeug
 Version:        0.8.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        The Swiss Army knife of Python web development 
 
 Group:          Development/Libraries
@@ -17,6 +17,7 @@ BuildArch:      noarch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools-devel
 BuildRequires:  python-sphinx
+BuildRequires:  python-jinja2-26
 
 %description
 Werkzeug
@@ -49,20 +50,17 @@ Documentation and examples for %{name}.
 %setup -q -n %{srcname}-%{version}
 %{__sed} -i 's/\r//' LICENSE
 %{__sed} -i '1d' werkzeug/testsuite/multipart/collect.py
+%{__sed} -i "2i __requires__ = ['Jinja2>=2.4']" setup.py
 
 
 %build
-%{__python} setup.py build
+%{__python} setup.py build build_sphinx
 find examples/ -name '*.py' -executable | xargs chmod -x
 find examples/ -name '*.png' -executable | xargs chmod -x
-pushd docs
-make html
-popd
 
 %install
 %{__rm} -rf %{buildroot}
 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
-%{__rm} -rf docs/_build/html/.buildinfo
 %{__rm} -rf examples/cupoftee/db.pyc
 
 %clean
@@ -75,9 +73,12 @@ popd
 
 %files doc
 %defattr(-,root,root,-)
-%doc docs/_build/html examples
+%doc build/sphinx/html examples
 
 %changelog
+* Fri Jul 13 2012 Ricky Elrod <codeblock at fedoraproject.org> - 0.8.3-2
+- Start the process of getting Werkzeug in EPEL 6.
+
 * Sun Feb  5 2012 Haïkel Guémar <hguemar at fedoraproject.org> - 0.8.3-1
 - upstream 0.8.3 (fixes XSS security issues)
 
@@ -95,7 +96,9 @@ popd
 
 * Sun May 23 2010 Peter Halliday <phalliday at excelsiorsystems.net> - 0.6.2-1
 - Updating because upstream release of Werkzeug 0.6.2
+
 * Sat Mar 05 2010 Peter Halliday <phalliday at excelsiorsystems.net> - 0.6-1
 - Updating because upstream release of Werkzeug 0.6
+
 * Tue Aug 25 2009 Peter Halliday <phalliday at excelsiorsystems.net> - 0.5.1-1
 - Initial package


More information about the scm-commits mailing list