File cm-unicode.spec of Package cm-unicode
#
# spec file for package cm-unicode (Version 0.4.2)
#
# Copyright (c) 2008 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
%if %suse_version > 910
BuildRequires: xorg-x11-devel
%else
BuildRequires: XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/truetype
%else
%define fontdir /usr/X11R6/lib/X11/fonts/truetype
%endif
License: LaTeX Public License (LPPL)
Group: System/X11/Fonts
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(ru;bg;el)
Version: 0.4.2
Release: 177
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.
Authors:
--------
Andrey V. Panov <panov@canopus.iacp.dvo.ru>
%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
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && 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
* Tue Aug 08 2006 mfabian@suse.de
- move fonts to /usr/share/fonts because of the move to Xorg X11R7.
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(ru;bg;el)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Sep 30 2005 mfabian@suse.de
- update to 0.4.2.
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Thu Mar 18 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Sat Feb 14 2004 mfabian@suse.de
- update to 0.1.2.
- don't build as root
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Thu Aug 28 2003 mfabian@suse.de
- new package: cm-unicode 0.1.