2013-05-05 00:28:24 +02:00
|
|
|
%define srcname feedgen
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
2015-01-16 17:05:54 +01:00
|
|
|
Version: 0.3.1
|
2015-05-04 18:51:35 +02:00
|
|
|
Release: 2%{?dist}
|
2013-05-05 00:28:24 +02:00
|
|
|
Summary: Feed Generator (ATOM, RSS, Podcasts)
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: LGPLv3+ or BSD
|
2013-05-05 23:27:58 +02:00
|
|
|
URL: http://lkiesow.github.io/%{name}/
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
Source0: https://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2013-07-22 01:08:26 +02:00
|
|
|
BuildRequires: python2-devel
|
2013-05-05 00:28:24 +02:00
|
|
|
BuildRequires: python-setuptools
|
2015-05-04 18:51:35 +02:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
2013-05-05 00:28:24 +02:00
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-dateutil
|
|
|
|
|
|
|
|
%description
|
2013-05-05 23:27:58 +02:00
|
|
|
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.
|
|
|
|
|
2013-05-05 00:28:24 +02:00
|
|
|
|
2015-05-04 18:51:35 +02:00
|
|
|
%package -n python3-%{srcname}
|
|
|
|
Summary: Feed Generator (ATOM, RSS, Podcasts)
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
Requires: python3-lxml
|
|
|
|
Requires: python3-dateutil
|
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2013-05-05 00:28:24 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{srcname}-%{version}
|
2015-05-04 18:51:35 +02:00
|
|
|
mkdir python2
|
|
|
|
mv PKG-INFO docs feedgen license.bsd license.lgpl readme.md setup.py python2
|
|
|
|
cp -r python2 python3
|
|
|
|
|
|
|
|
# ensure the right python version is used
|
|
|
|
find python3 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
|
find python2 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|'
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2015-05-04 18:51:35 +02:00
|
|
|
pushd python2
|
|
|
|
%{__python2} setup.py build
|
|
|
|
popd
|
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2015-05-04 18:51:35 +02:00
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
popd
|
|
|
|
pushd python2
|
|
|
|
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
popd
|
|
|
|
chmod 644 $RPM_BUILD_ROOT%{python3_sitelib}/%{srcname}/*.py
|
|
|
|
chmod 644 $RPM_BUILD_ROOT%{python2_sitelib}/%{srcname}/*.py
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2015-05-04 18:51:35 +02:00
|
|
|
%license python2/license.*
|
|
|
|
%doc python2/docs/*
|
|
|
|
%{python2_sitelib}/*
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%license python3/license.*
|
|
|
|
%doc python3/docs/*
|
|
|
|
%{python3_sitelib}/*
|
2013-05-05 00:28:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-05-04 18:51:35 +02:00
|
|
|
* Mon May 4 2015 Lars Kiesow <lkiesow@uos.de> - 0.3.1-2
|
|
|
|
- Building for Python 3 as well
|
|
|
|
|
2015-01-16 17:05:54 +01:00
|
|
|
* Fri Jan 16 2015 Lars Kiesow <lkiesow@uos.de> - 0.3.1-1
|
|
|
|
- Update to 0.3.1
|
|
|
|
|
2014-07-20 23:57:29 +02:00
|
|
|
* Sun Jul 20 2014 Lars Kiesow <lkiesow@uos.de> - 0.3.0-1
|
|
|
|
- Update to 0.3
|
|
|
|
|
2014-01-01 19:06:45 +01:00
|
|
|
* Wed Jan 1 2014 Lars Kiesow <lkiesow@uos.de> - 0.2.8-1
|
|
|
|
- Update to 0.2.8
|
|
|
|
|
2014-01-01 17:02:24 +01:00
|
|
|
|
|
|
|
* Wed Jan 1 2014 Lars Kiesow <lkiesow@uos.de> - 0.2.7-1
|
|
|
|
- Update to 0.2.7
|
|
|
|
|
2013-09-23 14:49:33 +02:00
|
|
|
* Mon Sep 23 2013 Lars Kiesow <lkiesow@uos.de> - 0.2.6-1
|
|
|
|
- Update to 0.2.6
|
|
|
|
|
2013-07-22 00:40:36 +02:00
|
|
|
* Mon Jul 22 2013 Lars Kiesow <lkiesow@uos.de> - 0.2.5-1
|
2013-07-22 01:08:26 +02:00
|
|
|
- Updated to 0.2.5-1
|
|
|
|
|
|
|
|
* Thu May 16 2013 Lars Kiesow <lkiesow@uos.de> - 0.2.4-1
|
|
|
|
- Update to 0.2.4
|
|
|
|
|
|
|
|
* Tue May 14 2013 Lars Kiesow <lkiesow@uos.de> - 0.2.3-1
|
|
|
|
- Update to 0.2.3
|
2013-07-22 00:40:36 +02:00
|
|
|
|
2013-05-05 23:27:58 +02:00
|
|
|
* Sun May 5 2013 Lars Kiesow <lkiesow@uos.de> - 0.2.2-1
|
|
|
|
- Update to version 0.2.2
|
|
|
|
|
2013-05-05 00:28:24 +02:00
|
|
|
* Sat May 4 2013 Lars Kiesow <lkiesow@uos.de> - 0.1-1
|
|
|
|
- Initial build
|