Accepting request 587471 from home:lnussel:branches:X11:common:Factory

- create separate subpackage that extracts translations from desktop
  files but does not actually strip them. Needed for SLE.

OBS-URL: https://build.opensuse.org/request/show/587471
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/update-desktop-files?expand=0&rev=62
This commit is contained in:
Ludwig Nussel 2018-03-15 10:57:09 +00:00 committed by Git OBS Bridge
parent fe6486147e
commit 70105596c9
2 changed files with 31 additions and 3 deletions

View File

@ -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

View File

@ -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