File lklug.spec of Package lklug

#
# spec file for package lklug (Version 0.3)
#
# 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:           lklug
%if %suse_version > 910
BuildRequires:  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-si
Provides:       locale(si)
Autoreqprov:    on
Summary:        "Lanka Linux User Group" OpenType font for Sinhala
Version:        0.3
Release:        1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
URL:            http://www.lug.lk
# The font file in TrueType format can be downloaed at:
# http://sinhala.sourceforge.net/files/lklug.ttf
# CVS, which contains the SFD sources:
# cvs -d:pserver:anonymous@sinhala.cvs.sourceforge.net:/cvsroot/sinhala login 
# cvs -d:pserver:anonymous@sinhala.cvs.sourceforge.net:/cvsroot/sinhala co sinhala/fonts
# GPL Copyright file is here:
# cvs -d:pserver:anonymous@sinhala.cvs.sourceforge.net:/cvsroot/sinhala co sinhala/COPYING
Source0:        lklug.ttf.bz2
Source1:        COPYING
Source2:        README.SUSE

%description
"Lanka Linux User Group" OpenType font for Sinhala copyright 2004 by
Yannis Haralambous.  OTF tables added by Anuradha Ratnaweera an d
Harshani Devadithya, and modified by Harshula Jayasuriya. "Kunddaliya"
glyph Copyright (c) 2006 Harshula Jayasuriya



Authors:
--------
    Lanka Linux User Group <linux@lug.lk>
    Anuradha Ratnaweer <aanuradha@gnu.org>
    Harshula Jayasuriya <harshula@gmail.com>
    Harshani Devadithya
    Yannis Haralambous

%prep
%setup -q -T -c -n %{name}
cp $RPM_SOURCE_DIR/lklug.ttf.bz2 .
bunzip2 lklug.ttf.bz2
cp $RPM_SOURCE_DIR/COPYING .
cp $RPM_SOURCE_DIR/README.SUSE . 

%build

%install
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/
install -m 644 *.ttf $RPM_BUILD_ROOT%{ttf_fontdir}

%clean

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%files
%defattr(-, root,root)
%doc COPYING README.SUSE
%dir %{ttf_fontdir}
%{ttf_fontdir}/*.ttf

%changelog
* Tue Jun 12 2007 - mfabian@suse.de
- Add GPL COPYRIGHT file from CVS and a README.SUSE explaining
  where to get the copyright file and the sources of the font.
* Tue Jun 12 2007 - mfabian@suse.de
- new package: lklug 0.3 (Font for Sinhala).
openSUSE Build Service is sponsored by