Name: gitg Version: 0.0.3 Release: 1%{?dist} Summary: GTK+ graphical interface for the git revision control system Group: Development/Tools License: GPLv2+ URL: http://trac.novowork.com/gitg Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.0/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: dbus-devel BuildRequires: GConf2-devel BuildRequires: gtk2-devel BuildRequires: gtksourceview2-devel BuildRequires: intltool Requires(pre): GConf2 Requires(post): GConf2 Requires(preun): GConf2 Requires: git %description gitg is a GitX clone for GNOME/gtk+. It aims at being a small, fast and convenient tool to visualize git history and actions that benefit from a graphical presentation. %prep %setup -q %build %configure --disable-schemas make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" desktop-file-install \ --delete-original \ --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gitg.schemas > /dev/null || : fi %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gitg.schemas > /dev/null || : %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/gitg.schemas > /dev/null || : fi %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README ChangeLog %{_bindir}/gitg %{_datadir}/gitg %{_datadir}/pixmaps/gitg* %{_mandir}/man1/gitg.1* %{_sysconfdir}/gconf/schemas/gitg.schemas %{_datadir}/applications/gitg.desktop %changelog * Sat May 02 2009 James Bowes 0.0.3-1 - Initial packaging for Fedora.