SPECS: python-TurboGears.spec - change to new setuptools way

arekm arekm at pld-linux.org
Tue Dec 20 21:23:05 CET 2005


Author: arekm                        Date: Tue Dec 20 20:23:05 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- change to new setuptools way

---- Files affected:
SPECS:
   python-TurboGears.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/python-TurboGears.spec
diff -u SPECS/python-TurboGears.spec:1.2 SPECS/python-TurboGears.spec:1.3
--- SPECS/python-TurboGears.spec:1.2	Thu Dec 15 22:41:44 2005
+++ SPECS/python-TurboGears.spec	Tue Dec 20 21:23:00 2005
@@ -9,7 +9,7 @@
 Release:	1
 License:	GPL
 Group:		Development/Languages/Python
-Source0:	http://www.turbogears.org/download/eggs/TurboGears-0.8a5.tar.gz
+Source0:	http://www.turbogears.org/download/eggs/TurboGears-%{version}.tar.gz
 # Source0-md5:	ff1c1737fac46eb7ec931c05c461bc68
 URL:		http://www.turbogears.org/
 %pyrequires_eq	python
@@ -18,7 +18,12 @@
 BuildRequires:	unzip
 Requires:	python-FormEncode
 Requires:	python-TestGears
+Requires:	python-elementtree
 Requires:	python-cElementTree
+Requires:	python-kid
+Requires:	python-cherrypy
+Requires:	python-SQLObject
+Requires:	python-json-py
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -30,24 +35,24 @@
 TurboGears to wielkie środowisko do szybkiego tworzenia serwisów WWW.
 
 %prep
-%setup  -q -c
+%setup -q -n %{module}-%{version}
+
+%build
+python ./setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{_bindir}/easy_install \
-        --no-deps \
-        --script-dir="$RPM_BUILD_ROOT%{_bindir}" \
-        --install-dir="$RPM_BUILD_ROOT%{py_sitescriptdir}" \
-        --always-unzip \
-        %{SOURCE0}
+install -d build/scripts-%{py_ver}
+python ./setup.py install \
+        --single-version-externally-managed \
+        --optimize 2 \
+        --root=$RPM_BUILD_ROOT
 
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_postclean
 
-echo '%{module}-%{version}-py%{py_ver}.egg' > $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}.pth
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -55,6 +60,7 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
 %{py_sitescriptdir}/%{module}*
+%{py_sitescriptdir}/turbogears
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -62,6 +68,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/12/20 20:23:00  arekm
+- change to new setuptools way
+
 Revision 1.2  2005/12/15 21:41:44  qboosh
 - pl
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-TurboGears.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list