[1741] | 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: 1%{?_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 | * Tue Aug 24 2010 Munehiro Yamamoto <munepi@vinelinux.org> 3.0.8.1-1 |
---|
| 77 | - initial build based on Fedora development |
---|
| 78 | |
---|
| 79 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1:3.0.8.1-2 |
---|
| 80 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
| 81 | |
---|
| 82 | * Sun Jun 20 2010 Terje Rosten <terje.rosten@ntnu.no> - 1:3.0.8.1-1 |
---|
| 83 | - 3.0.8.1 |
---|
| 84 | |
---|
| 85 | * Sun Dec 6 2009 Terje Rosten <terje.rosten@ntnu.no> - 1:3.0.8-1 |
---|
| 86 | - 3.0.8 |
---|
| 87 | - Fix source url |
---|
| 88 | |
---|
| 89 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.0.7a-2 |
---|
| 90 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 91 | |
---|
| 92 | * Wed Jun 10 2009 kwizart < kwizart at gmail.com > - 1:3.0.7a-1 |
---|
| 93 | - Revert to 3.0.7a and bump Epoch - Fix #505043 |
---|
| 94 | http://www.crummy.com/software/BeautifulSoup/3.1-problems.html |
---|
| 95 | |
---|
| 96 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0.1-3 |
---|
| 97 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 98 | |
---|
| 99 | * Mon Jan 12 2009 kwizart < kwizart at gmail.com > - 3.1.0.1-2 |
---|
| 100 | - Fix installed files. |
---|
| 101 | |
---|
| 102 | * Mon Jan 12 2009 kwizart < kwizart at gmail.com > - 3.1.0.1-1 |
---|
| 103 | - Update to 3.1.0.1 |
---|
| 104 | |
---|
| 105 | * Thu Dec 4 2008 kwizart < kwizart at gmail.com > - 3.0.7a-3 |
---|
| 106 | - ReTag |
---|
| 107 | |
---|
| 108 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.7a-2 |
---|
| 109 | - Rebuild for Python 2.6 |
---|
| 110 | |
---|
| 111 | * Wed Oct 15 2008 kwizart < kwizart at gmail.com > - 3.0.7a-1 |
---|
| 112 | - Update to 3.0.7a |
---|
| 113 | |
---|
| 114 | * Mon Jun 30 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.7-2 |
---|
| 115 | - Rebuild |
---|
| 116 | |
---|
| 117 | * Mon Jun 23 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 3.0.7-1 |
---|
| 118 | - Update to 3.0.7 |
---|
| 119 | |
---|
| 120 | * Tue Feb 5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-3 |
---|
| 121 | - Fix typo |
---|
| 122 | |
---|
| 123 | * Tue Feb 5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-2 |
---|
| 124 | - Handle egg info |
---|
| 125 | - Bump release |
---|
| 126 | |
---|
| 127 | * Tue Feb 5 2008 Terje Rosten <terje.rosten@ntnu.no> - 3.0.5-1 |
---|
| 128 | - Update to 3.0.5 |
---|
| 129 | - Minor tweaks to spec file |
---|
| 130 | |
---|
| 131 | * Wed Apr 18 2007 kwizart < kwizart at gmail.com > - 3.0.4-1 |
---|
| 132 | - Update to 3.0.4 |
---|
| 133 | |
---|
| 134 | * Wed Nov 29 2006 TC Wan <tcwan@cs.usm.my> |
---|
| 135 | - Initial SPEC file for Fedora Core 5 |
---|