File indic-fonts.spec of Package indic-fonts
#
# spec file for package indic-fonts (Version 2009.12.08)
#
# 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: indic-fonts
%define ttf_fontdir /usr/share/fonts/truetype
License: GPLv2+
Group: System/X11/Fonts
Provides: scalable-font-ta, scalable-font-bn, scalable-font-gu, scalable-font-hi, scalable-font-pa, scalable-font-mr
Provides: locale(ta;bn;gu;hi;mr;pa)
AutoReqProv: on
Recommends: pothana2000
Summary: Professional Indian Language TrueType Fonts
Version: 2009.12.08
Release: 2
%define lohit_version 2.4.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Url: https://fedorahosted.org/lohit/
# Lohit fonts: http://rbhalera.fedorapeople.org/released/lohit
Source0: http://rbhalera.fedorapeople.org/released/lohit/lohit-fonts-%{lohit_version}.tar.bz2
# Other free indic fonts collected by
# Amish Munshi <amunshi@novell.com> (he is not working at Novell anymore):
Source1: indic-fonts.tar.bz2
%description
This package contains many professional Indian language TrueType fonts
contributed by the community and some also donated by organizations to
open source. All fonts are available under GPL.
Authors:
--------
Amish Munshi (amunshi@novell.com)
%prep
%setup -q -n lohit-fonts-%{lohit_version} -a 1
mv indic/doc docs-for-non-lohit-fonts
%build
%install
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/
# Lohit fonts:
install -m 644 ./*/*.?tf $RPM_BUILD_ROOT%{ttf_fontdir}
# other fonts:
install -m 644 ./indic//fonts/*/*.?tf $RPM_BUILD_ROOT%{ttf_fontdir}
%files
%defattr(-, root,root)
%doc docs-for-non-lohit-fonts
%doc AUTHORS ChangeLog COPYING README
%{ttf_fontdir}
%clean
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%changelog