# sitelib for noarch packages, sitearch for others (remove the unneeded one) %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?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(1))")} %endif Name: turpial Version: 1.3.3 Release: 1%{?dist} Summary: Is cool twitter client with many features and very light Group: Applications/Internet License: GPLv3 URL: http://turpial.org.ve Source0: http://forja.softwarelibre.gob.ve/frs/download.php/192/turpial-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-babel >= 0.9.1, python2-devel python-setuptools Requires: python-simplejson >= 1.9.2, python-imaging notify-python >= 0.1.1, pygame >= 1.7, pygtk2 >= 2.12, pywebkitgtk gnome-python2-gtkspell >= 2.25.3 BuildArch: noarch %description Turpial is a cool twitter client with many features. How editor profile, support to url short services and more. %prep %setup -q -n turpial-1.3.3 %build %install rm -rf %{buildroot} sed -i 's/share\/doc\/turpial/share\/doc\/turpial-%{version}/' setup.py %{__python} setup.py compile_catalog install --root %{buildroot} %find_lang %{name} %find_lang messages cat %{name}.lang messages.lang > %{name}-all.lang %clean rm -rf %{buildroot} %files -f %{name}-all.lang %defattr(-,root,root,-) %attr(0644,root,root) %{_datadir}/doc/%{name}-%{version}/* %{_datadir}/pixmaps/turpial.png %{_datadir}/applications/* %attr(0755,root,root) %{_bindir}/* %attr(0755,root,root) %{python_sitelib}/%{name}/main.py %{python_sitelib}/* %changelog * Sat Jun 19 2010 Richzendy - 1.3.3-1 - Changes based on the comments in https://bugzilla.redhat.com/show_bug.cgi?id=592733#c6 * Sat May 22 2010 Richzendy - 1.3.2-2.a1 - fix to bugzilla, see bugzilla bug number 592733 * Sat May 22 2010 Richzendy - 1.3.2-a1.1 - fix to bugzilla, see bugzilla bug number 592733 * Thu May 11 2010 Richzendy - 1.3.2-a1 - Change url to turpial project and upgrade/clean spec file, see a changelog file for specific changelog package details * Sat May 1 2010 Richzendy - 1.0-1 - Package for this version, see a Changelog file for specific version details * Sat Feb 27 2010 Richzendy - 1.0-b1 - Package for this version and upgrade/clean spec file, see a changelog file for specific details * Fri Jan 22 2010 Richzendy - 0.9.2 - Initial package