%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: pyqtrailer Version: 0.3.6 Release: 2%{?dist} Summary: PyQt4 application to download trailers from apple.com Group: Applications/Multimedia License: GPLv3 URL: http://github.com/sochotnicky/%{name} Source0: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz Source1: %{name}.desktop Source2: %{name}-icon.svg BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel,python-setuptools BuildRequires: pytrailer BuildRequires: python-dateutil BuildRequires: PyQt4-devel Requires: python-dateutil Requires: pytrailer Requires: PyQt4 %description This application is able to download trailers from apple.com/trailers to your computer. It shows descriptions, posters, and other movie information. %prep %setup -q %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ %{SOURCE1} install -dm 755 %{buildroot}%{_datadir}/pixmaps install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.svg %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README %{_bindir}/pyqtrailer %{python_sitelib}/pyqtrailer %{python_sitelib}/*.egg-info %{_datadir}/applications/* %{_datadir}/pixmaps/* %changelog * Mon Oct 18 2010 Stanislav Ochotnicky - 0.3.6-2 - Added desktop entry and icon * Fri Oct 15 2010 Stanislav Ochotnicky - 0.3.6-1 - Initial version of package