File giggle.spec of Package giggle

#
# spec file for package giggle
#
# 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:           giggle
Version:        0.5
Release:        2
License:        GPLv2+
Summary:        A graphical frontend for git
Url:            http://live.gnome.org/giggle
Group:          Development/Tools/Version Control
Source:         http://ftp.gnome.org/pub/GNOME/sources/giggle/0.4/%{name}-%{version}.tar.bz2
BuildRequires:  evolution-data-server-devel
BuildRequires:  git-core >= 1.5
BuildRequires:  gtk2-devel
BuildRequires:  gtksourceview-devel
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  vte-devel
Recommends:     %{name}-lang
Requires:       git-core >= 1.5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Giggle is a Gtk frontend to the git content tracker.

With Giggle you will be able to visualize and browse easily the revision
tree, view changed files and differences between revisions, visualize
summarized info for the project, commit changes and other useful tasks
for any git managed projects contributor.

%package devel
License:        GPLv2+
Summary:        A graphical frontend for git
Group:          Development/Tools/Version Control
Requires:       %{name} = %{version}

%description devel
Giggle is a Gtk frontend to the git content tracker.

With Giggle you will be able to visualize and browse easily the revision
tree, view changed files and differences between revisions, visualize
summarized info for the project, commit changes and other useful tasks
for any git managed projects contributor.

%lang_package
%prep
%setup -q

%build
export SUSE_ASNEEDED=0
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file -G "Git repository viewer" %{name}

%clean
rm -rf %{buildroot}

%post
/sbin/ldconfig
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%endif

%postun
/sbin/ldconfig
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL NEWS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/*/*/*.svg
%{_libdir}/libgiggle.so.*
%{_libdir}/libgiggle-git.so.*
%dir %{_libdir}/giggle
%dir %{_libdir}/giggle/plugins
%dir %{_libdir}/giggle/plugins/%{version}
%{_libdir}/giggle/plugins/%{version}/*.so
%{_libdir}/giggle/plugins/%{version}/*.xml
%{_datadir}/giggle/

%files lang -f %{name}.lang

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/libgiggle.so
%{_libdir}/libgiggle-git.so

%changelog
openSUSE Build Service is sponsored by