SPECS: python-FormEncode.spec - nicer, new setuptools way

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


Author: arekm                        Date: Mon Dec 19 23:17:09 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- nicer, new setuptools way

---- Files affected:
SPECS:
   python-FormEncode.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/python-FormEncode.spec
diff -u SPECS/python-FormEncode.spec:1.4 SPECS/python-FormEncode.spec:1.5
--- SPECS/python-FormEncode.spec:1.4	Fri Dec  9 22:30:54 2005
+++ SPECS/python-FormEncode.spec	Tue Dec 20 00:17:02 2005
@@ -29,34 +29,32 @@
 i niezależne od nich wypełnianie i generowanie formularzy.
 
 %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 \
-	--ignore-conflicts-at-my-risk \
-        %{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}*
-%doc %{module}*/docs/*.txt
+%{py_sitescriptdir}/*formencode*
+%doc docs/*.txt
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -64,6 +62,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/12/19 23:17:02  arekm
+- nicer, new setuptools way
+
 Revision 1.4  2005/12/09 21:30:54  arekm
 - rel 2; package egg version
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-FormEncode.spec?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list