File fonts-thryomanes.spec of Package fonts-thryomanes

#
# spec file for package fonts-thryomanes (Version 1.2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           fonts-thryomanes
%if %suse_version > 910
BuildRequires:  unzip xorg-x11-devel
%else
BuildRequires:  XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define	ttf_fontdir     /usr/share/fonts/truetype
%else
%define	ttf_fontdir     /usr/X11R6/lib/X11/fonts/truetype
%endif
License:        GNU General Public License (GPL)
Group:          System/X11/Fonts
Provides:       scalable-font-el, scalable-font-ru, scalable-font-bg
Autoreqprov:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(bg;el;ru)
Version:        1.2
Release:        39
URL:            http://www.io.com/~hmiller/lang/
Source:         Thryomanes12.zip
Source1:        copyright
BuildArchitectures: noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Greek TrueType Fonts

%description
These fonts include a complete set of Cyrillic letters and improved
italic characters.



Authors:
--------
    Herman Miller <hmiller@io.com>

%prep
unzip $RPM_SOURCE_DIR/Thryomanes12.zip

%build

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/
install -c -m 644 *.TTF $RPM_BUILD_ROOT%{ttf_fontdir}
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/fonts-thryomanes
install -m 644 gpl.txt \
  $RPM_BUILD_ROOT/%{_defaultdocdir}/fonts-thryomanes
install -m 644 $RPM_SOURCE_DIR/copyright \
  $RPM_BUILD_ROOT/%{_defaultdocdir}/fonts-thryomanes

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files 
%defattr(-, root,root)
%doc %{_defaultdocdir}/*
%dir %{ttf_fontdir}/
%{ttf_fontdir}/*.TTF

%changelog
* Thu Mar 29 2007 - dmueller@suse.de
- add unzip to BuildRequires
* Tue Aug 08 2006 - mfabian@suse.de
- move fonts to /usr/share/fonts because of the move to Xorg X11R7.
* Tue Jun 20 2006 - mfabian@suse.de
- update to 1.2.
* Wed Mar 01 2006 - mfabian@suse.de
- add "Provides: locale(bg;el;ru)".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004 - mfabian@suse.dec
- use new macro "%%run_suseconfig_fonts".
* Mon Sep 13 2004 - mfabian@suse.de
- Bugzilla #45156: add "Provides: scalable-font-el,
  scalable-font-ru, scalable-font-bg".
* Thu Mar 18 2004 - mfabian@suse.de
- use %%suseconfig_fonts_prereq
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Mon Feb 23 2004 - hmacht@suse.de
- building as non-root
* Wed Jun 18 2003 - sndirsch@suse.de
- created package
openSUSE Build Service is sponsored by