File unfonts.spec of Package unfonts

#
# spec file for package unfonts (Version 1.0.20040813)
#
# Copyright (c) 2009 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:           unfonts
%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:        GPL v2 or later
Group:          System/X11/Fonts
Provides:       scalable-font-ko
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(ko)
Version:        1.0.20040813
Release:        181
Url:            http://kldp.net/projects/unfonts/
Source0:        http://kldp.net/download.php/1425/un-fonts-core-1.0.tar.bz2
Source1:        http://kldp.net/download.php/1435/un-fonts-extra-1.0.1.tar.bz2
Source10:       update-archive
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Korean TrueType fonts

%description
Korean TrueType fonts



Authors:
--------
    KoaungHi Un
    Won-Kyu Park <wkpark@chem.skku.ac.kr>

%prep
%setup -q -T -n %{name} -c %{name} -a 0 -a 1
mv un-fonts/* .

%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}/

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%post
%run_suseconfig_fonts -c

%postun
%run_suseconfig_fonts -c

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

%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(ko)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts -c"
* Mon Sep 13 2004 mfabian@suse.de
- Bugzilla #45156: add "Provides: scalable-font-ko".
* Fri Aug 13 2004 mfabian@suse.de
- update to 1.0.20040813
  (un-fonts-core 1.0 and un-fonts-extra 1.0.1).
- Bugzilla #39451: run SuSEconfig.fonts only if it exists.
* Wed Mar 03 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Mon Mar 01 2004 mfabian@suse.de
- new package: version 0.20040301.
openSUSE Build Service is sponsored by