File giggle.spec of Package giggle

#
# spec file for package giggle
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           giggle
Version:        0.7
Release:        0
Summary:        A graphical frontend for git
License:        GPL-2.0-or-later
Group:          Development/Tools/Version Control
URL:            https://wiki.gnome.org/Apps/giggle
Source:         https://download.gnome.org/sources/giggle/0.7/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM giggle-gtksourceview38.patch bgo#697220 dimstar@opensuse.org -- Fix build against gtksourceview 3.8
Patch0:         giggle-gtksourceview38.patch
# PATCH-FIX-UPSTREAM giggle-vte-2.91.patch zaitor@opensuse.org -- Fix build with vte-2.91. Patch from archlinux.
Patch1:         giggle-vte-2.91.patch
# PATCH-FIX-UPSTREAM giggle-Fix-build-failure-with-gcc-10.patch -- Fix build with gcc 10
Patch2:         giggle-Fix-build-failure-with-gcc-10.patch
BuildRequires:  gettext >= 0.18.1
BuildRequires:  git-core >= 1.5
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(glib-2.0) >= 2.30
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0
BuildRequires:  pkgconfig(gtksourceview-3.0) >= 3.0
BuildRequires:  pkgconfig(vte-2.91) >= 0.26
Requires:       git-core >= 1.5

%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
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
%autosetup -p1
translation-update-upstream po giggle

%build
autoreconf -fiv
intltoolize --force
%configure
%make_build

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

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%license COPYING
%doc AUTHORS INSTALL NEWS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%doc %dir %{_datadir}/help
%doc %dir %{_datadir}/help/C
%doc %{_datadir}/help/C/%{name}/
%{_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
%{_includedir}/%{name}/
%{_libdir}/libgiggle.so
%{_libdir}/libgiggle-git.so

%changelog
openSUSE Build Service is sponsored by