[packages/python3-feedparser] up to 6.0.2

atler atler at pld-linux.org
Thu Mar 11 11:58:37 CET 2021


commit 5a32767fd8a3d4b8b3c8b0ece893b11fd0bf0f48
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Mar 11 11:57:50 2021 +0100

    up to 6.0.2

 python3-feedparser.spec | 72 +++++++------------------------------------------
 1 file changed, 9 insertions(+), 63 deletions(-)
---
diff --git a/python3-feedparser.spec b/python3-feedparser.spec
index 43521e3..af96ca7 100644
--- a/python3-feedparser.spec
+++ b/python3-feedparser.spec
@@ -1,32 +1,23 @@
 #
 # Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
 %bcond_with	tests	# perform "make test" (3 tests fail)
 
 %define 	module	feedparser
 Summary:	Parse RSS and Atom feeds in Python
 Summary(pl.UTF-8):	Biblioteka Feed Parser dla Pythona
-Name:		python-%{module}
-Version:	5.2.1
-Release:	5
+Name:		python3-%{module}
+Version:	6.0.2
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 Source0:	https://github.com/kurtmckee/feedparser/archive/%{version}.tar.gz
-# Source0-md5:	885d800496ffd538920960b9dbc45faf
+# Source0-md5:	bb12f347ef3d5eaa2f23cc625e8bb6fc
 URL:		https://github.com/kurtmckee/feedparser
+BuildRequires:	python3-distribute
+BuildRequires:	python3-modules >= 1:3.6
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.710
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.3.0
-BuildRequires:	python-distribute
-%endif
-%if %{with python3}
-BuildRequires:	python3-devel
-BuildRequires:	python3-distribute
-BuildRequires:	python3-modules
-%endif
-Requires:	python-modules
+Requires:	python3-modules >= 1:3.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -40,68 +31,23 @@ 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.
 
-%package -n python3-%{module}
-Summary:	Parse RSS and Atom feeds in Python
-Summary(pl.UTF-8):	Biblioteka Feed Parser dla Pythona
-Group:		Libraries/Python
-Requires:	python3-modules
-
-%description -n python3-%{module}
-Universal Feed Parser is a Python module for downloading and parsing
-syndicated feeds. It can handle 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, and CDF feeds. It also parses several popular extension
-modules, including Dublin Core and Apple's iTunes extensions.
-
-%description -n python3-%{module} -l pl.UTF-8
-Ten pakiet umożliwia analizę źródeł RSS i Atom w Pythonie.
-
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
-
-%if %{with python2}
-%py_build
-%{?with_tests:cd feedparser; PYTHONPATH=../build-2 %{__python} feedparsertest.py; cd ..}
-%endif
-
-%if %{with python3}
 %py3_build
-%{?with_tests:cd feedparser; PYTHONPATH=../build-3 %{__python} feedparsertest.py; cd ..}
-%endif
+%{?with_tests:cd feedparser; PYTHONPATH=../build-3 %{__python3} feedparsertest.py; cd ..}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE NEWS README.rst
-%{py_sitescriptdir}/feedparser.py[co]
-%{py_sitescriptdir}/feedparser-*.egg-info
-%endif
-
-%if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
 %doc LICENSE NEWS README.rst
-%{py3_sitescriptdir}/feedparser.py
-%{py3_sitescriptdir}/__pycache__/feedparser.*.py[co]
+%{py3_sitescriptdir}/feedparser
 %{py3_sitescriptdir}/feedparser-*.egg-info
-%endif
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list