]> git.pld-linux.org Git - packages/python3-feedparser.git/commitdiff
up to 6.0.2 auto/th/python3-feedparser-6.0.2-1
authorJan Palus <atler@pld-linux.org>
Thu, 11 Mar 2021 10:57:50 +0000 (11:57 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 11 Mar 2021 10:57:50 +0000 (11:57 +0100)
python3-feedparser.spec

index 43521e3200311b98cee9c84a5f4cac6dc2a1b490..af96ca7e3d9cb5f5455a65b4c4b2f3ea8479d2a0 100644 (file)
@@ -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
This page took 0.139574 seconds and 4 git commands to generate.