[python26-cheetah/el5] First python26 package rhbz#840050

stevetraylen stevetraylen at fedoraproject.org
Mon Jul 16 17:13:18 UTC 2012


commit b33b651024392a8df458db8132790ffc5f017ba5
Author: Steve Traylen <steve.traylen at cern.ch>
Date:   Mon Jul 16 20:25:43 2012 +0200

    First python26 package rhbz#840050

 .gitignore            |    1 +
 python26-cheetah.spec |  144 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 146 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..19279d4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Cheetah-2.4.4.tar.gz
diff --git a/python26-cheetah.spec b/python26-cheetah.spec
new file mode 100644
index 0000000..db5add2
--- /dev/null
+++ b/python26-cheetah.spec
@@ -0,0 +1,144 @@
+%global python_sitearch %{_libdir}/python2.6/site-packages
+%global __os_install_post %__multiple_python_os_install_post
+
+Name:           python26-cheetah
+Version:        2.4.4
+Release:        3%{?dist}
+Summary:        Template engine and code-generator
+
+Group:          Development/Libraries
+License:        MIT
+URL:            http://cheetahtemplate.org/
+Source:         http://pypi.python.org/packages/source/C/Cheetah/Cheetah-%{version}.tar.gz
+
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires:  python26-devel
+BuildRequires:  python26-distribute
+
+%description
+Cheetah is an open source template engine and code generation tool,
+written in Python. It can be used standalone or combined with other
+tools and frameworks. Web development is its principle use, but
+Cheetah is very flexible and is also being used to generate C++ game
+code, Java, sql, form emails and even Python code.
+
+%prep
+%setup -q -n Cheetah-%{version}
+# remove unnecessary shebang lines to silence rpmlint
+%{__sed} -i -e '/^#!/,1d' cheetah/Tests/* \
+         cheetah/DirectiveAnalyzer.py cheetah/Utils/Misc.py \
+         cheetah/ImportHooks.py cheetah/Servlet.py \
+         cheetah/NameMapper.py cheetah/Parser.py
+
+%build
+export CHEETAH_USE_SETUPTOOLS=1
+python26 setup.py build
+
+%install
+rm -rf %{buildroot}
+export CHEETAH_USE_SETUPTOOLS=1
+python26 setup.py install -O1 --skip-build --root %{buildroot}
+chmod 0755 %{buildroot}/%{python_sitearch}/Cheetah/_namemapper.so
+mv %{buildroot}%{_bindir}/cheetah %{buildroot}%{_bindir}/cheetah26
+mv %{buildroot}%{_bindir}/cheetah-analyze %{buildroot}%{_bindir}/cheetah26-analyze
+mv %{buildroot}%{_bindir}/cheetah-compile %{buildroot}%{_bindir}/cheetah26-compile
+
+%check
+export PATH="%{buildroot}/%{_bindir}:$PATH"
+export PYTHONPATH="%{buildroot}/%{python_sitearch}"
+python26 %{buildroot}/%{python_sitearch}/Cheetah/Tests/Test.py
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES LICENSE README.markdown TODO
+
+%{_bindir}/cheetah26
+%{_bindir}/cheetah26-analyze
+%{_bindir}/cheetah26-compile
+
+%dir %{python_sitearch}/Cheetah
+%{python_sitearch}/Cheetah/*.py
+%{python_sitearch}/Cheetah/*.pyc
+%{python_sitearch}/Cheetah/_namemapper.so
+%{python_sitearch}/Cheetah/*.pyo
+
+%dir %{python_sitearch}/Cheetah/Macros
+%{python_sitearch}/Cheetah/Macros/*.py
+%{python_sitearch}/Cheetah/Macros/*.pyc
+%{python_sitearch}/Cheetah/Macros/*.pyo
+
+%dir %{python_sitearch}/Cheetah/Templates
+%{python_sitearch}/Cheetah/Templates/*.py
+%{python_sitearch}/Cheetah/Templates/*.pyc
+%{python_sitearch}/Cheetah/Templates/*.tmpl
+%{python_sitearch}/Cheetah/Templates/*.pyo
+
+%dir %{python_sitearch}/Cheetah/Tests
+%{python_sitearch}/Cheetah/Tests/*.py
+%{python_sitearch}/Cheetah/Tests/*.pyc
+%{python_sitearch}/Cheetah/Tests/*.pyo
+
+%dir %{python_sitearch}/Cheetah/Tools
+%{python_sitearch}/Cheetah/Tools/*.py
+%{python_sitearch}/Cheetah/Tools/*.pyc
+%{python_sitearch}/Cheetah/Tools/*.txt
+%{python_sitearch}/Cheetah/Tools/*.pyo
+
+%dir %{python_sitearch}/Cheetah/Utils
+%{python_sitearch}/Cheetah/Utils/*.py
+%{python_sitearch}/Cheetah/Utils/*.pyc
+%{python_sitearch}/Cheetah/Utils/*.pyo
+
+%dir %{python_sitearch}/Cheetah-%{version}-*.egg-info
+%{python_sitearch}/Cheetah-%{version}-*.egg-info/PKG-INFO
+%{python_sitearch}/Cheetah-%{version}-*.egg-info/*.txt
+
+%changelog
+* Fri Jul 13 2012 Steve Traylen <steve.traylen at cern.ch> - 2.4.4-3
+- .spec file cleanups, rhbz#840050, change perms on .so file.
+
+* Fri Jul 13 2012 Steve Traylen <steve.traylen at cern.ch> - 2.4.4-2
+- Adapt for EPEL5 and python26.
+
+* Tue Jan 22 2008 Mike Bonnet <mikeb at redhat.com> - 2.0.1-1
+- update to the 2.0.1 release
+
+* Mon Oct 15 2007 Mike Bonnet <mikeb at redhat.com> - 2.0-1
+- update to the 2.0 release
+
+* Tue Aug 21 2007 Mike Bonnet <mikeb at redhat.com> - 2.0-0.7.rc8
+- rebuild for F8
+
+* Thu May  3 2007 Mike Bonnet <mikeb at redhat.com> - 2.0-0.6.rc8
+- bump release for rebuild
+
+* Mon Apr 23 2007 Mike Bonnet <mikeb at redhat.com> - 2.0-0.5.rc8
+- update to 2.0rc8
+
+* Mon Jan  8 2007 Mike Bonnet <mikeb at redhat.com> - 2.0-0.4.rc7
+- use setuptools and install setuptools metadata
+
+* Sun Dec 10 2006 Mike Bonnet <mikeb at redhat.com> - 2.0-0.3.rc7
+- rebuild against python 2.5
+- remove obsolete python-abi Requires:
+
+* Mon Sep 11 2006 Mike Bonnet <mikeb at redhat.com> - 2.0-0.2.rc7
+- un-%%ghost .pyo files
+
+* Thu Jul 13 2006 Mike Bonnet <mikeb at redhat.com> - 2.0-0.1.rc7
+- update to 2.0rc7
+- change %%release format to conform to Extras packaging guidelines
+
+* Sun May 21 2006 Mike Bonnet <mikeb at redhat.com> - 2.0-0.rc6.0
+- update to 2.0rc6
+- run the included test suite after install
+
+* Thu Feb 16 2006 Mike Bonnet <mikeb at redhat.com> - 1.0-2
+- Rebuild for Fedora Extras 5
+
+* Wed Dec  7 2005 Mike Bonnet <mikeb at redhat.com> - 1.0-1
+- Initial version
diff --git a/sources b/sources
index e69de29..b4bac93 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+853917116e731afbc8c8a43c37e6ddba  Cheetah-2.4.4.tar.gz


More information about the scm-commits mailing list