File indic-fonts.spec of Package indic-fonts

#
# spec file for package indic-fonts
#
# Copyright (c) 2013 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:           indic-fonts
Version:        20130130
Release:        0
Summary:        Professional Indian Language TrueType Fonts
License:        GPL-2.0+ and OFL-1.1
Group:          System/X11/Fonts
Url:            https://fedorahosted.org/lohit/
Source0:        lohit-ttf-%{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
BuildRequires:  fontpackages-devel
Recommends:     pothana2000
Provides:       scalable-font-bn
Provides:       scalable-font-gu
Provides:       scalable-font-hi
Provides:       scalable-font-mr
Provides:       scalable-font-pa
Provides:       scalable-font-ta
Provides:       locale(ta;bn;gu;hi;mr;pa)
%reconfigure_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%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.

%prep
%setup -q -n lohit-ttf-%{version} -a 1
mv indic/doc docs-for-non-lohit-fonts

%build

%install
mkdir -p %{buildroot}%{_ttfontsdir}/
# Lohit fonts:
install -m 644 ./*.?tf %{buildroot}%{_ttfontsdir}
# other fonts:
install -m 644 ./indic//fonts/*/*.?tf %{buildroot}%{_ttfontsdir}

%reconfigure_fonts_scriptlets

%files
%defattr(-, root,root)
%doc docs-for-non-lohit-fonts
%doc COPYRIGHT OFL.txt
%{_ttfontsdir}

%changelog
openSUSE Build Service is sponsored by