From 2acd225331848dc156c29396e68c0cadb20e36c5 Mon Sep 17 00:00:00 2001 From: Pete Travis Date: Sep 15 2013 03:31:01 +0000 Subject: initial commit of spec --- diff --git a/python-PyRSS2Gen.spec b/python-PyRSS2Gen.spec new file mode 100644 index 0000000..f3120ef --- /dev/null +++ b/python-PyRSS2Gen.spec @@ -0,0 +1,74 @@ +%global with_python3 1 +Name: python-PyRSS2Gen +Version: 1.1 +Release: 4%{?dist} +Summary: A Python library for generating RSS 2.0 feeds + +Group: Development/Libraries +License: BSD +URL: http://www.dalkescientific.com/Python/PyRSS2Gen.html +Source0: http://www.dalkescientific.com/Python/PyRSS2Gen-%{version}.tar.gz +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python-setuptools +Requires: python-feedparser +%description +A Python library for generating RSS 2.0 feeds. + +%if 0%{?with_python3} +%package -n python3-PyRSS2Gen +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python3-feedparser +Summary: A Python library for generating RSS 2.0 feeds +BuildArch: noarch +Group: Development/Libraries +%description -n python3-PyRSS2Gen +A Python3 library for generating RSS 2.0 feeds. +%endif + + + +%prep +%setup -qn PyRSS2Gen-%{version} + +%build + +%install +%if 0%{?with_python3} +%{__python3} setup.py install --root %{buildroot} +%endif + +%{__python2} setup.py install --root %{buildroot} + +%check + + +%files -n python-PyRSS2Gen +%{python_sitelib}/PyRSS2Gen-%{version}-py2.7.egg-info +%{python_sitelib}/PyRSS2Gen.py +%{python_sitelib}/PyRSS2Gen.pyc +%{python_sitelib}/PyRSS2Gen.pyo +%doc README LICENSE + +%if 0%{?with_python3} +%files -n python3-PyRSS2Gen +%{python3_sitelib}/PyRSS2Gen-%{version}-py3.3.egg-info +%{python3_sitelib}/PyRSS2Gen.py +%{python3_sitelib}/__pycache__/PyRSS2Gen.cpython-33.pyc +%{python3_sitelib}/__pycache__/PyRSS2Gen.cpython-33.pyo +%doc README LICENSE +%endif + +%changelog +* Tue Sep 10 2013 Pete Travis 1.1-4 +- Completing python3 subpackaging, so it really does work. + +* Fri Sep 06 2013 Pete Travis 1.1-3 +- This should build a python3 package, too. + +* Thu Aug 22 2013 Pete Travis 1.1-1 +- Initial packaging. + +* Thu Aug 22 2013 Pete Travis 1.1-2 +- Correcting Requires and BuildRequires in spec, build as noarch.