2007-01-16 00:40:16 +01:00
|
|
|
#
|
2011-06-06 16:17:59 +02:00
|
|
|
# spec file for package update-desktop-files
|
2007-01-16 00:40:16 +01:00
|
|
|
#
|
2014-06-03 07:13:37 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:40:16 +01:00
|
|
|
#
|
2008-08-22 22:51:55 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:40:16 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-16 11:21:12 +01:00
|
|
|
|
2007-01-16 00:40:16 +01:00
|
|
|
Name: update-desktop-files
|
2011-06-06 16:17:59 +02:00
|
|
|
Version: 12.1
|
2011-12-13 12:07:15 +01:00
|
|
|
Release: 0
|
2007-01-16 00:40:16 +01:00
|
|
|
Summary: A Build Tool to Update Desktop Files
|
2011-12-13 12:07:15 +01:00
|
|
|
License: GPL-2.0+
|
2007-01-16 00:40:16 +01:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: suse_update_desktop_file.sh
|
|
|
|
Source1: map-desktop-category.sh
|
2008-11-01 23:19:26 +01:00
|
|
|
Source2: macro
|
2011-12-13 12:07:15 +01:00
|
|
|
Source4: brp-trim-desktop.sh
|
2010-10-11 16:18:57 +02:00
|
|
|
# This is not true technically, but we do that to make the rpm macros from
|
|
|
|
# desktop-file-utils available to most packages that ship a .desktop file
|
|
|
|
# (since they already have a update-desktop-files BuildRequires).
|
2011-06-06 22:24:27 +02:00
|
|
|
Requires: desktop-file-utils
|
2007-09-19 19:05:27 +02:00
|
|
|
BuildArch: noarch
|
2007-01-16 00:40:16 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides further translations and a shell script to update
|
2011-12-13 12:07:15 +01:00
|
|
|
desktop files. It is used by the %%suse_update_desktop_file rpm macro.
|
|
|
|
|
|
|
|
%package -n brp-trim-desktopfiles
|
|
|
|
Summary: Trim translations from .deskop files
|
2012-04-16 11:20:13 +02:00
|
|
|
Group: Development/Tools/Building
|
2011-12-13 12:07:15 +01:00
|
|
|
|
|
|
|
%description -n brp-trim-desktopfiles
|
|
|
|
Trim translations from all .deskop files found in build root
|
2007-01-16 00:40:16 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n . -D -T 0
|
|
|
|
mkdir %name
|
|
|
|
cd %name
|
|
|
|
|
2007-05-31 21:28:41 +02:00
|
|
|
%build
|
|
|
|
|
2007-01-16 00:40:16 +01:00
|
|
|
%install
|
2011-06-06 16:17:59 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%_rpmconfigdir
|
2011-12-15 13:48:54 +01:00
|
|
|
install -m0755 %SOURCE0 %SOURCE1 $RPM_BUILD_ROOT%_rpmconfigdir
|
2008-11-01 23:19:26 +01:00
|
|
|
install -m0644 -D %SOURCE2 $RPM_BUILD_ROOT/etc/rpm/macros.%name
|
2011-12-13 12:07:15 +01:00
|
|
|
install -m0755 -D %SOURCE4 $RPM_BUILD_ROOT/usr/lib/rpm/brp-suse.d/brp-70-trim-desktopfiles
|
2007-01-16 00:40:16 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-06-06 16:17:59 +02:00
|
|
|
%_rpmconfigdir/*
|
2011-12-13 12:07:15 +01:00
|
|
|
%exclude %_rpmconfigdir/brp-suse.d
|
2008-11-01 23:19:26 +01:00
|
|
|
/etc/rpm/*
|
2007-01-16 00:40:16 +01:00
|
|
|
|
2011-12-13 12:07:15 +01:00
|
|
|
%files -n brp-trim-desktopfiles
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_rpmconfigdir/brp-suse.d
|
|
|
|
|
2007-03-15 01:40:25 +01:00
|
|
|
%changelog
|