1 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | %{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")} |
---|
3 | |
---|
4 | %define oname BeautifulSoup |
---|
5 | |
---|
6 | Name: python-BeautifulSoup |
---|
7 | Version: 3.0.8.1 |
---|
8 | Release: 2%{?_dist_release} |
---|
9 | Summary: HTML/XML parser for quick-turnaround applications like screen-scraping |
---|
10 | |
---|
11 | Group: Development/Languages |
---|
12 | License: BSD |
---|
13 | URL: http://www.crummy.com/software/BeautifulSoup/ |
---|
14 | Source0: http://www.crummy.com/software/BeautifulSoup/download/3.x/BeautifulSoup-%{version}.tar.gz |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
16 | |
---|
17 | BuildArch: noarch |
---|
18 | BuildRequires: python-devel |
---|
19 | |
---|
20 | %description |
---|
21 | Beautiful Soup is a Python HTML/XML parser designed for quick |
---|
22 | turnaround projects like screen-scraping. Three features make it |
---|
23 | powerful: |
---|
24 | |
---|
25 | Beautiful Soup won't choke if you give it bad markup. |
---|
26 | |
---|
27 | Beautiful Soup provides a few simple methods and Pythonic idioms for |
---|
28 | navigating, searching, and modifying a parse tree. |
---|
29 | |
---|
30 | Beautiful Soup automatically converts incoming documents to Unicode |
---|
31 | and outgoing documents to UTF-8. |
---|
32 | |
---|
33 | Beautiful Soup parses anything you give it. |
---|
34 | |
---|
35 | Valuable data that was once locked up in poorly-designed websites is |
---|
36 | now within your reach. Projects that would have taken hours take only |
---|
37 | minutes with Beautiful Soup. |
---|
38 | #' |
---|
39 | |
---|
40 | %prep |
---|
41 | %setup -q -n %{oname}-%{version} |
---|
42 | |
---|
43 | |
---|
44 | %build |
---|
45 | %{__python} setup.py build |
---|
46 | %{__python} -c 'import %{oname} as bs; print bs.__doc__' > COPYING |
---|
47 | touch -r %{oname}.py COPYING |
---|
48 | |
---|
49 | |
---|
50 | %install |
---|
51 | %__rm -rf $RPM_BUILD_ROOT |
---|
52 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
53 | |
---|
54 | #Files installed by error |
---|
55 | %__rm -rf $RPM_BUILD_ROOT%{_bindir} |
---|
56 | |
---|
57 | |
---|
58 | %clean |
---|
59 | %__rm -rf $RPM_BUILD_ROOT |
---|
60 | |
---|
61 | |
---|
62 | %check |
---|
63 | %{__python} BeautifulSoupTests.py |
---|
64 | |
---|
65 | |
---|
66 | %files |
---|
67 | %defattr(-,root,root,-) |
---|
68 | %doc COPYING |
---|
69 | %{python_sitelib}/%{oname}.py* |
---|
70 | %exclude %{python_sitelib}/%{oname}Tests.py* |
---|
71 | %if 0%{?fedora} >= 9 || 0%{?rhel} >= 6 |
---|
72 | %{python_sitelib}/%{oname}-%{version}-py%{pyver}.egg-info |
---|
73 | %endif |
---|
74 | |
---|
75 | %changelog |
---|
76 | * Thu Mar 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.8.1-2 |
---|
77 | - rebuild with Vine6 environment |
---|
78 | |
---|
79 | * Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.0.8.1-1 |
---|
80 | - initial build based on Fedora development |
---|
81 | |
---|
82 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:3.0.8.1-2 |
---|
83 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
84 | |
---|
85 | * Sun Jun 20 2010 Terje Rosten <terje.rosten@ntnu.no> - 1:3.0.8.1-1 |
---|
86 | - 3.0.8.1 |
---|
87 | |
---|
88 | * Sun Dec 6 2009 Terje Rosten <terje.rosten@ntnu.no> - 1:3.0.8-1 |
---|
89 | - 3.0.8 |
---|
90 | - Fix source url |
---|
91 | |
---|
92 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.7a-2 |
---|
93 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
94 | |
---|
95 | * Wed Jun 10 2009 kwizart < kwizart at gmail.com > - 1:3.0.7a-1 |
---|
96 | - Revert to 3.0.7a and bump Epoch - Fix #505043 |
---|
97 | http://www.crummy.com/software/BeautifulSoup/3.1-problems.html |
---|
98 | |
---|
99 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0.1-3 |
---|
100 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
101 | |
---|
102 | * Mon Jan 12 2009 kwizart < kwizart at gmail.com > - 3.1.0.1-2 |
---|
103 | - Fix installed files. |
---|
104 | |
---|
105 | * Mon Jan 12 2009 kwizart < kwizart at gmail.com > - 3.1.0.1-1 |
---|
106 | - Update to 3.1.0.1 |
---|
107 | |
---|
108 | * Thu Dec 4 2008 kwizart < kwizart at gmail.com > - 3.0.7a-3 |
---|
109 | - ReTag |
---|
110 | |
---|
111 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.7a-2 |
---|
112 | - Rebuild for Python 2.6 |
---|
113 | |
---|
114 | * Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 3.0.7a-1 |
---|
115 | - Update to 3.0.7a |
---|
116 | |
---|
117 | * Mon Jun 30 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.7-2 |
---|
118 | - Rebuild |
---|
119 | |
---|
120 | * Mon Jun 23 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.0.7-1 |
---|
121 | - Update to 3.0.7 |
---|
122 | |
---|
123 | * Tue Feb 5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-3 |
---|
124 | - Fix typo |
---|
125 | |
---|
126 | * Tue Feb 5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-2 |
---|
127 | - Handle egg info |
---|
128 | - Bump release |
---|
129 | |
---|
130 | * Tue Feb 5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-1 |
---|
131 | - Update to 3.0.5 |
---|
132 | - Minor tweaks to spec file |
---|
133 | |
---|
134 | * Wed Apr 18 2007 kwizart < kwizart at gmail.com > - 3.0.4-1 |
---|
135 | - Update to 3.0.4 |
---|
136 | |
---|
137 | * Wed Nov 29 2006 TC Wan <tcwan@cs.usm.my> |
---|
138 | - Initial SPEC file for Fedora Core 5 |
---|