Added fontconfig configuration file.
This commit is contained in:
parent
169fd0d0f2
commit
fdb9f6bb72
19
66-sil-abyssinica.conf
Normal file
19
66-sil-abyssinica.conf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
<!-- Generic names -->
|
||||||
|
<alias>
|
||||||
|
<family>Abyssinica SIL</family>
|
||||||
|
<default>
|
||||||
|
<family>serif</family>
|
||||||
|
</default>
|
||||||
|
</alias>
|
||||||
|
<!-- Simple priority lists -->
|
||||||
|
<alias>
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Abyssinica SIL</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
</fontconfig>
|
||||||
|
|
@ -1,8 +1,9 @@
|
|||||||
%global fontname sil-abyssinica
|
%global fontname sil-abyssinica
|
||||||
|
%global fontconf 66-%{fontname}.conf
|
||||||
|
|
||||||
Name: %{fontname}-fonts
|
Name: %{fontname}-fonts
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: SIL Abyssinica fonts
|
Summary: SIL Abyssinica fonts
|
||||||
|
|
||||||
Group: User Interface/X
|
Group: User Interface/X
|
||||||
@ -10,6 +11,7 @@ License: OFL
|
|||||||
URL: http://scripts.sil.org/AbyssinicaSIL
|
URL: http://scripts.sil.org/AbyssinicaSIL
|
||||||
# download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.0.zip&filename=abyssinicasil1.0.zip
|
# download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.0.zip&filename=abyssinicasil1.0.zip
|
||||||
Source0: abyssinicasil%{version}.zip
|
Source0: abyssinicasil%{version}.zip
|
||||||
|
Source1: %{fontconf}
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -22,8 +24,8 @@ BuildRequires: dos2unix
|
|||||||
Provides: abyssinica-fonts = %{version}-%{release}
|
Provides: abyssinica-fonts = %{version}-%{release}
|
||||||
Obsoletes: abyssinica-fonts < 1.0-6
|
Obsoletes: abyssinica-fonts < 1.0-6
|
||||||
|
|
||||||
%description
|
|
||||||
|
|
||||||
|
%description
|
||||||
SIL Abyssinica is a Unicode typeface family containing glyphs for the
|
SIL Abyssinica is a Unicode typeface family containing glyphs for the
|
||||||
Ethiopic script.
|
Ethiopic script.
|
||||||
|
|
||||||
@ -37,6 +39,7 @@ characters supported by Abyssinica SIL).
|
|||||||
Abyssinica SIL is based on Ethiopic calligraphic traditions. This release is
|
Abyssinica SIL is based on Ethiopic calligraphic traditions. This release is
|
||||||
a regular typeface, with no bold or italic version available or planned.
|
a regular typeface, with no bold or italic version available or planned.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c
|
%setup -q -c
|
||||||
|
|
||||||
@ -52,16 +55,26 @@ rm -rf %{buildroot}
|
|||||||
install -d -m 0755 %{buildroot}%{_fontdir}
|
install -d -m 0755 %{buildroot}%{_fontdir}
|
||||||
install -m 0644 *.ttf %{buildroot}%{_fontdir}
|
install -m 0644 *.ttf %{buildroot}%{_fontdir}
|
||||||
|
|
||||||
|
#fontconfig
|
||||||
|
install -d -m 0755 %{buildroot}%{_fontconfig_templatedir} \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}
|
||||||
|
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
||||||
|
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
||||||
|
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%_font_pkg *.ttf
|
%_font_pkg -f %{fontconf} *.ttf
|
||||||
|
|
||||||
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
|
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 12 2010 Mathieu Bridon <bochecha@fedoraproject.org> - 1.0-9
|
||||||
|
- Add fontconfig configuration file (BZ#586248)
|
||||||
|
|
||||||
* Tue Feb 16 2010 Mathieu Bridon <bochecha@fedoraproject.org> - 1.0-8
|
* Tue Feb 16 2010 Mathieu Bridon <bochecha@fedoraproject.org> - 1.0-8
|
||||||
- Fix Obsolete: that was wrong when renaming the package.
|
- Fix Obsolete: that was wrong when renaming the package.
|
||||||
- The font base folder was listed twice (one was hidden in the font macro)
|
- The font base folder was listed twice (one was hidden in the font macro)
|
||||||
|
Loading…
Reference in New Issue
Block a user