[python-beautifulsoup4] Importing
terjeros
terjeros at fedoraproject.org
Mon Jul 16 06:53:14 UTC 2012
commit 4b0ce86dc2eae5ede708058c871e920debcf2806
Author: Terje Røsten <terje.rosten at ntnu.no>
Date: Mon Jul 16 08:53:02 2012 +0200
Importing
.gitignore | 1 +
python-beautifulsoup4.spec | 142 ++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 144 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c497346 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/beautifulsoup4-4.1.1.tar.gz
diff --git a/python-beautifulsoup4.spec b/python-beautifulsoup4.spec
new file mode 100644
index 0000000..5578f52
--- /dev/null
+++ b/python-beautifulsoup4.spec
@@ -0,0 +1,142 @@
+%global with_python3 1
+%global oname beautifulsoup4
+
+Name: python-beautifulsoup4
+Version: 4.1.1
+Release: 2%{?dist}
+Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
+Group: Development/Languages
+License: MIT
+URL: http://www.crummy.com/software/BeautifulSoup/
+Source0: http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/beautifulsoup4-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: python-devel
+BuildRequires: python-html5lib
+BuildRequires: python-lxml
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+Requires: python-html5lib
+Requires: python-lxml
+%if 0%{?with_python3}
+BuildRequires: python-tools
+BuildRequires: python3-html5lib
+BuildRequires: python3-lxml
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+Requires: python3-html5lib
+Requires: python3-lxml
+%endif
+
+%description
+Beautiful Soup is a Python HTML/XML parser designed for quick
+turnaround projects like screen-scraping. Three features make it
+powerful:
+
+Beautiful Soup won't choke if you give it bad markup.
+
+Beautiful Soup provides a few simple methods and Pythonic idioms for
+navigating, searching, and modifying a parse tree.
+
+Beautiful Soup automatically converts incoming documents to Unicode
+and outgoing documents to UTF-8.
+
+Beautiful Soup parses anything you give it.
+
+Valuable data that was once locked up in poorly-designed websites is
+now within your reach. Projects that would have taken hours take only
+minutes with Beautiful Soup.
+
+%if 0%{?with_python3}
+%package -n python3-beautifulsoup4
+Summary: HTML/XML parser for quick-turnaround applications like screen-scraping
+Group: Development/Languages
+Obsoletes: python3-BeautifulSoup < 1:3.2.1-2
+
+%description -n python3-beautifulsoup4
+Beautiful Soup is a Python HTML/XML parser designed for quick
+turnaround projects like screen-scraping. Three features make it
+powerful:
+
+Beautiful Soup won't choke if you give it bad markup.
+
+Beautiful Soup provides a few simple methods and Pythonic idioms for
+navigating, searching, and modifying a parse tree.
+
+Beautiful Soup automatically converts incoming documents to Unicode
+and outgoing documents to UTF-8.
+
+Beautiful Soup parses anything you give it.
+
+Valuable data that was once locked up in poorly-designed websites is
+now within your reach. Projects that would have taken hours take only
+minutes with Beautiful Soup.
+
+This is the Python 3 build of Beautiful Soup.
+
+%endif # if with_python3
+
+%prep
+%setup -q -n %{oname}-%{version}
+mv AUTHORS.txt AUTHORS.txt.iso
+iconv -f ISO-8859-1 -t UTF-8 -o AUTHORS.txt AUTHORS.txt.iso
+touch -r AUTHORS.txt.iso AUTHORS.txt
+
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python} setup.py build
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+2to3 --write --nobackups .
+%{__python3} setup.py build
+%endif
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+%endif
+
+%check
+%{__python} -m unittest discover -s bs4
+
+%if 0%{?with_python3}
+pushd %{py3dir}
+# Some tests fails
+%{__python3} -m unittest discover -s bs4 || :
+%endif
+
+%files
+%doc *.txt
+%{python_sitelib}/beautifulsoup4-%{version}*.egg-info
+%{python_sitelib}/bs4
+
+%if 0%{?with_python3}
+%files -n python3-beautifulsoup4
+%doc *.txt
+%{python3_sitelib}/beautifulsoup4-%{version}*.egg-info
+%{python3_sitelib}/bs4
+%endif
+
+%changelog
+* Tue Jul 10 2012 Terje Rosten <terje.rosten at ntnu.no> - 4.1.1-2
+- License is MIT
+- Remove old cruft
+- Fix obsolete
+
+* Mon Jul 09 2012 Terje Rosten <terje.rosten at ntnu.no> - 4.1.1-1
+- 4.1.1
+- Obsolete the old py3-bs4 from bs3 package
+
+* Mon May 28 2012 Terje Rosten <terje.rosten at ntnu.no> - 4.0.5-1
+- 4.0.5
+
+* Sat Mar 24 2012 Terje Rosten <terje.rosten at ntnu.no> - 4.0.1-1
+- initial package based on python-BeautifulSoup.
+
diff --git a/sources b/sources
index e69de29..ca48a49 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fccee58b4d914fb489385d672fe89f43 beautifulsoup4-4.1.1.tar.gz
More information about the scm-commits
mailing list