%if 0%{?fedora} < 13 && 0%{?rhel} < 6 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif Name: pytrailer Version: 0.3.1 Release: 2%{?dist} Summary: Python module to simplify access to movie trailers on apple.com Group: Development/Libraries License: LGPLv3 URL: http://github.com/sochotnicky/%{name} Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel,python-setuptools %description Pytrailer is very simple python module using JSON and few simple regular expressions to simplify access to trailer information on www.apple.com/trailers. %prep %setup -q %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README %{python_sitelib}/pytrailer* %{python_sitelib}/*.egg-info %changelog * Fri Oct 15 2010 Stanislav Ochotnicky - 0.3.1-2 - Fix License tag to match license of the package - Change RPM_BUILD_ROOT to buildroot macro * Fri Oct 15 2010 Stanislav Ochotnicky - 0.3.1-1 - Initial version of package