diff --git a/ghostwriter.changes b/ghostwriter.changes index 81cb1bf..3af8b1d 100644 --- a/ghostwriter.changes +++ b/ghostwriter.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 19 16:58:13 UTC 2017 - mpluskal@suse.com + +- Split lang subpackage and generate/install translations +- Suggest MultiMarkdown-5 as well + ------------------------------------------------------------------- Thu Sep 8 01:06:00 UTC 2016 - luke.nukem.jones@gmail.com diff --git a/ghostwriter.spec b/ghostwriter.spec index addd7a1..c83c67c 100644 --- a/ghostwriter.spec +++ b/ghostwriter.spec @@ -1,7 +1,7 @@ # # spec file for package ghostwriter # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 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 @@ -26,6 +26,7 @@ Url: https://wereturtle.github.io/ghostwriter Source: https://github.com/wereturtle/ghostwriter/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme +BuildRequires: libqt5-linguist BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(Qt5Concurrent) @@ -41,6 +42,8 @@ Requires(post): hicolor-icon-theme Requires(post): update-desktop-files Requires(postun): hicolor-icon-theme Requires(postun): update-desktop-files +Recommends: %{name}-lang +Suggests: MultiMarkdown-5 Suggests: cmark Suggests: discount Suggests: pandoc @@ -51,16 +54,20 @@ markup format. For more information about Markdown, please visit John Gruber’s website at http://www.daringfireball.net. ghostwriter provides a relaxing, distraction-free writing environment. +%lang_package + %prep %setup -q %build +lrelease-qt5 %{name}.pro %qmake5 PREFIX=%{_prefix} %make_jobs %install %qmake5_install %suse_update_desktop_file -r %{name} TextEditor +%find_lang %{name} --with-qt %post %desktop_database_post @@ -74,7 +81,6 @@ provides a relaxing, distraction-free writing environment. %defattr(-,root,root) %doc README.md CREDITS.md COPYING %{_bindir}/ghostwriter -%{_datadir}/ghostwriter %dir %{_datadir}/appdata %{_datadir}/appdata/ghostwriter.appdata.xml %{_datadir}/applications/ghostwriter.desktop @@ -82,4 +88,9 @@ provides a relaxing, distraction-free writing environment. %{_mandir}/man1/ghostwriter.1%{ext_man} %{_datadir}/pixmaps/ghostwriter.xpm +%files lang -f %{name}.lang +%defattr(-,root,root) +%dir %{_datadir}/ghostwriter +%dir %{_datadir}/ghostwriter/translations + %changelog