File fetchmsttfonts.spec of Package fetchmsttfonts

#
# spec file for package fetchmsttfonts (Version 11.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           fetchmsttfonts
License:        GPL v2 or later
Group:          System/X11/Fonts
Summary:        Helper package to run the fetchmsttfonts script
Version:        11.1
Release:        5.<RELEASE2>
Source0:        fetchmsttfonts.sh.in
#these stop the patch from pulling in the package
#Provides:       pullin-msttf-fonts = 11.1
#Obsoletes:      pullin-msttf-fonts <= 11.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       cabextract curl fonts-config awk mktemp coreutils fonts-config
BuildArch:      noarch

%description
This package contains the fetchmsttfonts helper script, which on
running retrieves and unpacks the freely available MS Truetype fonts.



Authors:
--------
    Marcus Meissner <meissner@suse.de>
    Stefan Dirsch <sndirsch@suse.de>

%prep
cp %{SOURCE0} .

%build
sed -e 's,__VERSION__,%version,' -e 's,__RELEASE__,%release,' -e 's,__NAME__,%name,' fetchmsttfonts.sh.in > fetchmsttfonts.sh

%install
%suse_install_update_script fetchmsttfonts.sh
%{nil}
#
mkdir -p %buildroot/var/adm/update-messages
touch %buildroot/var/adm/update-messages/%name-%version-%release-1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
/var/adm/update-scripts/*
%ghost /var/adm/update-messages/%name-%version-%release-1

%changelog
openSUSE Build Service is sponsored by