2017-10-25 16:54:56 +02:00
|
|
|
%global pypi_name feedgen
|
2013-05-05 00:28:24 +02:00
|
|
|
|
2017-10-25 16:54:56 +02:00
|
|
|
Name: python-%{pypi_name}
|
2017-10-14 21:42:14 +02:00
|
|
|
Version: 0.6.1
|
2015-10-29 23:14:55 +01:00
|
|
|
Release: 1%{?dist}
|
2013-05-05 00:28:24 +02:00
|
|
|
Summary: Feed Generator (ATOM, RSS, Podcasts)
|
|
|
|
|
2017-10-25 16:54:56 +02:00
|
|
|
License: BSD or LGPLv3
|
|
|
|
URL: http://lkiesow.github.io/python-feedgen
|
|
|
|
Source0: https://github.com/lkiesow/%{name}/archive/v%{version}.tar.gz
|
2013-05-05 00:28:24 +02:00
|
|
|
BuildArch: noarch
|
2017-10-25 16:54:56 +02:00
|
|
|
|
|
|
|
BuildRequires: python2-dateutil
|
2013-07-22 01:08:26 +02:00
|
|
|
BuildRequires: python2-devel
|
2017-10-25 16:54:56 +02:00
|
|
|
BuildRequires: python2-lxml
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
|
|
|
|
BuildRequires: python3-dateutil
|
2015-05-04 18:51:35 +02:00
|
|
|
BuildRequires: python3-devel
|
2017-10-25 16:54:56 +02:00
|
|
|
BuildRequires: python3-lxml
|
2015-05-04 18:51:35 +02:00
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
2013-05-05 00:28:24 +02:00
|
|
|
%description
|
2017-10-25 16:54:56 +02:00
|
|
|
Feedgenerator This module can be used to generate web feeds in both ATOM and
|
|
|
|
RSS format. It has support for extensions. Included is for example an extension
|
|
|
|
to produce Podcasts.
|
|
|
|
|
|
|
|
%package -n python2-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
|
|
|
|
Requires: python2-dateutil
|
|
|
|
Requires: python2-lxml
|
|
|
|
%description -n python2-%{pypi_name}
|
|
|
|
Feedgenerator This module can be used to generate web feeds in both ATOM and
|
|
|
|
RSS format. It has support for extensions. Included is for example an extension
|
|
|
|
to produce Podcasts.
|
|
|
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
2015-05-04 18:51:35 +02:00
|
|
|
Requires: python3-dateutil
|
2017-10-25 16:54:56 +02:00
|
|
|
Requires: python3-lxml
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
Feedgenerator This module can be used to generate web feeds in both ATOM and
|
|
|
|
RSS format. It has support for extensions. Included is for example an extension
|
|
|
|
to produce Podcasts.
|
2015-05-04 18:51:35 +02:00
|
|
|
|
|
|
|
|
2013-05-05 00:28:24 +02:00
|
|
|
%prep
|
2017-10-25 16:54:56 +02:00
|
|
|
%autosetup
|
|
|
|
# Remove bundled egg-info
|
|
|
|
rm -rf %{pypi_name}.egg-info
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
%build
|
2017-10-25 16:54:56 +02:00
|
|
|
%py2_build
|
|
|
|
%py3_build
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
%install
|
2017-10-25 16:54:56 +02:00
|
|
|
%py2_install
|
|
|
|
%py3_install
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
|
2017-10-25 16:54:56 +02:00
|
|
|
%check
|
|
|
|
%{__python2} setup.py test
|
|
|
|
%{__python3} setup.py test
|
2015-05-04 18:51:35 +02:00
|
|
|
|
2017-10-25 16:54:56 +02:00
|
|
|
%files -n python2-%{pypi_name}
|
|
|
|
%license license.lgpl license.bsd
|
|
|
|
%doc readme.rst
|
|
|
|
%{python2_sitelib}/%{pypi_name}
|
|
|
|
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
2015-05-04 18:51:35 +02:00
|
|
|
|
2017-10-25 16:54:56 +02:00
|
|
|
%files -n python3-%{pypi_name}
|
|
|
|
%license license.lgpl license.bsd
|
|
|
|
%doc readme.rst
|
|
|
|
%{python3_sitelib}/%{pypi_name}
|
|
|
|
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
%changelog
|
2017-10-25 16:54:56 +02:00
|
|
|
* Tue Oct 24 2017 Lumir Balhar <lbalhar@redhat.com> - 0.6.1-1
|
|
|
|
- Initial package.
|