File farsifonts.spec of Package farsifonts

# spec file for package farsifonts (Version 0.4)
# 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

# norootforbuild

Name:           farsifonts
BuildRequires:  unzip
%define	fontdir     /usr/share/fonts/truetype
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:        182
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A Collection of Free Persian OpenType Fonts

A collection of free Persian OpenType fonts.

    Roozbeh Pournader, Sharif FarsiWeb Inc <>

%setup -T -c %{name} -n %{name} 
unzip $RPM_SOURCE_DIR/farsifonts-%{version}
chmod -R a+r *


[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
mkdir -p $RPM_BUILD_ROOT%{fontdir}
for i in */*.ttf
    install -c -m 644 $i $RPM_BUILD_ROOT%{fontdir}

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;



%defattr(-, root,root)
%doc farsifonts*/COPYING
%doc farsifonts*/NEWS

openSUSE Build Service is sponsored by