File python-tg-devtools.spec of Package python-tg-devtools

#norootforbuild
#
%define real_name tg.devtools
%define mod_name tg-devtools
#
#
Name:           python-%{mod_name}
Group:          Development/Libraries/Python
Version:        2.1b1
Release:        0
License:        MIT
Summary:        Development tools for TurboGears 2
Autoreqprov:    on
Source:         %{real_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-setuptools
Requires:       python-TurboGears2 >= 2.1b1
Requires:       python-sqlalchemy-migrate >= 0.5.1
Requires:       python-sqlalchemy >= 0.5
Requires:       python-repoze-what-quickstart >= 1.0
Requires:       python-repoze-who >= 1.0.18
Requires:       python-tgext-admin
# not sure what requires Markdown but this will solve the dependency for tg2
Requires:       python-Markdown
Url:            http://www.turbogears.org
%{py_requires}
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))')
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif

%description
The tg.devtools package provides necessary module plugins for Turbogears, most noticeably the plugins which enables
the TurboGears relevant script arguments to be embedded into the paster module.

%prep
%setup -n %{real_name}-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc  PKG-INFO

%changelog
* Tue Jan 26 2010 - Ciaran Farrell <cfarrell1980@gmail.com> - 2.1b1
- Update to 2.1b1

* Tue Dec 02 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 2.1a3
- Update to 2.1a3

* Sun Nov 23 2009 - Ciaran Farrell <cfarrell1980@gmail.com> - 2.1a2
- Initial build for tg21

openSUSE Build Service is sponsored by