forked from pool/python-beautifulsoup4
- Update upstream URL
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-beautifulsoup4?expand=0&rev=22
This commit is contained in:
parent
71670db575
commit
9774e217f4
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 27 13:32:06 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Update upstream URL
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 25 11:52:34 UTC 2013 - dmueller@suse.com
|
||||
|
||||
|
@ -16,8 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%define _name beautifulsoup4
|
||||
Name: python-%{_name}
|
||||
Name: python-beautifulsoup4
|
||||
Version: 4.2.1
|
||||
Release: 0
|
||||
Summary: HTML/XML Parser for Quick-Turnaround Applications Like Screen-Scraping
|
||||
@ -26,20 +25,19 @@ 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: python-Sphinx
|
||||
BuildRequires: python-devel >= 2.6
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
# Test requirements:
|
||||
BuildRequires: python-html5lib
|
||||
BuildRequires: python-lxml
|
||||
BuildRequires: python-nose
|
||||
Requires: python-html5lib
|
||||
Requires: python-lxml
|
||||
%{py_requires}
|
||||
|
||||
# build fails for SLE11 64bit due to 'noarch'
|
||||
%if 0%{?suse_version} >= 1140
|
||||
BuildArch: noarch
|
||||
%else
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -79,32 +77,26 @@ Documentation and help files for %{name}
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
%setup -q -n beautifulsoup4-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
python setup.py build
|
||||
cd doc && make html
|
||||
|
||||
%install
|
||||
python setup.py install \
|
||||
--prefix=%{_prefix} \
|
||||
--root=%{buildroot}
|
||||
cd doc
|
||||
make html
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%if 0%{?suse_version} >= 1140
|
||||
%check
|
||||
nosetests
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS.txt COPYING.txt
|
||||
%{python_sitelib}/bs4/
|
||||
%{python_sitelib}/%{_name}-%{version}-py*.egg-info
|
||||
%{python_sitelib}/beautifulsoup4-%{version}-py*.egg-info
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc NEWS.txt README.txt TODO.txt
|
||||
%doc doc/build/html
|
||||
%doc NEWS.txt README.txt TODO.txt doc/build/html
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user