forked from pool/python-beautifulsoup4
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-beautifulsoup4?expand=0&rev=8
This commit is contained in:
parent
1bfe5d9e75
commit
86122e6a97
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,10 +15,10 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define _name beautifulsoup4
|
%define _name beautifulsoup4
|
||||||
%define _major 4.x
|
%define _major 4.x
|
||||||
|
|
||||||
|
|
||||||
Name: python3-%{_name}
|
Name: python3-%{_name}
|
||||||
Version: 4.1.3
|
Version: 4.1.3
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -28,14 +28,12 @@ Group: Development/Libraries/Python
|
|||||||
Url: http://www.crummy.com/software/BeautifulSoup/
|
Url: http://www.crummy.com/software/BeautifulSoup/
|
||||||
Source: http://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python3
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-2to3
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
Requires: python3 >= %{py3_ver}
|
BuildRequires: python3-lxml
|
||||||
|
Requires: python3-lxml
|
||||||
# build fails for SLE11 64bit due to 'noarch'
|
|
||||||
%if 0%{?suse_version} >= 1140
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Beautiful Soup is a Python HTML/XML parser designed for quick turnaround
|
Beautiful Soup is a Python HTML/XML parser designed for quick turnaround
|
||||||
@ -69,16 +67,17 @@ Beautiful Soup.
|
|||||||
%setup -q -n %{_name}-%{version}
|
%setup -q -n %{_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
CFLAGS="%{optflags}" python3 setup.py build
|
||||||
python3 setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install \
|
python3 setup.py install \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--root=%{buildroot} \
|
--root=%{buildroot}
|
||||||
--record-rpm=INSTALLED_FILES
|
|
||||||
|
|
||||||
%files -f INSTALLED_FILES
|
%files
|
||||||
%defattr(-,root,root)
|
%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
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user