From c6b15ee9951f88774cc3054fd00079590321ad475bba43810173376b08d312b4 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Wed, 5 Jun 2019 11:34:49 +0000 Subject: [PATCH] Accepting request 705505 from home:wsxy162 - 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 - Conditionalize pkgconfig(gdict-1.0) BuildRequires, only available on older versions of openSUSE, gnome-dictionary 3.26.0 made this symbol private. - Inject -Wno-error=format-nonliteral into CFLAGS: fix build with GCC 7 (boo#1041213). - Own appdata dir on older versions of openSUSE. - Update to version 2.91.7: + Misc bugfixes. + Updated translations. - Drop gtranslator-gtkspell3.patch: fixed upstream. - Drop gnome-common BuildRequires and call to autoreconf, as we no longer carry any patches. - Add missing libgda-5_0-sqlite runtime dependency. Fix bnc#780249. - Port to gtkspell3: + Add gtranslator-gtkspell3.patch + Replace pkgconfig(gtkspell-3.0) BuildRequires with pkgconfig(gtkspell3-3.0). + Add gnome-common BuildRequires and call to autoreconf, as above patch touches the build system. - Update to version 2.91.6: + Misc bugfixes. + Updated translations. - Drop gtranslator-gdl362.patch: fixed upstream. - Replace gnome-doc-utils-devel BuildRequires with yelp-tools, following upstreams port to the new documentation infrastructure. - Add gtranslator-gdl362.patch: Fix build with gdl 3.6.2. - Update to version 2.91.5: + Add/update X-Generator header in PO file + Misc bug fixes + Updated translations - No longer install anything in %{_datadir}/pixmaps/%{name}/. - Update to version 2.91.4: + Add app menu + Move libgtranslator-private library to pkglibdir + Better handling of the table message + Update TM when a new po file is loaded + Try using Content-Type charset if the file is not UTF-8 + Remove ok/cancel buttons to add new comments + Fix a crash when dropping an item to the toolbar + Misc bugfixes + Updated translations. - Update to version 2.91.3: + Port to GResource + Misc bugfixes + Updated translations. - Update to version 2.91.2: + Use new libpeas API + Complete list of plural forms + Misc bugfixes + Updated translations. - Update to version 2.91.1: + Make translation memory a standalone plugin + Misc bugfixes + Updated translations. - Update to version 2.90.8: + Make it build with latest GTK+. + Add support for gda 5. + Misc bugfixes. + Updated translations. - Drop patches fixed upstream: + gtranslator-libgda-5.0.patch + gtranslator-gtkspell3.patch - Remove gnome-common BuildRequires and gnome-autogen.sh call: we don't carry any patches touching the build system anymore. - Update to version 2.90.7: + Relicense some files as GPLv3+. + Don't normalize translations stored in the translation memory. + Update translation. - Update to version 2.90.6: + Misc bugfixes. + Updated translations. - Rebase gtranslator-libgda-5.0.patch and gtranslator-gtkspell3.patch. - Change --with-gtkspell configure option to --with-gtkspell3, following upstream change. - Add iso-codes Requires since the iso-codes data is used at runtime. - Add support spell check with gtkspell3. + Add gtranslator-gtkspell3.patch: add support for gtkspell3. + Change pkgconfig(gtkspell-2.0) BuildRequires to pkgconfig(gtkspell-3.0) so we can build with the new gtkspell. - Add optional port to libgda 5.0: + Add gtranslator-libgda-5.0.patch: add support for libgda-5.0 with a new --with-gda parameter. + Add gnome-common BuildRequires and call to gnome-autogen.sh, needed for the patch to be taken into account. + Replace pkgconfig(libgda-4.0) BuildRequires with libgda-devel: this allows us to use libgda-4.0 and libgda-5.0 without knowledge of what version is in the repository. + Pass --with-gda=4.0|5.0 to configure: the version (4.0 or 5.0) is extracted from the rpm database, based on the libgda-devel package that has been installed. - Update to version 2.90.5: + Misc bugfixes + Updated translations. - Update to version 2.90.4: + Misc bugfixes - Changes from version 2.90.3: + Put the gdl container inside the tab + Add a tab activatable extension point - Changes from version 2.90.2: + UI cleanup - Changes from version 2.90.1: + Automatize profile generation + Fix preferences dialog space + Remove interface tab from preferences dialog + Fix remaining issues in the gtk+ 3 port. - Changes from version 2.90.0: + Port to gtk+ 3 + Port to libpeas + Added support for python plugins + Ported charmap to python + Remove --window-new command line option + Port to gsettings + Merge insert-tags plugin into insert-params plugin + Port to GtkApplication + Misc Bugfixes + Updated translations. - Note that gtkspell support is disabled for now because there's no gtk3-powered gtkspell. - Change BuildRequires to pkgconfig()-style and move to GNOME 3: + Old ones: gdl-devel, glib2-devel, gnome-utils-devel, gtk2-devel, gtksourceview-devel, gtkspell-devel, libgda-devel, libxml2-devel. + New ones: gdict-1.0, gdl-3.0, glib-2.0, gtk+-3.0, gtksourceview-3.0, gtkspell-2.0, libgda-4.0, libxml-2.0. - Drop no longer needed BuildRequires: gucharmap-devel, libsoup-devel, libunique-devel. - Add new BuildRequires: pkgconfig(iso-codes), pkgconfig(json-glib-1.0, pkgconfig(libpeas-1.0), pkgconfig(libpeas-gtk-1.0). - Drop gtranslator-disable-update-db.patch: no longer required. - Drop gnome-common BuildRequires, gnome-autogen.sh call during build and --disable-update-mimedb configure flag: obsoleted. - Move .gir file to devel subpackage. - Add call to ldconfig in %post/%postun scriptlet because of the new library in the package. - Added support for translation-update-upstream. - Call relevant macros in %post/%postun: + %desktop_database_post/postun because the package ships at least one desktop file. + %icon_theme_cache_post/postun because the package ships themed icons. - Pass %{?no_lang_C} to %find_lang so that english documentation can be packaged with the program, and not in the lang subpackage. - Add Recommends for lang subpackage. - Update to version 1.9.13: + Enable use of local mirrors of open-tran.eu + Adapt the OpenTran plugin to the new open-tran.eu API + Misc Bugfixes + Updated translations. - Add gtranslator-disable-update-db.patch: add a --disable-update-mimedb configure option to not run update-desktop-database on install. - Pass --disable-update-mimedb to configure. - Update to version 1.9.12: + Port to GSettings + Make it work with GSEAL enabled + Misc Bugfixes + Updated translations. - Remove gconf schemas handling: + remove gconf2-devel BuildRequires. + remove %gconf_schemas_prereq, %find_gconf_schemas and schemas-related scriptlets. - Use %glib2_gsettings_schema_* macros for GSettings schemas. - Add pkgconfig(gsettings-desktop-schemas) BuildRequires and gsettings-desktop-schemas Requires, since the schemas are needed at runtime too. - Fix license: gtranslator is GPLv3+, not GPLv2+. Fix bnc#595680. - Remove unneeded libdb-4_5-devel BuildRequires: it was needed for the old memory backend. - Remove unneeded libneon-devel BuildRequires: this is replaced by libsoup now. - Remove subversion-devel BuildRequires: the subversion plugin is gone. - Update to version 1.9.11: + Add the option to remove entries from the memory translation + New memory translation backend using libgda - Changes from version 1.9.10: + Factored out the tab label + Make the translation memory always visible + Updated translations. - Add libgda-devel BuildRequires. - Update to version 1.9.9: + Add Profile quick selector + Rewriting profile manager to use GtrProfileManager + Converted GtrApplication into an UniqueAPP using libunique + Misc bugfixes + Updated translations. - Add libunique-devel BuildRequires. - Update to version 1.9.8: + Refactor methods and file names from gtranslator to gtr + Modernize autotools configuration + Added new tango icons and logo + Removed Subversion plugin + Misc Bugfixes + Updated translations. - Change group from Development/Tools to Development/Tools/Other to fix rpmlint warning. - Update to version 1.9.7: + Show percentage of translated messages + Fixed several compiler warnings + Update toolbar editor + Make header inherit from GtranslatorMsg + Ported gtranslator from MessageArea to GtkInfoBar + Misc Bugfixes + Updated translations. - Remove renaming of sr@Latn locale to sr@latin. - Update to version 1.9.6: + Adapted gtranslator in order to work on Windows + bgo#579775 - Fixed format string attack + bgo#582430 - Added some header files + bgo#555672 - Fixed CRITICAL: editor_create_item_from_name + bgo#557096 - Fixed GtkSpinButton problem changing to GtkBuilder + bgo#569061 - Displaying an error message before saving a read only file + bgo#569062 - Use a "standard" tabs menu instead of Go->Next/Prev File + bgo#569068 - Made more clear the message in the status bar + bgo#571497 - Fixed crash on first-time startup with po-file as argument + bgo#575128 - Removed deprecated GTK+ symbols + bgo#579775 - Fixed Format string attack danger + bgo#582430 - Some of the header files weren't included in the source code + bgo#583961 - Fixed to build with gdl 2.27.2 + bgo#584692 - Show the next message of the one you are editing + bgo#591594 - Fixed problem that made Edit header only made effect when you close gtranslator + bgo#592210 - Removed duplicated define in configure.ac + bgo#592214 - Fixed some gcc warnings + bgo#592215 - Wrong arguments to gtranslator_statusbar_flash_message() + bgo#592226 - Fixed Error widget built wrongly + bgo#592227 - Source code did not working due to a wrong widget name + bgo#569054 - Fixed empty line insertion before translator email in header + Updated translations. - Drop gtranslator-gdl-2.27.patch and gtranslator-profile.patch: fixed upstream. - Add gtranslator-gdl-2.27.patch to fix build with latest gdl. - Update gtranslator-profile.patch to fix more build issues. - Add BuildRequires for features: gnome-utils-devel, gtkspell-devel, gucharmap-devel, libneon-devel, libsoup-devel, subversion-devel - Pass --disable-static, --with-gtkspell and --with-dictionary to configure, and remove --enable-mime-bind and --with-gconf that don't exist. - Clean up file list a bit; do not ship help files twice. - Initial package. OBS-URL: https://build.opensuse.org/request/show/705505 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/gtranslator?expand=0&rev=64 --- gtranslator-2.91.7.tar.xz | 3 -- gtranslator-3.32.1.tar.xz | 3 ++ gtranslator.changes | 37 +++++++++++++++ gtranslator.spec | 98 +++++++++++++-------------------------- 4 files changed, 73 insertions(+), 68 deletions(-) delete mode 100644 gtranslator-2.91.7.tar.xz create mode 100644 gtranslator-3.32.1.tar.xz 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