[packages/python3-feedparser] - meaningful pl, updated tests invocation (still failing)

qboosh qboosh at pld-linux.org
Sun Apr 2 16:48:02 CEST 2023


commit c50a13ede33be79fd4d398bc50a8b6cce61ccec9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 2 16:50:33 2023 +0200

    - meaningful pl, updated tests invocation (still failing)

 python3-feedparser.spec | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/python3-feedparser.spec b/python3-feedparser.spec
index e9129ad..4b23f10 100644
--- a/python3-feedparser.spec
+++ b/python3-feedparser.spec
@@ -1,10 +1,10 @@
 #
 # Conditional build:
-%bcond_with	tests	# perform "make test" (3 tests fail)
+%bcond_with	tests	# unit tests (7 tests fail)
 
 %define 	module	feedparser
 Summary:	Parse RSS and Atom feeds in Python
-Summary(pl.UTF-8):	Biblioteka Feed Parser dla Pythona
+Summary(pl.UTF-8):	Analiza źródeł RSS i Atom dla Pythona
 Name:		python3-%{module}
 Version:	6.0.10
 Release:	1
@@ -29,14 +29,21 @@ Atom 1.0, and CDF feeds. It also parses several popular extension
 modules, including Dublin Core and Apple's iTunes extensions.
 
 %description -l pl.UTF-8
-Ten pakiet umożliwia analizę źródeł RSS i Atom w Pythonie.
+Universal Feed Parser to moduł Pythona do pobierania i analizy
+syndykowanych źródeł (feedów). Obsługuje RSS 0.90, Netscape RSS 0.91,
+Userland RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0,
+Atom 0.3, Atom 1.0 oraz CDF. Potrafi obsłużyć także kilka popularnych
+modułów rozszerzeń, w tym rozszerzenia Dublin Core oraz Apple iTunes.
 
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
 %py3_build
-%{?with_tests:cd feedparser; PYTHONPATH=../build-3 %{__python3} feedparsertest.py; cd ..}
+
+%if %{with tests}
+%{__python3} tests/runtests.py
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -50,4 +57,4 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE NEWS README.rst
 %{py3_sitescriptdir}/feedparser
-%{py3_sitescriptdir}/feedparser-*.egg-info
+%{py3_sitescriptdir}/feedparser-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-feedparser.git/commitdiff/c50a13ede33be79fd4d398bc50a8b6cce61ccec9



More information about the pld-cvs-commit mailing list