[python-pyramid] Initial import of python-pyramid into Fedora (#674692)
Luke Macken
lmacken at fedoraproject.org
Thu Feb 24 18:36:07 UTC 2011
commit 2b19a5d35a1a01bfb746e904aead095dfb56b276
Author: Luke Macken <lmacken at redhat.com>
Date: Thu Feb 24 13:35:56 2011 -0500
Initial import of python-pyramid into Fedora (#674692)
.gitignore | 1 +
python-pyramid-testreqs.patch | 12 ++++++
python-pyramid.spec | 85 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..96cd96b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+pyramid-1.0.tar.gz
diff --git a/python-pyramid-testreqs.patch b/python-pyramid-testreqs.patch
new file mode 100644
index 0000000..827c76f
--- /dev/null
+++ b/python-pyramid-testreqs.patch
@@ -0,0 +1,12 @@
+diff -up ./setup.py.orig ./setup.py
+--- ./setup.py.orig 2011-02-02 17:34:56.025425905 -0500
++++ ./setup.py 2011-02-02 17:35:07.142388137 -0500
+@@ -46,7 +46,7 @@ if platform.system() == 'Java':
+ tests_require = install_requires + ['WebTest', 'virtualenv']
+ else:
+ tests_require= install_requires + ['Sphinx', 'docutils',
+- 'WebTest', 'repoze.sphinx.autointerface',
++ 'WebTest',
+ 'virtualenv']
+
+ if sys.version_info[:2] < (2, 6):
diff --git a/python-pyramid.spec b/python-pyramid.spec
new file mode 100644
index 0000000..78370ba
--- /dev/null
+++ b/python-pyramid.spec
@@ -0,0 +1,85 @@
+%global modname pyramid
+
+Name: python-%{modname}
+Version: 1.0
+Release: 1%{?dist}
+Summary: The Pyramid web application framework, a Pylons project
+
+Group: Development/Libraries
+License: BSD
+URL: http://pylonsproject.com
+Source0: http://pypi.python.org/packages/source/p/pyramid/%{modname}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+# Remove testing requirement repoze.sphinx.autointerface until it is packaged.
+# It's not necessary for the test suite to run properly.
+Patch0: %{name}-testreqs.patch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools-devel
+BuildRequires: python-webtest
+BuildRequires: python-virtualenv
+
+BuildRequires: python-chameleon >= 1.2.3
+BuildRequires: python-mako >= 0.3.6
+BuildRequires: python-paste > 1.7
+BuildRequires: python-paste-deploy
+BuildRequires: python-paste-script
+BuildRequires: python-webob >= 1.0
+BuildRequires: python-setuptools
+BuildRequires: python-zope-component
+BuildRequires: python-zope-interface >= 3.5.1
+BuildRequires: python-translationstring
+BuildRequires: python-venusian
+BuildRequires: python-repoze-lru
+BuildRequires: python-zope-configuration
+BuildRequires: python-zope-deprecation
+
+Requires: python-chameleon >= 1.2.3
+Requires: python-mako >= 0.3.6
+Requires: python-paste > 1.7
+Requires: python-paste-deploy
+Requires: python-paste-script
+Requires: python-webob >= 1.0
+Requires: python-setuptools
+Requires: python-zope-component
+Requires: python-zope-interface >= 3.5.1
+Requires: python-translationstring
+Requires: python-venusian
+Requires: python-repoze-lru
+Requires: python-zope-configuration
+Requires: python-zope-deprecation
+
+%description
+Pyramid is a small, fast, down-to-earth, open source Python web development
+framework. It makes real-world web application development and deployment more
+fun, more predictable, and more productive.
+
+%prep
+%setup -q -n pyramid-%{version}
+%patch0 -b .testreqs
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%check
+%{__python} setup.py test
+%{__rm} -r %{buildroot}%{python_sitelib}/pyramid/tests
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README.rst LICENSE.txt
+%{python_sitelib}/*
+%{_bindir}/bfg2pyramid
+
+%changelog
+* Wed Jan 2 2010 Luke Macken <lmacken at redhat.com> - 1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..fb94348 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+811ac86625e39083f24f2b6d400a5d39 pyramid-1.0.tar.gz
More information about the scm-commits
mailing list