%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: gwsmhg
Version: 0.8.3
Release: 2%{?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
%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 -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 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