1
0
Todd R 2013-01-12 14:09:48 +00:00 committed by Git OBS Bridge
parent 1bfe5d9e75
commit 86122e6a97

View File

@ -1,7 +1,7 @@
#
# spec file for package python3-beautifulsoup4
# spec file for package python-beautifulsoup4
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,10 +15,10 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _name beautifulsoup4
%define _major 4.x
Name: python3-%{_name}
Version: 4.1.3
Release: 0
@ -28,14 +28,12 @@ Group: Development/Libraries/Python
Url: http://www.crummy.com/software/BeautifulSoup/
Source: http://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-2to3
BuildRequires: python3-nose
Requires: python3 >= %{py3_ver}
# build fails for SLE11 64bit due to 'noarch'
%if 0%{?suse_version} >= 1140
BuildRequires: python3-lxml
Requires: python3-lxml
BuildArch: noarch
%endif
%description
Beautiful Soup is a Python HTML/XML parser designed for quick turnaround
@ -69,16 +67,17 @@ Beautiful Soup.
%setup -q -n %{_name}-%{version}
%build
export CFLAGS="%{optflags}"
python3 setup.py build
CFLAGS="%{optflags}" python3 setup.py build
%install
python3 setup.py install \
--prefix=%{_prefix} \
--root=%{buildroot} \
--record-rpm=INSTALLED_FILES
--root=%{buildroot}
%files -f INSTALLED_FILES
%files
%defattr(-,root,root)
%doc AUTHORS.txt COPYING.txt NEWS.txt README.txt TODO.txt
%{python3_sitelib}/bs4/
%{python3_sitelib}/%{_name}-%{version}-py*.egg-info
%changelog