From c32fd2de5f7ae01eeb0b1762efbac787677fa2b6 Mon Sep 17 00:00:00 2001 From: Mike Bonnet Date: Jan 08 2007 19:39:43 +0000 Subject: use setuptools and install setuptools metadata --- diff --git a/python-cheetah.spec b/python-cheetah.spec index 8464a09..531b2c1 100644 --- a/python-cheetah.spec +++ b/python-cheetah.spec @@ -2,7 +2,7 @@ Name: python-cheetah Version: 2.0 -Release: 0.3.rc7%{?dist} +Release: 0.4.rc7%{?dist} Summary: Template engine and code-generator Group: Development/Libraries @@ -13,6 +13,7 @@ Source: http://download.sourceforge.net/cheetahtemplate/Cheetah-%{versio BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel +BuildRequires: python-setuptools %description Cheetah is an open source template engine and code generation tool, @@ -26,11 +27,13 @@ code, Java, sql, form emails and even Python code. %build export CFLAGS="$RPM_OPT_FLAGS" +export CHEETAH_USE_SETUPTOOLS=1 %{__python} setup.py build %install rm -rf %{buildroot} -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +export CHEETAH_USE_SETUPTOOLS=1 +%{__python} setup.py install --single-version-externally-managed -O1 --skip-build --root %{buildroot} %check export PATH="%{buildroot}/%{_bindir}:$PATH" @@ -85,7 +88,14 @@ rm -rf %{buildroot} %{python_sitelib}/Cheetah/Utils/optik/*.pyc %{python_sitelib}/Cheetah/Utils/optik/*.pyo +%dir %{python_sitelib}/Cheetah-%{version}rc7-*.egg-info +%{python_sitelib}/Cheetah-%{version}rc7-*.egg-info/PKG-INFO +%{python_sitelib}/Cheetah-%{version}rc7-*.egg-info/*.txt + %changelog +* Mon Jan 8 2007 Mike Bonnet - 2.0-0.4.rc7 +- use setuptools and install setuptools metadata + * Sun Dec 10 2006 Mike Bonnet - 2.0-0.3.rc7 - rebuild against python 2.5 - remove obsolete python-abi Requires: