[python-pyramid-chameleon] Initial package for Fedora
Mathieu Bridon
bochecha at fedoraproject.org
Mon Jun 2 14:58:15 UTC 2014
commit 30ea82dc68d56a69425b0520629ce5634a46d16b
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Sun Jun 1 16:50:31 2014 -0600
Initial package for Fedora
Submitted on Sun Jun 01 2014:
https://bugzilla.redhat.com/show_bug.cgi?id=1103543
.gitignore | 1 +
python-pyramid-chameleon.spec | 110 +++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2b2b9c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyramid_chameleon-0.1.tar.gz
diff --git a/python-pyramid-chameleon.spec b/python-pyramid-chameleon.spec
new file mode 100644
index 0000000..c8a02e8
--- /dev/null
+++ b/python-pyramid-chameleon.spec
@@ -0,0 +1,110 @@
+%global module pyramid_chameleon
+
+%if 0%{?fedora}
+%global with_python3 1
+%else
+# EL doesn't have Python 3
+%global with_python3 0
+%endif
+
+%if 0%{?rhel} || 0%{?rhel} < 7
+# EL 6 doesn't have this macro
+%global __python2 %{__python}
+%global python2_sitelib %{python_sitelib}
+%endif
+
+Name: python-pyramid-chameleon
+Summary: Bindings for the Chameleon templating system in the Pyramid web framework
+Version: 0.1
+Release: 1%{?dist}
+
+# https://fedoraproject.org/wiki/Licensing:BSD?rd=Licensing/BSD#Modification_Variant
+License: BSD
+URL: https://pypi.python.org/pypi/%{module}
+Source0: https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+Requires: python-chameleon
+Requires: python-pyramid
+Requires: python-setuptools
+Requires: python-translationstring
+Requires: python-venusian
+
+%if 0%{?fedora} || 0%{?rhel} >= 7
+Requires: python-zope-interface
+%else
+# RHEL 6 had an older version
+Requires: python-zope-interface4
+%endif
+
+%description
+Bindings for the Chameleon templating system for the Pyramid web framework.
+
+
+%if %{with_python3}
+%package -n python3-pyramid-chameleon
+Summary: Bindings for the Chameleon templating system in the Pyramid web framework
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+
+Requires: python3-chameleon
+Requires: python3-pyramid
+Requires: python3-setuptools
+Requires: python3-translationstring
+Requires: python3-venusian
+Requires: python3-zope-interface
+
+%description -n python3-pyramid-chameleon
+Bindings for the Chameleon templating system for the Pyramid web framework.
+%endif
+
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%if %{with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
+%endif
+
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
+
+%if %{with_python3}
+pushd %{py3dir}
+CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+popd
+%endif
+
+
+%install
+%if %{with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif
+
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc CONTRIBUTORS.txt COPYRIGHT.txt README.rst
+%{python2_sitelib}/%{module}*
+
+%if %{with_python3}
+%files -n python3-pyramid-chameleon
+%doc CONTRIBUTORS.txt COPYRIGHT.txt README.rst
+%{python3_sitelib}/%{module}*
+%endif
+
+
+%changelog
+* Sun Jun 01 2014 Mathieu Bridon <bochecha at fedoraproject.org> - 0.1-1
+- Initial package for Fedora.
diff --git a/sources b/sources
index e69de29..18d46cc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+39b1327a9890f382200bbfde943833d7 pyramid_chameleon-0.1.tar.gz
More information about the scm-commits
mailing list