diff --git a/update-desktop-files.changes b/update-desktop-files.changes index 9f30bd9..43b12a4 100644 --- a/update-desktop-files.changes +++ b/update-desktop-files.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Mar 15 10:53:08 UTC 2018 - lnussel@suse.de + +- create separate subpackage that extracts translations from desktop + files but does not actually strip them. Needed for SLE. + ------------------------------------------------------------------- Fri Jul 14 13:15:57 UTC 2017 - fvogt@suse.com diff --git a/update-desktop-files.spec b/update-desktop-files.spec index aa2ca61..29b3353 100644 --- a/update-desktop-files.spec +++ b/update-desktop-files.spec @@ -1,7 +1,7 @@ # # spec file for package update-desktop-files # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,7 +17,7 @@ Name: update-desktop-files -Version: 12.1 +Version: 84.87 Release: 0 Summary: A Build Tool to Update Desktop Files License: GPL-2.0+ @@ -44,15 +44,31 @@ Provides: brp-trim-desktop = %{version} Obsoletes: brp-trim-desktop < %{version} Requires: awk Requires: libxslt-tools +Conflicts: brp-extract-translations %description -n brp-trim-translations -Trim translations from all desktop files, polkit actions, mimetype descriptions +Extract and trim translations from all desktop files, polkit +actions, mimetype descriptions and AppStream metainfo found in +build root + +%package -n brp-extract-translations +Summary: Extract translations from desktop files, polkit actions, mimetype descriptions and AppStream metainfo +Group: Development/Tools/Building +Provides: brp-trim-desktop = %{version} +Obsoletes: brp-trim-desktop < %{version} +Requires: libxslt-tools +Conflicts: brp-trim-translations + +%description -n brp-extract-translations +Extract translations from all desktop files, polkit actions, mimetype descriptions and AppStream metainfo found in build root %prep %setup -q -n . -D -T 0 mkdir %name cd %name +# supi hack +sed -e '/awk/d' < %SOURCE4 > brp-extract-translations %build @@ -61,6 +77,7 @@ mkdir -p $RPM_BUILD_ROOT%_rpmconfigdir install -m0755 %SOURCE0 %SOURCE1 $RPM_BUILD_ROOT%_rpmconfigdir install -m0644 -D %SOURCE2 $RPM_BUILD_ROOT/etc/rpm/macros.%name install -m0755 -D %SOURCE4 $RPM_BUILD_ROOT/usr/lib/rpm/brp-suse.d/brp-70-trim-translations +install -m0755 -D %name/brp-extract-translations $RPM_BUILD_ROOT/usr/lib/rpm/brp-suse.d/brp-70-extract-translations %files %defattr(-,root,root) @@ -73,4 +90,9 @@ install -m0755 -D %SOURCE4 $RPM_BUILD_ROOT/usr/lib/rpm/brp-suse.d/brp-70-trim-tr %dir %_rpmconfigdir/brp-suse.d/ %_rpmconfigdir/brp-suse.d/brp-70-trim-translations +%files -n brp-extract-translations +%defattr(-,root,root) +%dir %_rpmconfigdir/brp-suse.d/ +%_rpmconfigdir/brp-suse.d/brp-70-extract-translations + %changelog