File gitg.spec of Package gitg
#
# spec file for package gitg
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gitg
Version: 0.2.5
Release: 1
License: GPLv2+
Summary: Git repository viewer
Group: Development/Tools/Version Control
Url: http://trac.novowork.com/gitg/
Source: http://download.gnome.org/sources/gitg/0.2/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gladeui-2.0) >= 3.2
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.1.3
Requires: git-core
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%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.
%package -n libgitg-1_0-0
License: GPLv2+
Summary: Git repository viewer -- Library
Group: System/Libraries
%description -n libgitg-1_0-0
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.
%package -n glade-catalog-gitg
License: GPLv2+
Summary: Git repository viewer -- Catalog for Glade
Group: Development/Tools/GUI Builders
Requires: libgitg-1_0-0 = %{version}
Requires: glade
Supplements: packageand(glade:%{name}-devel)
%description -n glade-catalog-gitg
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.
This package provides a catalog for Glade, to allow the use the gitg
widgets in Glade.
%package -n libgitg-devel
License: GPLv2+
Summary: Git repository viewer -- Development Files
Group: Development/Libraries/GNOME
Requires: libgitg-1_0-0 = %{version}
%description -n libgitg-devel
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.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure --disable-static \
--enable-glade-catalog
make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file -G "Git repository viewer" %{name} RevisionControl
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%if 0%{?suse_version} > 1130
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%post -n libgitg-1_0-0 -p /sbin/ldconfig
%postun -n libgitg-1_0-0 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS README NEWS COPYING
%{_bindir}/gitg
%{_datadir}/gitg/
%{_datadir}/applications/gitg.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.gitg.gschema.xml
%{_datadir}/icons/hicolor/*/apps/gitg.*
%{_mandir}/man1/gitg.1*
%files -n libgitg-1_0-0
%defattr(-,root,root)
%{_libdir}/libgitg-1.0.so.*
%files -n glade-catalog-gitg
%defattr(-,root,root)
%{_datadir}/glade/catalogs/gitg-glade.xml
%files -n libgitg-devel
%defattr(-,root,root)
%{_includedir}/libgitg-1.0/
%{_libdir}/libgitg-1.0.so
%{_libdir}/pkgconfig/libgitg-1.0.pc
%files lang -f %{name}.lang
%changelog