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
|
|
|
#
|
2011-06-06 16:17:59 +02:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-13 19:35:09 +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
|
|
|
|
Release: 7
|
2007-01-16 00:40:16 +01:00
|
|
|
Summary: A Build Tool to Update Desktop Files
|
2010-04-13 22:22:09 +02:00
|
|
|
License: GPLv2+
|
2007-01-16 00:40:16 +01:00
|
|
|
Group: Development/Tools/Building
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-09-19 19:05:27 +02:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:40:16 +01:00
|
|
|
Source: suse_update_desktop_file.sh
|
|
|
|
Source1: map-desktop-category.sh
|
2008-11-01 23:19:26 +01:00
|
|
|
Source2: macro
|
2011-06-06 16:17:59 +02:00
|
|
|
Source3: desktop.attr
|
2008-09-26 17:20:27 +02:00
|
|
|
Source100: mimetypes.prov
|
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
|
|
|
|
desktop files. It is used by the %suse_update_desktop_file rpm macro.
|
|
|
|
|
|
|
|
%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
|
|
|
|
install -m0755 %SOURCE0 %SOURCE1 %SOURCE100 $RPM_BUILD_ROOT%_rpmconfigdir
|
2008-11-01 23:19:26 +01:00
|
|
|
install -m0644 -D %SOURCE2 $RPM_BUILD_ROOT/etc/rpm/macros.%name
|
2011-06-06 16:17:59 +02:00
|
|
|
install -m0644 -D %SOURCE3 $RPM_BUILD_ROOT%_rpmconfigdir/fileattrs/desktop.attr
|
2007-01-16 00:40:16 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-06-06 16:17:59 +02:00
|
|
|
%_rpmconfigdir/*
|
2008-11-01 23:19:26 +01:00
|
|
|
/etc/rpm/*
|
2007-01-16 00:40:16 +01:00
|
|
|
|
2007-03-15 01:40:25 +01:00
|
|
|
%changelog
|