# # spec file for package gtranslator # # Copyright (c) 2019 SUSE LINUX 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: gtranslator Version: 3.32.1 Release: 0 Summary: An enhanced gettext po file editor for the GNOME desktop License: GPL-3.0+ Group: Development/Tools/Other Url: https://wiki.gnome.org/Apps/Gtranslator Source: https://download.gnome.org/sources/gtranslator/3.32/%{name}-%{version}.tar.xz BuildRequires: fdupes BuildRequires: intltool BuildRequires: itstool BuildRequires: meson >= 0.46.0 BuildRequires: gettext-tools BuildRequires: yelp-tools BuildRequires: pkgconfig(libgda-5.0) BuildRequires: update-desktop-files BuildRequires: pkgconfig(glib-2.0) >= 2.36.0 BuildRequires: pkgconfig(gsettings-desktop-schemas) BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.20 BuildRequires: pkgconfig(gtksourceview-4) >= 4.0.2 BuildRequires: pkgconfig(iso-codes) BuildRequires: pkgconfig(json-glib-1.0) >= 1.2.0 BuildRequires: pkgconfig(libxml-2.0) >= 2.4.12 BuildRequires: pkgconfig(gspell-1) >= 1.2.0 BuildRequires: pkgconfig(gio-2.0) >= 2.36.0 BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(gtk-doc) Requires: gsettings-desktop-schemas Requires: iso-codes Requires: libgda-5_0-sqlite Recommends: %{name}-lang BuildRoot: %{_tmppath}/%{name}-%{version}-build %glib2_gsettings_schema_requires %description Gtranslator is a comfortable po file editor with many bells and whistles. It features many useful function which ease the work of translators of po files imminently. %lang_package %prep %setup -q %build %meson \ -D gtk_doc=true %meson_build %install %meson_install 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} %post /sbin/ldconfig %glib2_gsettings_schema_post %desktop_database_post %icon_theme_cache_post %postun /sbin/ldconfig %glib2_gsettings_schema_postun %desktop_database_postun %icon_theme_cache_postun %files %defattr(-,root,root,0755) %license COPYING %doc AUTHORS MAINTAINERS NEWS README.md THANKS %doc %{_datadir}/gtk-doc/html/%{name}/ %doc %{_mandir}/man?/* %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/*.gschema.xml %{_datadir}/icons/hicolor/*/apps/org.gnome.Gtranslator*.svg %{_datadir}/metainfo/org.gnome.Gtranslator.appdata.xml %{_datadir}/pixmaps/gtranslator-*.png %files lang -f %{name}.lang %changelog