SPECS: python-mechanize.spec - BR setuptools, package egg info

glen glen at pld-linux.org
Thu Oct 16 23:53:51 CEST 2008


Author: glen                         Date: Thu Oct 16 21:53:51 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- BR setuptools, package egg info

---- Files affected:
SPECS:
   python-mechanize.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/python-mechanize.spec
diff -u SPECS/python-mechanize.spec:1.7 SPECS/python-mechanize.spec:1.8
--- SPECS/python-mechanize.spec:1.7	Thu Oct 16 23:42:35 2008
+++ SPECS/python-mechanize.spec	Thu Oct 16 23:53:46 2008
@@ -1,20 +1,21 @@
 # $Revision$, $Date$
 %define		module	mechanize
-%define		subver	b
+%define		extraver b
 %define		rel		4
 Summary:	Library for automating interaction with web pages
 Summary(pl.UTF-8):	Biblioteka do automatycznej interakcji ze stronami WWW
 Name:		python-%{module}
 Version:	0.1.6
-Release:	0.%{subver}.%{rel}
+Release:	0.%{extraver}.%{rel}
 License:	BSD
 Group:		Development/Languages/Python
-Source0:	http://wwwsearch.sourceforge.net/mechanize/src/%{module}-%{version}%{subver}.tar.gz
+Source0:	http://wwwsearch.sourceforge.net/mechanize/src/%{module}-%{version}%{extraver}.tar.gz
 # Source0-md5:	98c27be9464f1342ede05784999d2757
 URL:		http://wwwsearch.sourceforge.net/
 %pyrequires_eq  python-modules
-BuildRequires:  python >= 1:2.3
-BuildRequires:  python-devel >= 1:2.3
+BuildRequires:	python >= 1:2.3
+BuildRequires:	python-devel >= 1:2.3
+BuildRequires:	python-setuptools
 Requires:	python-ClientForm >= 0.2.6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -25,12 +26,13 @@
 Biblioteka do automatycznej interakcji ze stronami WWW.
 
 %prep
-%setup -q -n %{module}-%{version}%{subver}
+%setup -q -n %{module}-%{version}%{extraver}
 
 %build
-%{__python} setup.py build 
+%{__python} setup.py build
 
 %install
+rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install \
     --root=$RPM_BUILD_ROOT \
     --optimize=2
@@ -41,10 +43,13 @@
 rm -rf $RPM_BUILD_ROOT
 
 %files
-%doc COPYING.txt README.html ChangeLog.txt
 %defattr(644,root,root,755)
+%doc COPYING.txt README.html ChangeLog.txt
 %dir %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}/*.py[oc]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/mechanize-*.egg-info
+%endif
 
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -52,6 +57,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2008/10/16 21:53:46  glen
+- BR setuptools, package egg info
+
 Revision 1.7  2008/10/16 21:42:35  glen
 - release 4 (python 2.6)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/python-mechanize.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list