File gtranslator.spec of Package gtranslator

# spec file for package gtranslator
# 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

Name:           gtranslator
Version:        40.0
Release:        0
Summary:        A gettext po file editor for the GNOME desktop
License:        GPL-3.0-or-later
Group:          Development/Tools/Other
Source99:       gtranslator-rpmlintrc
# PATCH-FIX-UPSTREAM libgda-6.patch -- Require and support GDA 6
Patch0:         libgda-6.patch
BuildRequires:  fdupes
BuildRequires:  gettext-tools
BuildRequires:  intltool
BuildRequires:  itstool
BuildRequires:  meson >= 0.46.0
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(gio-2.0) >= 2.36.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.36.0
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gspell-1) >= 1.2.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22.20
BuildRequires:  pkgconfig(gtk-doc)
BuildRequires:  pkgconfig(gtksourceview-4) >= 4.0.2
BuildRequires:  pkgconfig(iso-codes)
BuildRequires:  pkgconfig(json-glib-1.0) >= 1.2.0
BuildRequires:  pkgconfig(libdazzle-1.0) >= 3.33.90
BuildRequires:  pkgconfig(libgda-6.0) >= 6.0.0
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(libxml-2.0) >= 2.4.12
BuildRequires:  pkgconfig(libhandy-1)
Requires:       gsettings-desktop-schemas
Requires:       iso-codes
Requires:       libgda-sqlite >= 6.0.0
Obsoletes:      gtranslator-devel <= 2.91.7

Gtranslator is a ".po" file editor with many bells and whistles.
It features many functions which aid in the work of translators of po
files imminently.

%package doc
Summary:        Documentation for %{name}
Group:          Development/Tools/Other

%description doc
This package contains documentation for %{name}.


%autosetup -p1

%meson \
	-D gtk_doc=true

find %{buildroot} -type f -name "gtr-marshal.h" -delete -print
%suse_update_desktop_file -r org.gnome.Gtranslator GNOME GTK Development Translation
%find_lang %{name}
%fdupes %{buildroot}/%{_prefix}

%license COPYING

%files doc
%doc %{_datadir}/gtk-doc/html/%{name}/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by