[packages/python-bs4] - pl, added apidocs

qboosh qboosh at pld-linux.org
Fri Jul 20 22:43:50 CEST 2018


commit 6edb640d3fc34c540bb9acdfff1385d0847b47ef
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jul 20 22:45:45 2018 +0200

    - pl, added apidocs

 python-bs4.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 45 insertions(+), 11 deletions(-)
---
diff --git a/python-bs4.spec b/python-bs4.spec
index bfd0247..f2ae075 100644
--- a/python-bs4.spec
+++ b/python-bs4.spec
@@ -1,29 +1,37 @@
 #
 # Conditional build:
-%bcond_without	tests	# do not perform "make test"
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
 %define 	module	bs4
 Summary:	beautifulsoup4 - Screen-scraping library
+Summary(pl.UTF-8):	beautifulsoup4 - biblioteka przechwytująca wyjście
 Name:		python-%{module}
 Version:	4.6.0
 Release:	1
 License:	MIT
 Group:		Libraries/Python
-Source0:	https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
+#Source0Download: https://pypi.org/simple/beautifulsoup4/
+Source0:	https://files.pythonhosted.org/packages/source/b/beautifulsoup4/beautifulsoup4-%{version}.tar.gz
 # Source0-md5:	c17714d0f91a23b708a592cb3c697728
 Patch0:		test_suite.patch
-URL:		http://www.crummy.com/software/BeautifulSoup/bs4/
-BuildRequires:	rpmbuild(macros) >= 1.710
+URL:		https://www.crummy.com/software/BeautifulSoup/
+BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	rpm-pythonprov
 %if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
 %endif
 %if %{with python3}
+BuildRequires:	python3-modules >= 1:3.2
 BuildRequires:	python3-setuptools
 %endif
-Requires:	python-modules
+%if %{with doc}
+BuildRequires:	sphinx-pdg
+%endif
+Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -31,15 +39,37 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Beautiful Soup sits atop an HTML or XML parser, providing Pythonic
 idioms for iterating, searching, and modifying the parse tree.
 
+%description -l pl.UTF-8
+Beautiful Soup rezyduje powyżej parsera HTML lub XML, zapewniając
+pythonowe idiomy do iterowania, wyszukiwania i modyfikowania drzewa
+analizy.
+
 %package -n python3-%{module}
 Summary:	beautifulsoup4 - Screen-scraping library
+Summary(pl.UTF-8):	beautifulsoup4 - biblioteka przechwytująca wyjście
 Group:		Libraries/Python
-Requires:	python3-modules
+Requires:	python3-modules >= 1:3.2
 
 %description -n python3-%{module}
 Beautiful Soup sits atop an HTML or XML parser, providing Pythonic
 idioms for iterating, searching, and modifying the parse tree.
 
+%description -n python3-%{module} -l pl.UTF-8
+Beautiful Soup rezyduje powyżej parsera HTML lub XML, zapewniając
+pythonowe idiomy do iterowania, wyszukiwania i modyfikowania drzewa
+analizy.
+
+%package apidocs
+Summary:	API documentation for Python beautifulsoup4 module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona beautifulsoup4
+Group:		Documentation
+
+%description apidocs
+API documentation for Python beautifulsoup4 module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona beautifulsoup4.
+
 %prep
 %setup -q -n beautifulsoup4-%{version}
 %patch0 -p1
@@ -54,9 +84,7 @@ idioms for iterating, searching, and modifying the parse tree.
 %endif
 
 %if %{with doc}
-cd docs
-%{__make} -j1 html
-rm -rf _build/html/_sources
+%{__make} -C doc html
 %endif
 
 %install
@@ -76,7 +104,7 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc {AUTHORS,NEWS,README,TODO}.txt
+%doc {AUTHORS,COPYING,NEWS,README,TODO}.txt
 %{py_sitescriptdir}/bs4
 %{py_sitescriptdir}/beautifulsoup4-%{version}-py*.egg-info
 %endif
@@ -84,7 +112,13 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%doc {AUTHORS,NEWS,README,TODO}.txt
+%doc {AUTHORS,COPYING,NEWS,README,TODO}.txt
 %{py3_sitescriptdir}/bs4
 %{py3_sitescriptdir}/beautifulsoup4-%{version}-py*.egg-info
 %endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/build/html/{_images,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-bs4.git/commitdiff/6edb640d3fc34c540bb9acdfff1385d0847b47ef



More information about the pld-cvs-commit mailing list