File gobby.spec of Package gobby

# spec file for package gobby
# Copyright (c) 2021 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

%define _versioned_name gobby-0.5
Name:           gobby
Version:        0.5.1+20180826.d16519e
Release:        0
Summary:        Collaborative editor (Infinote protocol)
License:        GPL-2.0-or-later AND ISC
Group:          Productivity/Other
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gnome-common
BuildRequires:  gnome-doc-utils-devel
# For directory ownership:
BuildRequires:  gnome-themes
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(glibmm-2.4)
BuildRequires:  pkgconfig(libgsasl)
BuildRequires:  pkgconfig(libinfinity-0.7)
BuildRequires:  pkgconfig(libxml++-2.6)
Requires(post): update-alternatives
%if 0%{?favor_gtk2}
BuildRequires:  pkgconfig(gtkmm-2.4)
BuildRequires:  pkgconfig(gtksourceview-2.0)
BuildRequires:  pkgconfig(gtkmm-3.0)
BuildRequires:  pkgconfig(gtksourceview-3.0)

This is a collaborative editor, which means that it provides
the possibility to edit files simultaneously with other users over
a network. It supports multiple documents in one session.

This version of Gobby uses the Infinote protocol.


%setup -q

%configure \
    --disable-scrollkeeper \
    --with-gnome \
%if 0%{?favor_gtk2}

%find_lang gobby05 %{?no_lang_C}
# For documentation. It's not versioned, but gobby 0.4 doesn't have such files,
# so there's no conflict.
# %%find_lang gobby %%{?no_lang_C} gobby05.lang
%suse_update_desktop_file -N "Gobby" -G "Collaborative Editor" %{_versioned_name} X-SuSE-Core-Internet
%fdupes %{buildroot}

%if 0%{?suse_version} < 1330
%icon_theme_cache_post HighContrastLargePrint
%icon_theme_cache_post HighContrastLargePrintInverse

%icon_theme_cache_postun HighContrastLargePrint
%icon_theme_cache_postun HighContrastLargePrintInverse

%license COPYING
%dir %{_datadir}/help/
%doc %{_datadir}/help/C/%{name}
# %%dir %%{_datadir}/omf/
# %%dir %%{_datadir}/omf/%%{name}/
# %%doc %%{_datadir}/omf/%%{name}/%%{name}-C.omf
# FIXME: gnome-themes does not provide excluded directories yet.
%exclude %{_datadir}/icons/HighContrast*/scalable/*

%files lang -f gobby05.lang

openSUSE Build Service is sponsored by