init package

This commit is contained in:
gu-gu-gu 2020-02-14 11:43:10 +08:00
commit 237da2960c
3 changed files with 78 additions and 0 deletions

BIN
Scheherazade-2.100.zip Normal file

Binary file not shown.

View File

@ -0,0 +1,36 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Scheherazade</family>
</prefer>
</alias>
<alias>
<family>Scheherazade</family>
<default>
<family>serif</family>
</default>
</alias>
<alias binding="same">
<family>Monotype Naskh</family>
<accept>
<family>Scheherazade</family>
</accept>
</alias>
<match target="font">
<test name="family" compare="eq">
<string>Scheherazade</string>
</test>
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix>
<double>1.2</double> <double>0</double>
<double>0</double> <double>1.2</double>
</matrix>
</times>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,42 @@
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