Name:           sil-scheherazade-fonts
Version:        2.100
Release:        9
Summary:        An Arabic script unicode font
License:        OFL
URL:            https://software.sil.org/scheherazade/
Source0:        https://software.sil.org/downloads/r/scheherazade/Scheherazade-%{version}.zip
Source1:        sil-scheherazade-fonts-fontconfig.conf
BuildArch:      noarch
BuildRequires:  fontpackages-devel
Requires:       fontpackages-filesystem

%description
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.

%prep
%setup -q -n Scheherazade-%{version}

%install
install -m 0755 -d %{buildroot}%{_datadir}/fonts/sil-scheherazade
install -m 0644 -p *.ttf %{buildroot}%{_datadir}/fonts/sil-scheherazade

install -m 0755 -d %{buildroot}%{_datadir}/fontconfig/conf.avail
install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/fontconfig/conf.avail/65-sil-scheherazade.conf

install -m 0755 -d %{buildroot}/etc/fonts/conf.d
ln -s {_datadir}/fontconfig/conf.avail/65-sil-scheherazade.conf %{buildroot}/etc/fonts/conf.d/65-sil-scheherazade.conf


%files
%dir %{_datadir}/fonts/sil-scheherazade/
%{_datadir}/fonts/sil-scheherazade/*.ttf
%{_datadir}/fontconfig/conf.avail/65-sil-scheherazade.conf
%config(noreplace) /etc/fonts/conf.d/65-sil-scheherazade.conf
%license OFL.txt
%doc FONTLOG.txt README.txt OFL-FAQ.txt documentation/*

%changelog
* Thu Nov 22 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.100-9
- Package init
