File tv-fonts.spec of Package tv-fonts
#
# spec file for package tv-fonts (Version 1.1)
#
# Copyright (c) 2006 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: tv-fonts
%if %suse_version > 910
BuildRequires: freetype2 xorg-x11 xorg-x11-devel
%else
BuildRequires: XFree86 XFree86-devel freetype2
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/misc
%else
%define fontdir /usr/X11R6/lib/X11/fonts/misc
%endif
License: X11/MIT
Group: System/X11/Fonts
Autoreqprov: on
PreReq: %suseconfig_fonts_prereq
Version: 1.1
Release: 227
Summary: Fonts for TV Applications
Source: %{name}-%{version}.tar.bz2
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package includes some X Window System bitmap fonts for TV
applications: large fonts frequently used in on-screen displays,
teletext font, and more.
Authors:
--------
Gerd Knorr <kraxel@suse.de>
%prep
%setup -q
%build
make CFLAGS="$RPM_OPT_FLAGS"
%install
test "%{buildroot}" != "" -a "%{buildroot}" != "/" &&\
rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{fontdir}
cp -v *.pcf.gz %{buildroot}%{fontdir}
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-,root,root)
%{fontdir}/
%clean
test "%{buildroot}" != "" -a "%{buildroot}" != "/" &&\
rm -rf "%{buildroot}"
%changelog -n tv-fonts
* Fri Aug 11 2006 - sndirsch@suse.de
- added /usr/share/fonts/misc directory to filelist to fix build
* Wed Aug 09 2006 - mfabian@suse.de
- move fonts to /usr/share/fonts/misc
(openSUSE 10.2 will use X11R7).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jun 23 2005 - meissner@suse.de
- use RPM_OPT_FLAGS.
* Fri Dec 03 2004 - mfabian@suse.de
- use new macro "%%run_suseconfig_fonts".
* Fri Mar 19 2004 - mfabian@suse.de
- add BuildArchitectures: noarch
- use %%suseconfig_fonts_prereq
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Sun Nov 02 2003 - ro@suse.de
- updated neededforbuild
- don't build as root
* Tue Apr 15 2003 - kraxel@suse.de
- updated to version 1.1.
* Mon Nov 11 2002 - ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
* Mon Jun 17 2002 - kraxel@suse.de
- initial release.