r40918 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40917‎ | r40918 | r40919 >
Date:16:48, 16 September 2008
Author:river
Status:old
Tags:
Comment:
TSpython-cheetah.spec, TSpython-sqlalchemy.spec, TSpython-beaker.spec: new specs; Python modules for report tool
TSpython-flup.spec: use the flat style of installation layout so the packages are picked up automatically
Modified paths:
  • /trunk/tools/ts-specs/TSpython-beaker.spec (added) (history)
  • /trunk/tools/ts-specs/TSpython-cheetah.spec (added) (history)
  • /trunk/tools/ts-specs/TSpython-flup.spec (modified) (history)
  • /trunk/tools/ts-specs/TSpython-sqlalchemy.spec (added) (history)

Diff [purge]

Index: trunk/tools/ts-specs/TSpython-flup.spec
@@ -21,7 +21,8 @@
2222 rm -rf $RPM_BUILD_ROOT
2323 mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
2424 export PYTHONPATH=$PYTHONPATH:$RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
25 -/usr/bin/python%{python_version} ./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
 25+#/usr/bin/python%{python_version} ./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
 26+/usr/bin/python%{python_version} ./setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --single-version-externally-managed --record=$RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/pathlist.flup
2627 rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.py
2728 rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.pyc
2829
Index: trunk/tools/ts-specs/TSpython-cheetah.spec
@@ -0,0 +1,40 @@
 2+%include Solaris.inc
 3+
 4+%define python_version 2.4
 5+
 6+Name: TSpython-cheetah
 7+URL: http://www.cheetahtemplate.org/
 8+Summary: Cheetah template engine
 9+Version: 2.0.1
 10+Source: http://mesh.dl.sourceforge.net/sourceforge/cheetahtemplate/Cheetah-%{version}.tar.gz
 11+SUNW_BaseDir: /opt/ts
 12+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 13+%include default-depend.inc
 14+
 15+BuildRequires: SUNWPython-devel
 16+Requires: SUNWPython
 17+
 18+%prep
 19+%setup -q -n Cheetah-%version
 20+
 21+%build
 22+rm -rf $RPM_BUILD_ROOT
 23+mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
 24+export PYTHONPATH=$PYTHONPATH:$RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
 25+/usr/bin/python%{python_version} ./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix}
 26+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.py
 27+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.pyc
 28+
 29+%clean
 30+rm -rf $RPM_BUILD_ROOT
 31+
 32+%files
 33+%defattr (-, root, bin)
 34+%dir %attr (0755, root, bin) %{_libdir}
 35+%{_libdir}/*
 36+%dir %attr (0755, root, bin) %{_bindir}
 37+%{_bindir}/*
 38+
 39+%changelog
 40+* Tue 16 Sep 2008 - river@wikimedia.org
 41+- initial spec
Index: trunk/tools/ts-specs/TSpython-sqlalchemy.spec
@@ -0,0 +1,39 @@
 2+%include Solaris.inc
 3+
 4+%define python_version 2.4
 5+
 6+Name: TSpython-sqlalchemy
 7+URL: http://pypi.python.org/pypi/Beaker
 8+Summary: SQL Alchemy
 9+Version: 0.4.7p1
 10+Source: http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-0.4.7p1.tar.gz
 11+SUNW_BaseDir: /opt/ts
 12+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 13+%include default-depend.inc
 14+
 15+BuildRequires: SUNWPython-devel
 16+Requires: SUNWPython
 17+
 18+%prep
 19+%setup -q -n SQLAlchemy-%version
 20+
 21+%build
 22+rm -rf $RPM_BUILD_ROOT
 23+mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
 24+export PYTHONPATH=$PYTHONPATH:$RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
 25+/usr/bin/python%{python_version} ./setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --single-version-externally-managed --record=$RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/pathlist.sqlalchemy
 26+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.py
 27+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.pyc
 28+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/easy-install.pth
 29+
 30+%clean
 31+rm -rf $RPM_BUILD_ROOT
 32+
 33+%files
 34+%defattr (-, root, bin)
 35+%dir %attr (0755, root, bin) %{_libdir}
 36+%{_libdir}/*
 37+
 38+%changelog
 39+* Tue 16 Sep 2008 - river@wikimedia.org
 40+- initial spec
Index: trunk/tools/ts-specs/TSpython-beaker.spec
@@ -0,0 +1,40 @@
 2+%include Solaris.inc
 3+
 4+%define python_version 2.4
 5+
 6+Name: TSpython-beaker
 7+URL: http://pypi.python.org/pypi/Beaker
 8+Summary: Beaker middleware
 9+Version: 1.0.1
 10+Source: http://pypi.python.org/packages/source/B/Beaker/Beaker-1.0.1.tar.gz
 11+SUNW_BaseDir: /opt/ts
 12+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 13+%include default-depend.inc
 14+
 15+BuildRequires: SUNWPython-devel
 16+Requires: SUNWPython
 17+
 18+%prep
 19+%setup -q -n Beaker-%version
 20+
 21+%build
 22+rm -rf $RPM_BUILD_ROOT
 23+mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
 24+export PYTHONPATH=$PYTHONPATH:$RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages
 25+#/usr/bin/python%{python_version} ./setup.py install --prefix=$RPM_BUILD_ROOT%{_prefix} --single-version-externally-managed --record=$RPM_BUILD_ROOT%{_libdir}/python%python_version}/site-packages/pathlist
 26+/usr/bin/python%{python_version} ./setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --single-version-externally-managed --record=$RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/pathlist.beaker
 27+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.py
 28+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/site.pyc
 29+rm -f $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages/easy-install.pth
 30+
 31+%clean
 32+rm -rf $RPM_BUILD_ROOT
 33+
 34+%files
 35+%defattr (-, root, bin)
 36+%dir %attr (0755, root, bin) %{_libdir}
 37+%{_libdir}/*
 38+
 39+%changelog
 40+* Tue 16 Sep 2008 - river@wikimedia.org
 41+- initial spec