File fonts-arabic.spec of Package fonts-arabic
#
# spec file for package fonts-arabic (Version 0.20040113)
#
# 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: fonts-arabic
%if %suse_version > 910
BuildRequires: xorg-x11 xorg-x11-devel
%else
BuildRequires: XFree86 XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define bitmap_fontdir /usr/share/fonts/misc
%define ttf_fontdir /usr/share/fonts/truetype
%else
%define bitmap_fontdir /usr/X11R6/lib/X11/fonts/misc
%define ttf_fontdir /usr/X11R6/lib/X11/fonts/truetype
%endif
License: Public Domain, Freeware
Group: System/X11/Fonts
Provides: scalable-font-ar
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(ar)
Version: 0.20040113
Release: 210
Url: http://www.arabeyes.org/resources.php
# public domain:
Source0: http://heanet.dl.sourceforge.net/sourceforge/arabeyes/ae_fonts.tar.bz2
Source1: http://heanet.dl.sourceforge.net/sourceforge/arabeyes/haydar_fonts.tar.bz2
Source2: http://heanet.dl.sourceforge.net/sourceforge/arabeyes/kacst_fonts_1.6.2.tar.bz2
Source3: http://heanet.dl.sourceforge.net/sourceforge/arabeyes/lateef.shaikh_fonts.tar.bz2
Source4: http://heanet.dl.sourceforge.net/sourceforge/arabeyes/sharif.univ_ttf.bz2
Source5: http://heanet.dl.sourceforge.net/sourceforge/arabeyes/ae_fonts1_ttf_1.1.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A Collection of Free Arabic Fonts
%description
A collection of free Arabic fonts available from
http://www.arabeyes.org/resources.php.
Authors:
--------
http://www.haydarlinux.com/ <info@haydarlinux.org>
King Abdulaziz City for Science and Technology and the Saudi LUG
Lateef Sagar Shaikh <sagar@kayosworks.com>
Sharif University http://digilib.sharif.ac.ir/fonts.php
Mehran Mehr <mehran@sharif.edu>
Markus Kuhn <mkuhn@acm.org>
contact@arabeyes.org
%prep
%setup -T -c %{name} -n %{name} -a 0 -a 1 -a 2 -a 3 -a 5
bunzip2 --stdout $RPM_SOURCE_DIR/sharif.univ_ttf.bz2 > sharif.univ.ttf
mv License.txt License.Naqsh.txt
cp KacstArabicFonts-*/LICENSE.TXT LICENSE.Kacst.txt
cp ae_fonts*/license.txt license.ae_fonts.txt
%build
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{bitmap_fontdir}
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}
for i in *.ttf */*.ttf */*/*.ttf
do
# one of the kacst TrueType font files has size zero
# make sure to install only .ttf files with size greater than zero
# (OpenOffice even coredumps when .ttf files with size zero
# are in the path).
if [ -s $i ] ; then
install -c -m 644 $i $RPM_BUILD_ROOT%{ttf_fontdir}
fi
done
for i in */*.bdf
do
bdftopcf $i | gzip -9 > \
$RPM_BUILD_ROOT%{bitmap_fontdir}/`basename $i .bdf`.pcf.gz
done
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%post
%run_suseconfig_fonts
%postun
%run_suseconfig_fonts
%files
%defattr(-, root,root)
%doc License* LICENSE*
%dir %{bitmap_fontdir}/
%dir %{bitmap_fontdir}/*
%dir %{ttf_fontdir}/
%dir %{ttf_fontdir}/*
%changelog
* Fri Aug 04 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/ in STABLE (paths changed
because of the move to Xorg X11R7).
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(ar)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 13 2005 mfabian@suse.de
- update Kacst fonts to 1.6.2.
- add ae_fonts1_ttf_1.1
* Fri Dec 03 2004 mfabian@suse.de
- use new macro "%%run_suseconfig_fonts"
* Mon Sep 13 2004 mfabian@suse.de
- Bugzilla #45156: add "Provides: scalable-font-ar".
* Tue Aug 17 2004 mfabian@suse.de
- Bugzilla #39451: run SuSEconfig.fonts only if it exists
* Tue Aug 17 2004 mfabian@suse.de
- add freetype2, freetype2-devel to neededforbuild
(bdftopcf needs libfreetype).
* Thu Mar 18 2004 mfabian@suse.de
- use %%suseconfig_fonts_prereq
* Tue Feb 17 2004 ro@suse.de
- fix typo in specfile
* Sat Feb 14 2004 mfabian@suse.de
- don't build as root
- run SuSEconfig.fonts and SuSEconfig.pango in %%post and %%postun
* Thu May 29 2003 mfabian@suse.de
- new package: fonts-arabic version 0.20030528