File alee-fonts.spec of Package alee-fonts
#
# spec file for package alee-fonts
#
# Copyright (c) 2012 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/
#
Name: alee-fonts
Version: 12
Release: 2
License: SUSE-Artistic-1.0+
%define ttf_fontdir /usr/share/fonts/truetype
Summary: Korean TrueType fonts
Url: http://packages.debian.org/unstable/source/ttf-alee
Group: System/X11/Fonts
Source0: http://ftp.debian.org/debian/pool/main/t/ttf-alee/ttf-alee_12.tar.gz
Requires(pre): %suseconfig_fonts_prereq
Provides: scalable-font-ko
Provides: locale(ko)
Provides: ttf-alee = %{version}
Obsoletes: ttf-alee <= 12
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Korean TrueType fonts by A Lee.
%prep
%setup -q -n ttf-alee-%{version}
%build
chmod 644 debian/rules
%install
mkdir -p %{buildroot}%{ttf_fontdir}/
install -c -m 644 *.ttf %{buildroot}%{ttf_fontdir}/
%clean
[ %{buildroot} != "/" ] && [ -d %{buildroot} ] && rm -rf %{buildroot};
%post
%run_suseconfig_fonts -c
%postun
%run_suseconfig_fonts -c
%files
%defattr(-, root,root)
%doc COPYING
%doc debian
%{ttf_fontdir}
%changelog