]> git.pld-linux.org Git - packages/python-mechanize.git/commitdiff
- BR setuptools, package egg info auto/th/python-mechanize-0_1_6-0_b_4
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 16 Oct 2008 21:53:46 +0000 (21:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-mechanize.spec -> 1.8

python-mechanize.spec

index 408987e58d7195fc65c5b5adf87d48f013bdcd43..fc2ec3fb41bd1ddfceb0a5cfc71696f50dd69b3a 100644 (file)
@@ -1,19 +1,20 @@
 %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)
 
@@ -24,12 +25,13 @@ Library for automating interaction with web pages.
 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
@@ -40,7 +42,10 @@ Biblioteka do automatycznej interakcji ze stronami WWW.
 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
This page took 0.038865 seconds and 4 git commands to generate.