Permalink
Browse files

First iteration of the new rpm. It actually built in koji.

  • Loading branch information...
ralphbean committed Apr 4, 2012
1 parent 3f61860 commit 6b924cdda03d134f728721a9424ade88bd853336
Showing with 41 additions and 9 deletions.
  1. +41 −9 python-tw2-core.spec
@@ -1,27 +1,57 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%global prerel b6
%global modname tw2.core
Name: python-tw2
Version: 2.0
Release: 0.1.%{prerel}%{?dist}
Name: python-tw2-core
Version: 2.0.1
Release: 1
Summary: Web widget creation toolkit based on TurboGears widgets
Group: Development/Languages
License: MIT
URL: http://toscawidgets.org
Source0: http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}%{prerel}.tar.gz
Patch0: tw2-test_genshi_abs.patch
Source0: http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# For building, generally
BuildRequires: python2-devel
BuildRequires: python-setuptools
%if %{?rhel}%{!?rhel:0} >= 6
BuildRequires: python-webob1.0 >= 0.9.7
%else
BuildRequires: python-webob >= 0.9.7
%endif
BuildRequires: python-simplejson >= 2.0
BuildRequires: python-decorator
BuildRequires: python-speaklater
BuildRequires: python-paste-deploy
# Specifically for the test suite
BuildRequires: python-nose
BuildRequires: python-coverage
BuildRequires: python-BeautifulSoup
BuildRequires: python-formencode
BuildRequires: python-webtest
BuildRequires: python-strainer
# Templating languages for the test suite
BuildRequires: python-mako
BuildRequires: python-genshi
BuildRequires: python-turbokid
BuildRequires: python-turbocheetah
# Runtime requirements
%if %{?rhel}%{!?rhel:0} >= 6
Requires: python-webob1.0 >= 0.9.7
%else
Requires: python-webob >= 0.9.7
%endif
Requires: python-simplejson >= 2.0
Requires: python-decorator
Requires: python-speaklater
Requires: python-paste-deploy
%description
ToscaWidgets is a web widget toolkit for Python to aid in the creation,
@@ -31,8 +61,7 @@ The tw2.core package is lightweight and intended for run-time use only;
development tools are in tw2.devtools.
%prep
%setup -q -n %{modname}-%{version}%{prerel}
%patch0
%setup -q -n %{modname}-%{version}
%build
%{__python} setup.py build
@@ -50,9 +79,12 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.txt LICENSE.txt CHANGELOG.txt
%doc README.rst LICENSE.txt
%{python_sitelib}/*
%changelog
* Wed Apr 04 2012 Ralph Bean <rbean@redhat.com> - 2.0.1-1
- Update for latest tw2.core release.
* Thu Jun 16 2011 Luke Macken <lmacken@redhat.com> - 2.0-0.1.b4
- Initial package

0 comments on commit 6b924cd

Please sign in to comment.