diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec index 75a5964..7d13686 100644 --- a/python-beautifulsoup4.spec +++ b/python-beautifulsoup4.spec @@ -1,7 +1,7 @@ # # 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: python-%{_name} Version: 4.1.3 Release: 0 @@ -30,11 +30,19 @@ Source: http://pypi.python.org/packages/source/b/beautifulsoup4/beautifu BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel >= 2.6 BuildRequires: python-nose +BuildRequires: python-html5lib +BuildRequires: python-lxml +BuildRequires: python-xml +Requires: python-html5lib +Requires: python-lxml +Requires: python-xml %{py_requires} # build fails for SLE11 64bit due to 'noarch' %if 0%{?suse_version} >= 1140 BuildArch: noarch +%else +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %description @@ -69,19 +77,20 @@ Beautiful Soup. %setup -q -n %{_name}-%{version} %build -export CFLAGS="%{optflags}" -python setup.py build +CFLAGS="%{optflags}" python setup.py build %install -python setup.py install \ - --prefix=%{_prefix} \ - --root=%{buildroot} \ - --record-rpm=INSTALLED_FILES +python setup.py install \ + --prefix=%{_prefix} \ + --root=%{buildroot} %check nosetests -%files -f INSTALLED_FILES +%files %defattr(-,root,root) +%doc AUTHORS.txt COPYING.txt NEWS.txt README.txt TODO.txt +%{python_sitelib}/bs4/ +%{python_sitelib}/%{_name}-%{version}-py*.egg-info %changelog