%global fontname senamirmir-washra
%global fontconf 65-%{fontname}
%global archivename washra-fonts-%{version}
%global common_desc \
A set of high quality unicode fonts for the Geʼez (Ethiopic) script \
published by the Senamirmir project. They can be used to write Ethiopic and \
Eritrean languages (Amharic, Blin, Geʼez, Harari, Meʼen, Tigre, Tigrinya…).
Name: %{fontname}-fonts
Version: 4.1
Release: 5%{?dist}
Summary: Fonts for the Geʼez (Ethiopic) script
Group: User Interface/X
License: OFL
URL: http://www.senamirmir.org/projects/typography/typeface.html
Source0: http://www.senamirmir.org/downloads/%{archivename}.zip
# Problems reported upstream
# https://www.redhat.com/archives/fedora-fonts-list/2009-June/msg00002.html
Source1: %{name}-fontconfig.conf
# We need upstream or someone who knows local Ethiopian usage to suggest a
# classification we could relay to fontconfig. In the meanwhile, only three
# font families classified
Source2: %{name}-yigezu-bisrat-goffer-fontconfig.conf
Source3: %{name}-yigezu-bisrat-gothic-fontconfig.conf
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: fontpackages-devel
%description
%common_desc
%_font_pkg -f %{fontconf}.conf washrab.ttf washrasb.ttf
%package common
Summary: Common files of %{name}
Requires: fontpackages-filesystem
%description common
%common_desc
This package consists of files used by other %{name} packages.
%package -n %{fontname}-fantuwua-fonts
Summary: A font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-fantuwua-fonts
%common_desc
This package consists of the “Ethiopic Fantuwua” font.
%_font_pkg -n fantuwua fantuwua.ttf
%package -n %{fontname}-hiwua-fonts
Summary: A font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-hiwua-fonts
%common_desc
This package consists of the “Ethiopic Hiwua” font.
%_font_pkg -n hiwua hiwua.ttf
%package -n %{fontname}-jiret-fonts
Summary: A font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-jiret-fonts
%common_desc
This package consists of the “Ethiopia Jiret” font.
%_font_pkg -n jiret jiret.ttf
%package -n %{fontname}-tint-fonts
Summary: A font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-tint-fonts
%common_desc
This package consists of the “Ethiopic Tint” font.
%_font_pkg -n tint tint.ttf
%package -n %{fontname}-wookianos-fonts
Summary: A font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-wookianos-fonts
%common_desc
This package consists of the “Ethiopic Wookianos” font.
%_font_pkg -n wookianos wookianos.ttf
%package -n %{fontname}-yebse-fonts
Summary: A font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-yebse-fonts
%common_desc
This package consists of the “Ethiopic Yebse” font.
%_font_pkg -n yebse yebse.ttf
%package -n %{fontname}-yigezu-bisrat-goffer-fonts
Summary: A decorative font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-yigezu-bisrat-goffer-fonts
%common_desc
This package consists of the “Ethiopic Yigezu Bisrat Goffer” font, a “Gothic
Goffer” decorative font. It is dedicated to Ato Yigezu Bisrat, whose 1963 book
“Ye-ethiopia khine tsehifet” (Ethiopian Typography) provided the original
design that served as inspiration for this work.
%_font_pkg -n yigezu-bisrat-goffer -f %{fontconf}-yigezu-bisrat-goffer.conf goffer.ttf
%package -n %{fontname}-yigezu-bisrat-gothic-fonts
Summary: A decorative font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-yigezu-bisrat-gothic-fonts
%common_desc
This package consists of the “Ethiopic Yigezu Bisrat Gothic” font, a “Gothic”
decorative font. It is dedicated to Ato Yigezu Bisrat, whose 1963 book
“Ye-ethiopia khine tsehifet” (Ethiopian Typography) provided inspiration for
this work.
%_font_pkg -n yigezu-bisrat-gothic -f %{fontconf}-yigezu-bisrat-gothic.conf yigezubisratgothic.ttf
%package -n %{fontname}-zelan-fonts
Summary: A font for the Geʼez (Ethiopic) script
Requires: %{name}-common = %{version}-%{release}
%description -n %{fontname}-zelan-fonts
%common_desc
This package consists of the “Ethiopic Zelan” font.
%_font_pkg -n zelan zelan.ttf
%prep
%setup -c -q
for txt in *.txt ; do
fold -s $txt > $txt.new
sed -i 's/\r//' $txt.new
touch -r $txt $txt.new
mv $txt.new $txt
done
%build
%install
rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
# No info available to classify the other fonts
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-yigezu-bisrat-goffer.conf
install -m 0644 -p %{SOURCE3} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-yigezu-bisrat-gothic.conf
for fconf in %{fontconf}.conf \
%{fontconf}-yigezu-bisrat-goffer.conf \
%{fontconf}-yigezu-bisrat-gothic.conf ; do
ln -s %{_fontconfig_templatedir}/$fconf \
%{buildroot}%{_fontconfig_confdir}/$fconf
done
%clean
rm -fr %{buildroot}
%files common
%defattr(0644,root,root,0755)
%doc *.txt *.pdf *.doc
%changelog
* Mon Sep 28 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
- 4.1-5
— Tweak fontconfig fixing
* Sun Sep 13 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
- 4.1-4
— Kill camelcase WashRa capitalization too
- 4.1-3
— Fix WashRa Bold and SemiBold naming
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- 4.1-2
— Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue Jun 2 2009 Nicolas Mailhot <nicolas.mailhot at laposte.net>
- 4.1-1
— initial release