File cm-unicode.spec of Package cm-unicode

#
# spec file for package cm-unicode (Version 0.4.2)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           cm-unicode
BuildRequires:  xorg-x11-devel
%define	fontdir     /usr/share/fonts/truetype
License:        LPPL ..
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(ru;bg;el)
Version:        0.4.2
Release:        185
Url:            http://canopus.iacp.dvo.ru/~panov/cm-unicode/
# original source is gzipped.
Source0:        ftp://canopus.iacp.dvo.ru/pub/Font/cm_unicode/cm-unicode-0.4.2-otf.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Unicode Version of the Computer Modern Fonts

%description
Computer Modern Unicode fonts were converted from metafont sources
using [1] textrace and [2] pfaedit (030404). Their main purpose is to
create free good quality fonts for use in X Window System applications
supporting many languages. Currently the fonts contain glyphs from
Latin1 (Metafont ec, tc), Cyrillic (la, rx) and Greek (cbgreek when
available) code sets.

%prep
%setup -q -n cm-unicode-%{version}

%build

%install
mkdir -p $RPM_BUILD_ROOT%{fontdir}
install -c -m 644 *.otf $RPM_BUILD_ROOT%{fontdir}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files 
%defattr(-, root,root)
%doc Changes FAQ Fontmap.CMU INSTALL LICENSE README TODO fonts.scale
%dir %{fontdir}/
%{fontdir}/*

%changelog