blob: f59fed0fb45fcd7a03d01a901c08ae8ed761da1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
%define _module BeautifulSoup
Summary: A BeautifulSoup library for Python
Summary(pl.UTF-8): Biblioteka BeautifulSoup dla Pythona
Name: python-%{_module}
Version: 3.1.0.1
Release: 1
License: Python
Group: Development/Languages/Python
Source0: http://www.crummy.com/software/BeautifulSoup/download/%{_module}.tar.gz
# Source0-md5: bcffef3eda6e06e6d1e18c06a9db8a24
URL: http://www.crummy.com/software/BeautifulSoup/
BuildRequires: python-devel >= 2.2
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
%pyrequires_eq python-modules
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Beautiful Soup parses arbitrarily invalid SGML and provides a variety
of methods and Pythonic idioms for iterating and searching the parse
tree.
%description -l pl.UTF-8
Beautiful Soup parsuje, także wadliwy SGML i dostarcza różnorodne
metody i idiomy pythonowe do iterowania oraz przeszukiwania drzewa
wyniku parsowania.
%prep
%setup -q -n %{_module}-%{version}
%build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
python setup.py install \
--optimize=2 \
--root=$RPM_BUILD_ROOT
install BeautifulSoupTests.py \
$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%py_postclean
rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/BeautifulSoupTests.py[co]
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%dir %{_examplesdir}/%{name}-%{version}
%{_examplesdir}/%{name}-%{version}/BeautifulSoupTests.py
%{py_sitescriptdir}/BeautifulSoup.py[co]
|