File ctan-latinmodern-fonts.spec of Package ctan-latinmodern-fonts

#
# spec file for package ctan-latinmodern-fonts
#
# Copyright (c) 2012 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:           ctan-latinmodern-fonts
Version:        2.004
Release:        0
Summary:        Latin Modern Fonts from CTAN/GUST
License:        LPPL-1.3c
Group:          System/X11/Fonts
Url:            http://www.ctan.org/tex-archive/fonts/lm/
Source0:        lm-%{version}-otf.tar.bz2
Source2:        GUST-FONT-LICENSE.txt
Source3:        README-Latin-Modern.txt
Source4:        strip-source.pl
BuildRequires:  fontpackages-devel
%reconfigure_fonts_prereq
Obsoletes:      lmfonts < %{version}
Provides:       lmfonts = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%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 -Tcq
sed -i 's/.$//' "%{SOURCE2}"
cp "%{SOURCE2}"  "%{SOURCE3}" .;

%build

%install
c="%{buildroot}/%_ttfontsdir";
install -dm0755 "$c";
pushd "$c/";
tar -xf "%{SOURCE0}";
popd;

%reconfigure_fonts_scriptlets

%files
%defattr(-,root,root)
%_ttfontsdir
%doc *.txt

%changelog
openSUSE Build Service is sponsored by