%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: gwsmhg Version: 0.10.1 Release: 1%{?dist} Summary: A PyGTK GUI wrapper for hg and mq Group: Development/Tools License: GPLv2 Url: http://gwsmhg.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel desktop-file-utils Requires: pygtk2 pygtksourceview mercurial vte %description Mercurial (hg) is a distributed source control tool and Mercurial Queues (mq) is a patch management tool extension to hg. gwsmhg is a PyGTK GUI wrapper for hg and mq allowing them to be used in an integrated manner to manage a work space. %prep %setup -n gwsmhg-0.10 # -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT desktop-file-install gwsmhg.desktop \ --dir $RPM_BUILD_ROOT%{_datadir}/applications %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING copyright %{_bindir}/gwsmhg %{python_sitelib}/gwsmhg* %{_datadir}/pixmaps/gwsmhg* %{_datadir}/applications/gwsmhg.desktop %changelog * Sun Jul 18 2010 Mads Kiilerich <mads@kiilerich.com> - 0.10.1-1 - gwsmhg-0.10.1 - new upstream re-spin including terminal.py - Add vte as a requirement due to the new terminal functionality * Thu Jul 01 2010 Mads Kiilerich <mads@kiilerich.com> - 0.10-1 - gwsmhg-0.10 * Sat May 22 2010 Mads Kiilerich <mads@kiilerich.com> - 0.9-1 - New upstream release 0.9 * Fri Mar 5 2010 Mads Kiilerich <mads@kiilerich.com> - 0.8.4-1 - New upstream bugfix release 0.8.4 * Sun Nov 29 2009 Mads Kiilerich <mads@kiilerich.com> - 0.8.3-2 - New upstream version 0.8.3 with changes for working better on Fedora * Wed Nov 18 2009 Mads Kiilerich <mads@kiilerich.com> - 0.8.2-1 - Update to 0.8.2 where packaging hacks has been integrated * Fri Oct 30 2009 Mads Kiilerich <mads@kiilerich.com> - 0.8.1-2 - Move patching to prep - Debug_package doesn't matter for noarch - Remove .desktop Category X-Fedora * Tue Oct 27 2009 Mads Kiilerich <mads@kiilerich.com> - 0.8.1-1.fc12 - Fedora-compliant spec, based on upstream Makefile and bdist_rpm