File python-tw-rating.spec of Package python-tw-rating

#tw.rating-0.8.tar.gz
%define tarball_name tw.rating
Name:           python-tw-rating
Version:        0.8
Release:        1
Summary:        Star rating plugin for ToscaWidgets
Group:          Development/Languages
License:        MIT
URL:            http://toscawidgets.org
Source0:        %{tarball_name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}

BuildRequires:  python-devel python-setuptools
Requires:       python-ToscaWidgets >= 0.9.3
Requires:       python-tw-jquery
%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
Star Rater plugin for toscawidgets. Useful for TurboGears etc.

%prep
%setup -q -n %{tarball_name}-%{version}


%build
%{__python} setup.py build


%install
%{__python} setup.py install -O1 --skip-build --prefix=%{_prefix} --root $RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES


%clean
rm -rf $RPM_BUILD_ROOT


%files -f INSTALLED_FILES
%defattr(-,root,root,-)
#%doc LICENSE.txt

%changelog
openSUSE Build Service is sponsored by