File farsifonts.spec of Package farsifonts
#
# spec file for package farsifonts (Version 0.4)
#
# Copyright (c) 2009 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: farsifonts
%if %suse_version > 910
BuildRequires: unzip xorg-x11-devel
%else
BuildRequires: XFree86-devel
%endif
%if "%(xft-config --prefix)" == "/usr"
%define fontdir /usr/share/fonts/truetype
%else
%define fontdir /usr/X11R6/lib/X11/fonts/truetype
%endif
License: Other uncritical OpenSource License
Group: System/X11/Fonts
Provides: scalable-font-fa
AutoReqProv: on
PreReq: %suseconfig_fonts_prereq
Provides: locale(fa)
Version: 0.4
Release: 181
Url: http://www.farsiweb.info/wiki/Products/PersianFonts
Source0: http://www.farsiweb.info/font/farsifonts-0.4.zip
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A Collection of Free Persian OpenType Fonts
%description
A collection of free Persian OpenType fonts.
Authors:
--------
Roozbeh Pournader, Sharif FarsiWeb Inc <info@farsiweb.info>
%prep
%setup -T -c %{name} -n %{name}
unzip $RPM_SOURCE_DIR/farsifonts-%{version}
chmod -R a+r *
%build
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{fontdir}
for i in */*.ttf
do
install -c -m 644 $i $RPM_BUILD_ROOT%{fontdir}
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 farsifonts*/COPYING
%doc farsifonts*/NEWS
%dir %{fontdir}/
%{fontdir}/*
%changelog
* Thu Mar 29 2007 dmueller@suse.de
- update BuildRequires
* Wed Aug 09 2006 mfabian@suse.de
- move fonts to /usr/share/fonts/truetype
(openSUSE 10.2 will use X11R7).
* Wed Mar 01 2006 mfabian@suse.de
- add "Provides: locale(fa)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 13 2005 mfabian@suse.de
- new package: farsifonts version 0.4