File tv-fonts.spec of Package tv-fonts

#
# spec file for package tv-fonts (Version 1.1)
#
# 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:           tv-fonts
%if %suse_version > 910
BuildRequires:  freetype2 xorg-x11 xorg-x11-devel
%else
BuildRequires:  XFree86 XFree86-devel freetype2
%endif
%define	fontdir     /usr/share/fonts/misc
License:        MIT
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Version:        1.1
Release:        431
Summary:        Fonts for TV Applications
Source:         %{name}-%{version}.tar.bz2
BuildArch:      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.

%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
openSUSE Build Service is sponsored by