File lmfonts.spec of Package lmfonts
#
# spec file for package lmfonts
#
# Copyright (c) 2011 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: lmfonts
Version: 1.106
Release: 1
Group: System/X11/Fonts
Summary: Latin Modern fonts from CTAN
Source1: lmfonts.tar.xz
Source2: GUST-FONT-LICENSE.txt
License: GUST Font License
Url: http://www.ctan.org/tex-archive/fonts/lm/
BuildRequires: xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%define fod %_datadir/fonts/truetype
%description
The Latin Modern fonts are derived from the famous Computer Modern
fonts designed by Donald E. Knuth and first published by the American
Matematical Society (AMS) in 1997. One of the main extensions is the
addition of an extensive set of diacritical characters, covering many
scripts based on the Latin character set.
%prep
%setup -Tca1
cp "%{S:2}" .;
%build
%install
c="%buildroot/%fod";
install -dm0755 "$c";
for i in lm/*; do
mv -f "$i" "$c/";
done;
%post
if [ -x /sbin/SuSEconfig ]; then
SuSEconfig --module fonts;
fi;
%postun
if [ -x /sbin/SuSEconfig ]; then
SuSEconfig --module fonts;
fi;
%files
%defattr(-,root,root)
%fod
%doc GUST*
%changelog