[python-BeautifulSoup] Add provide for python-beautifulsoup

terjeros terjeros at fedoraproject.org
Wed Nov 27 18:30:49 UTC 2013


commit 6bae7fe4020615d6249b8da10a27c88dce1c809a
Author: Terje Røsten <terje.rosten at ntnu.no>
Date:   Wed Nov 27 19:30:35 2013 +0100

    Add provide for python-beautifulsoup

 python-BeautifulSoup.spec |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/python-BeautifulSoup.spec b/python-BeautifulSoup.spec
index 320b04c..8b77102 100644
--- a/python-BeautifulSoup.spec
+++ b/python-BeautifulSoup.spec
@@ -3,15 +3,16 @@
 Name:           python-BeautifulSoup
 Epoch:          1
 Version:        3.2.1
-Release:        6%{?dist}
+Release:        7%{?dist}
 Summary:        HTML/XML parser for quick-turnaround applications like screen-scraping
 Group:          Development/Languages
 License:        BSD
 URL:            http://www.crummy.com/software/BeautifulSoup/
 Source0:        http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch:      noarch
+Provides:       python-beautifulsoup = %{epoch}:%{version}-%{release}
 BuildRequires:  python-devel
+BuildArch:      noarch
+
 %description
 Beautiful Soup is a Python HTML/XML parser designed for quick
 turnaround projects like screen-scraping. Three features make it
@@ -35,24 +36,19 @@ minutes with Beautiful Soup.
 %setup -q -n %{oname}-%{version}
 
 %build
-%{__python} setup.py build
-%{__python} -c 'import %{oname} as bs; print bs.__doc__' > COPYING
+%{__python2} setup.py build
+%{__python2} -c 'import %{oname} as bs; print bs.__doc__' > COPYING
 touch -r %{oname}.py COPYING
 
 %install
-rm -rf %{buildroot}
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
 #Files installed by error
 rm -rf %{buildroot}%{_bindir}
 
-%clean
-rm -rf %{buildroot}
-
 %check
-%{__python} BeautifulSoupTests.py
+%{__python2} BeautifulSoupTests.py
 
 %files
-%defattr(-, root, root, -)
 %doc COPYING
 %{python_sitelib}/%{oname}.py*
 %exclude %{python_sitelib}/%{oname}Tests.py*
@@ -61,6 +57,9 @@ rm -rf %{buildroot}
 %endif
 
 %changelog
+* Wed Nov 27 2013 Terje Rosten <terje.rosten at ntnu.no> - 1:3.2.1-7
+- Add provide for python-beautifulsoup
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:3.2.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list