diff --git a/gtranslator-2.91.7.tar.xz b/gtranslator-2.91.7.tar.xz deleted file mode 100644 index 2b5f445..0000000 --- a/gtranslator-2.91.7.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b25b45b33e4aa856953b4a5da1d98bd51a343ddb479aeae3934bfe0c3651f9d -size 2835836 diff --git a/gtranslator-3.32.1.tar.xz b/gtranslator-3.32.1.tar.xz new file mode 100644 index 0000000..2799218 --- /dev/null +++ b/gtranslator-3.32.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1b37b0436684eb3079916eff7b6eeac2cd51ebbf8d2d6f35b5480ca0391b4da +size 2771008 diff --git a/gtranslator.changes b/gtranslator.changes index 9101c54..5e8e180 100644 --- a/gtranslator.changes +++ b/gtranslator.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Sat May 25 15:47:25 UTC 2019 - Dingzhong Chen +- Clean up spec file + + Update Summary & Url + + Switch to Meson build system + +- Update to version 3.32.0: + + Stable release, updated translations + +- Update to version 3.31.90: + + XML language syntax for the source view + + Fix msg status management + + Use theme_fg_color for translated texts + + Better prj id version default header + + Header with default values when doesn't exists + + codeview: Recover codeview plugin + + Show context in the original message bar + + List of languages in a config file instead iso-codes + + Find & replace and copy text to shortcuts window + + Ctrl+space to copy original text into translated + + Native File Chooser for the translation memory + +- Update to version 3.30.1: + + Fix locale lookup dir + + Added itstool dependency to Meson + + Fix loading help + + New interface image in help + + Update Brazilian Portuguese translation + + Update Polish translation + +- Update to version 3.30.0: + + Full interface redesign to acomplish gnome 3 HIG + + Fix bug in find & replace that marks all fuzzy as translated + + Autofill profile based on language + + A lot of bug fixes + + Remove plugin system + ------------------------------------------------------------------- Thu Sep 14 12:11:48 UTC 2017 - zaitor@opensuse.org diff --git a/gtranslator.spec b/gtranslator.spec index cd611c5..45576f2 100644 --- a/gtranslator.spec +++ b/gtranslator.spec @@ -1,7 +1,7 @@ # # spec file for package gtranslator # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -17,34 +17,32 @@ Name: gtranslator -Version: 2.91.7 +Version: 3.32.1 Release: 0 -Summary: A GNOME po file editor with many bells and whistles +Summary: An enhanced gettext po file editor for the GNOME desktop License: GPL-3.0+ Group: Development/Tools/Other -Url: http://gtranslator.sourceforge.net -Source: http://download.gnome.org/sources/gtranslator/2.91/%{name}-%{version}.tar.xz +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 -# Not using a pkgconfig() BuildRequires, to allow building against libgda 4.0 and 5.0 -BuildRequires: libgda-devel -BuildRequires: translation-update-upstream +BuildRequires: pkgconfig(libgda-5.0) BuildRequires: update-desktop-files -%if 0%{?suse_version} <= 1320 -BuildRequires: pkgconfig(gdict-1.0) -%endif -BuildRequires: pkgconfig(gdl-3.0) >= 3.6.0 -BuildRequires: pkgconfig(glib-2.0) >= 2.32.0 +BuildRequires: pkgconfig(glib-2.0) >= 2.36.0 BuildRequires: pkgconfig(gsettings-desktop-schemas) -BuildRequires: pkgconfig(gtk+-3.0) >= 3.4.2 -BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.0.0 -BuildRequires: pkgconfig(gtkspell3-3.0) >= 3.0.0 +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) -BuildRequires: pkgconfig(libpeas-1.0) >= 1.2.0 -BuildRequires: pkgconfig(libpeas-gtk-1.0) +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 @@ -53,43 +51,25 @@ 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. - -%package devel -Summary: A GNOME po file editor with many bells and whistles -Group: Development/Tools/Other - -%description devel -gtranslator is a comfortable po file editor with many bells and whistles. +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 -translation-update-upstream %build -export CFLAGS="%{optflags} -Wno-error=format-nonliteral" -%configure \ - --disable-static \ - --disable-scrollkeeper \ - --with-gtkspell3 \ - --with-dictionary \ - --with-gda=$(rpm -q --provides $(rpm -q --whatprovides libgda-devel) | grep "pkgconfig(libgda-[45].0)" | cut -b 18-20) -%{__make} %{?_smp_mflags} +%meson \ + -D gtk_doc=true +%meson_build %install -%makeinstall -find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print -%suse_update_desktop_file %{name} -%find_lang %{name} %{?no_lang_C} -%fdupes %{buildroot} - -%clean -%{__rm} -rf %{buildroot} +%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 @@ -104,30 +84,18 @@ find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print %icon_theme_cache_postun %files -%defattr(-, root, root, 0755) -%doc AUTHORS ChangeLog COPYING NEWS README THANKS -%doc %{_datadir}/help/C/%{name}/ +%defattr(-,root,root,0755) +%license COPYING +%doc AUTHORS MAINTAINERS NEWS README.md THANKS +%doc %{_datadir}/gtk-doc/html/%{name}/ %doc %{_mandir}/man?/* %{_bindir}/%{name} -%{_libdir}/%{name}/ %{_datadir}/%{name}/ -# own dir on older version of openSUSE -%if 0%{?suse_version} < 1320 -%dir %{_datadir}/appdata/ -%endif -%{_datadir}/appdata/gtranslator.appdata.xml %{_datadir}/applications/*.desktop %{_datadir}/glib-2.0/schemas/*.gschema.xml -%{_datadir}/icons/hicolor/*/apps/gtranslator.* -# .gir file goes to -devel package -%exclude %{_datadir}/%{name}/gir-1.0/ - -%files devel -%defattr(-, root, root) -%{_includedir}/gtranslator-3.0/ -%{_libdir}/pkgconfig/gtranslator.pc -%doc %{_datadir}/gtk-doc/html/%{name}/ -%{_datadir}/%{name}/gir-1.0/ +%{_datadir}/icons/hicolor/*/apps/org.gnome.Gtranslator*.svg +%{_datadir}/metainfo/org.gnome.Gtranslator.appdata.xml +%{_datadir}/pixmaps/gtranslator-*.png %files lang -f %{name}.lang