SPECS: python-TestGears.spec - package from standard tarball

arekm arekm at pld-linux.org
Tue Dec 20 20:20:00 CET 2005


Author: arekm                        Date: Tue Dec 20 19:20:00 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- package from standard tarball

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

---- Diffs:

================================================================
Index: SPECS/python-TestGears.spec
diff -u SPECS/python-TestGears.spec:1.2 SPECS/python-TestGears.spec:1.3
--- SPECS/python-TestGears.spec:1.2	Thu Dec 15 22:39:58 2005
+++ SPECS/python-TestGears.spec	Tue Dec 20 20:19:54 2005
@@ -9,8 +9,8 @@
 Release:	1
 License:	GPL
 Group:		Development/Languages/Python
-Source0:	http://www.turbogears.org/download/eggs/TestGears-%{version}-py2.4.egg
-# Source0-md5:	2c9393c63bafa0c69d781eb9458febe5
+Source0:	http://www.turbogears.org/download/eggs/%{module}-%{version}.tar.gz
+# Source0-md5:	1911b1555cf8869e14d1f71da590bc0e
 URL:		http://www.turbogears.org/testgears/
 %pyrequires_eq	python
 BuildRequires:	python-devel
@@ -34,28 +34,31 @@
 żadnej konfiguracji.
 
 %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
 
 %files
 %defattr(644,root,root,755)
 %{py_sitescriptdir}/%{module}*
+%{py_sitescriptdir}/test*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -63,6 +66,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/12/20 19:19:54  arekm
+- package from standard tarball
+
 Revision 1.2  2005/12/15 21:39:58  qboosh
 - pl
 
================================================================

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



More information about the pld-cvs-commit mailing list