Group :: Development/Python3
RPM: python3-module-feedparser
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_disable snapshot
%define modname feedparser
%def_without doc
%def_disable check
Name: python3-module-%modname
Version: 6.0.10
Release: alt1
Summary: Universal feed parser for Python
Group: Development/Python3
License: BSD-2-Clause
Url: https://github.com/kurtmckee/%modname
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel >= 3.6 python3-module-setuptools
%{?_with_doc:BuildRequires: python3-module-sphinx python3-module-requests}
%{?_enable_check:BuildRequires: python3-module-tox}
%if_disabled snapshot
Source: https://pypi.io/packages/source/f/%modname/%modname-%version.tar.gz
%else
Source: %modname-%version.tar
%endif
%description
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.
It provides the same API to all formats, and sanitizes URIs and HTML.
%package doc
Summary: Documentation for the Universal feed parser for Python
Group: Development/Python
Requires: %name = %EVR
%description doc
This package contains documentation for the Universal feed parser.
%prep
%setup -n %modname-%version
find -type f -print0 |
xargs -r0 sed -i 's/\r//' --
%build
%python3_build
%{?_with_doc:py3_sphinx-build -b html docs html}
%install
%python3_install
%define docdir %_docdir/%name
mkdir -p %buildroot%docdir
install -pm644 LICENSE NEWS README.rst %buildroot%docdir/
%{?_with_doc:cp -a html %buildroot%docdir/}
%check
tox.py3
%files
%python3_sitelibdir/*
%dir %docdir
%docdir/[LNR]*
%if_with doc
%files doc
%dir %docdir
%docdir/html
%endif
%changelog
…
Full changelog you can see here
%define modname feedparser
%def_without doc
%def_disable check
Name: python3-module-%modname
Version: 6.0.10
Release: alt1
Summary: Universal feed parser for Python
Group: Development/Python3
License: BSD-2-Clause
Url: https://github.com/kurtmckee/%modname
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel >= 3.6 python3-module-setuptools
%{?_with_doc:BuildRequires: python3-module-sphinx python3-module-requests}
%{?_enable_check:BuildRequires: python3-module-tox}
%if_disabled snapshot
Source: https://pypi.io/packages/source/f/%modname/%modname-%version.tar.gz
%else
Source: %modname-%version.tar
%endif
%description
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.
It provides the same API to all formats, and sanitizes URIs and HTML.
%package doc
Summary: Documentation for the Universal feed parser for Python
Group: Development/Python
Requires: %name = %EVR
%description doc
This package contains documentation for the Universal feed parser.
%prep
%setup -n %modname-%version
find -type f -print0 |
xargs -r0 sed -i 's/\r//' --
%build
%python3_build
%{?_with_doc:py3_sphinx-build -b html docs html}
%install
%python3_install
%define docdir %_docdir/%name
mkdir -p %buildroot%docdir
install -pm644 LICENSE NEWS README.rst %buildroot%docdir/
%{?_with_doc:cp -a html %buildroot%docdir/}
%check
tox.py3
%files
%python3_sitelibdir/*
%dir %docdir
%docdir/[LNR]*
%if_with doc
%files doc
%dir %docdir
%docdir/html
%endif
%changelog
…
Full changelog you can see here