File indic-fonts.spec of Package indic-fonts

#
# spec file for package indic-fonts (Version 2008.11.13)
#
# Copyright (c) 2008 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
BuildRequires:  xorg-x11-devel
%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-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:        2008.11.13
Release:        1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Url:            https://fedorahosted.org/lohit/
# Lohit fonts:
Source0:        http://rbhalera.fedorapeople.org/released/lohit/lohit-fonts-2.3.1.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:
--------
    Leon Ho 
    Rahul Bhalerao
    Parag Nemade
    Ramkrishna Reddy
    Darshan Santani
    Baishampayan Ghose
    Hiran Venugopalan
    http://www.redhat.com/mailman/listinfo/lohit-devel-list
    
    Amish Munshi (amunshi@novell.com)

%prep
%setup -q -n lohit-fonts-2.3.1 -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
%dir %{ttf_fontdir}
%{ttf_fontdir}/*.?tf

%clean

%post
%run_suseconfig_fonts

%postun
%run_suseconfig_fonts

%changelog
* Thu Nov 13 2008 mfabian@suse.de
- bnc#444025: update Lohit fonts to 2.3.1. Many bugfixes, see:
  http://svn.fedorahosted.org/svn/lohit/trunk/ChangeLog
* Tue Oct 16 2007 mfabian@suse.de
- Bugzilla #334154: update Lohit fonts to 2.1.5.
* Tue Feb 06 2007 mfabian@suse.de
- Fate #301933: add "mr" to "Provides locale()".
* Tue Jan 23 2007 mfabian@suse.de
- split the Telugu fonts Pothana2000 and Vemana2000 into
  a separate package "pothana2000".
- add "Recommends: pothana2000".
* Tue Aug 08 2006 dmueller@suse.de
- install fonts to /usr/share/fonts
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(ta;bn;gu;hi;pa)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 mfabian@suse.de
- Bugzilla #144135: add provides scalable-font-gu, scalable-font-hi
  scalable-font-pa.
* Mon Jun 27 2005 mfabian@suse.de
- add "defattr(-, root,root)" and "# norootforbuild" again.
* Fri Jun 24 2005 mfabian@suse.de
- add %%run_suseconfig_fonts to %%post and %%postun again
- simplify .spec file
- put all fonts into the truetype directory again because it
  currently is like this in all other font packages.
* Tue Jun 14 2005 amunshi@novell.com
- Removed all fonts due to font name selection issue. (Refer to README)
- Rearranged the folder structure according to languages.
- Updated the CREDITS file.
- Some fonts provided by FSF/Akruti had to be removed since they might
  have copyright issues.
  (http://www.fsf.org.in/software/software.html#akruti)
- Add updated fonts from their sources.
* Thu Feb 24 2005 mfabian@suse.de
- install fonts into the correct directory.
* Mon Feb 21 2005 mfabian@suse.de
- Add "Provides: scalable-font-ta, scalable-font-bn" moved
  here from fonts-tamil and fonts-bangla, these two packages will
  be dropped because they contain mainly duplicates of the fonts
  in indic-fonts.
* Thu Feb 10 2005 mfabian@suse.de
- add %%run_suseconfig_fonts to %%post and %%postun.
* Tue Jan 18 2005 ro@suse.de
- change version number to 1.0 (from amunshi at novell.com)
* Thu Jan 13 2005 adrian@suse.de
- fix build
* Sat Dec 04 2004 amunshi@novell.com
- Added AUTHORS
- Added CHANGELOG
- Added CREDITS
- Added FAQ
- Added LICENSE
- Added README
- Added TODO
- Tamil font from Lohit was not included, it was not working.
- Added following fonts
- Changed the file names to Language_FontName standard.
- Changed the font names to Language_FontName standard using PfaEdit.
- Modified EM to a standard power of 2 (increased it for some fonts only).
* Fri Dec 03 2004 amunshi@novell.com
- Added Fonts from Lohit.
openSUSE Build Service is sponsored by