Blob Blame History Raw
%global fontname sil-scheherazade
%global fontconf 65-%{fontname}.conf

Name:           %{fontname}-fonts
Version:        1.001
Release:        3%{?dist}
Summary:        An Arabic script unicode font

Group:          User Interface/X
License:        OFL
# The file complete URL is as follows:
Source1:        %{name}-fontconfig.conf
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildArch:      noarch
BuildRequires:  fontpackages-devel
Requires:       fontpackages-filesystem

Scheherazade, named after the heroine of the classic Arabian Nights tale, is
designed in a similar style to traditional typefaces such as Monotype Naskh,
extended to cover the full Unicode Arabic repertoire.

%setup -q -c %{name}-%{version}

for docfile in *.txt; do
    fold -s $docfile > $ && \
    sed -i "s|\r||g" $ && \
    touch -r $docfile $ && \
    mv $ $docfile

rm -fr %{buildroot}

install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \

install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \

rm -fr %{buildroot}

%_font_pkg -f %{fontconf} *.ttf

%doc *.txt

* Sat May 01 2010 Hedayat Vatankhah <> - 1.001-3
- Scaled the font (1.2 times bigger) to make it more like other fonts

* Sat Oct 03 2009 Hedayat Vatankhah <> - 1.001-2
- Fixed summary to not include font name
- Removed some parts of the description
- Added fontconfig rules

* Mon Sep 28 2009 Hedayat Vatankhah <> - 1.001-1
- Initial version