16b3487
%global fontname tiresias
16b3487
%global fontconf 60-%{fontname}.conf
0487550
16b3487
%global common_desc \
0487550
The Tiresias family of fonts has been designed for use in multiple environments \
0487550
to help improve legibility, especially for individuals with visual impairment. \
0487550
It includes specialized fonts for information labels, control labels (for key \
0487550
tops), large print publications, computer systems, television subtitling, and \
0487550
signs.
cae5347
cae5347
Name:		%{fontname}-fonts
cae5347
Summary: 	Low vision fonts
cae5347
Version:	1.0
126ebbc
Release:	20%{?dist}
4e408b8
# Font exception
4e408b8
License:	GPLv3+ with exceptions
cae5347
Group:		User Interface/X
cae5347
Source0:	http://www.tiresias.org/fonts/infofont.zip
cae5347
Source1:	http://www.tiresias.org/fonts/keyfont.zip
cae5347
Source2:	http://www.tiresias.org/fonts/lpfont.zip
cae5347
Source3:	http://www.tiresias.org/fonts/pcfont.zip
cae5347
Source4:	http://www.tiresias.org/fonts/signfont.zip
0487550
Source5:	%{name}-info-fontconfig.conf
0487550
Source6:	%{name}-info-z-fontconfig.conf
0487550
Source7:	%{name}-key-v2-fontconfig.conf
0487550
Source8:	%{name}-lp-fontconfig.conf
0487550
Source9:	%{name}-pc-fontconfig.conf
0487550
Source10:	%{name}-pc-z-fontconfig.conf
0487550
Source11:	%{name}-sign-fontconfig.conf
0487550
Source12:	%{name}-sign-z-fontconfig.conf
Richard Hughes 154d0d1
Source19:	%{fontname}.metainfo.xml
Richard Hughes 154d0d1
Source20:	%{fontname}-info.metainfo.xml
Richard Hughes 154d0d1
Source21:	%{fontname}-info-z.metainfo.xml
Richard Hughes 154d0d1
Source22:	%{fontname}-key-v2.metainfo.xml
Richard Hughes 154d0d1
Source23:	%{fontname}-lp.metainfo.xml
Richard Hughes 154d0d1
Source24:	%{fontname}-pc.metainfo.xml
Richard Hughes 154d0d1
Source25:	%{fontname}-pc-z.metainfo.xml
Richard Hughes 154d0d1
Source26:	%{fontname}-sign.metainfo.xml
Richard Hughes 154d0d1
Source27:	%{fontname}-sign-z.metainfo.xml
cae5347
URL:		http://www.tiresias.org/fonts/
0487550
BuildRequires:	fontpackages-devel
cae5347
BuildArch:	noarch
cae5347
cae5347
%description
0487550
%common_desc
0487550
0487550
%package common
0487550
Summary:	Common files for Tiresias fonts (documentation...)
0487550
Group:		User Interface/X
0487550
Requires:	fontpackages-filesystem
0487550
0487550
%description common
0487550
%common_desc
0487550
0487550
This package consists of files used by other Tiresias packages.
0487550
0487550
%package -n %{fontname}-info-fonts
0487550
Summary:	Specialized fonts for info terminals for the visually impaired
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n %{fontname}-info-fonts
0487550
%common_desc
0487550
0487550
The Infofont family is specialized for use in informational labels on public 
0487550
terminals such as ATMs using large characters. The only	difference between the
0487550
Infofont and the Infofont Z families is whether the zero is crossed out or not.
0487550
In the Infofont family, the zero is _not_ crossed out, which may lead to some
0487550
confusion.
0487550
0487550
%_font_pkg -n info -f %{fontconf}-infofont.conf "Tiresias*Infofont*.ttf"
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-info.metainfo.xml
0487550
0487550
%package -n %{fontname}-info-z-fonts
0487550
Summary:	Specialized fonts for info terminals for the visually impaired
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n %{fontname}-info-z-fonts
0487550
%common_desc
0487550
0487550
The Infofont Z family is specialized for use in informational labels on public
0487550
terminals such as ATMs using large characters. The only difference between the
0487550
Infofont Z and the Infofont families is whether the zero is crossed out or not.
0487550
In the Infofont	Z family, the zero is crossed out.
0487550
0487550
%_font_pkg -n info-z -f %{fontconf}-infofont-z.conf "TIRESIAS*INFOFONTZ*.ttf"
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-info-z.metainfo.xml
0487550
0487550
%package -n %{fontname}-key-v2-fonts
0487550
Summary:	Specialized fonts for labeling keycaps for the visually impaired
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n %{fontname}-key-v2-fonts
0487550
%common_desc
0487550
0487550
The Keyfont V2 family is specialized for use in labeling keycaps.
0487550
98af99a
%_font_pkg -n key-v2 -f %{fontconf}-keyfont-v2.conf TIREKV__.ttf
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-key-v2.metainfo.xml
0487550
0487550
%package -n %{fontname}-lp-fonts
0487550
Summary:	Specialized font for large print publications
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n %{fontname}-lp-fonts
0487550
%common_desc
0487550
0487550
The LPfont family is specialized for use in large print publications.
0487550
0487550
%_font_pkg -n lp -f %{fontconf}-lpfont.conf "Tiresias*LPfont*.ttf"
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-lp.metainfo.xml
0487550
0487550
%package -n %{fontname}-pc-fonts
0487550
Summary:	Specialized fonts for use on PCs for the visually impaired
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n	%{fontname}-pc-fonts
0487550
%common_desc
0487550
0487550
The PCfont family is specialized for people with poor vision to use on PC 
0487550
screens using large characters. The only difference between the PCfont and 
0487550
the PCfont Z families is whether the zero is crossed out or not. In the 
0487550
PCfont family, the zero is _not_ crossed out, which may lead to some
0487550
confusion.
0487550
0487550
%_font_pkg -n pc -f %{fontconf}-pcfont.conf "Tiresias*PCfont*.ttf"
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-pc.metainfo.xml
0487550
0487550
%package -n %{fontname}-pc-z-fonts
0487550
Summary:	Specialized fonts for use on PCs for the visually impaired
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n %{fontname}-pc-z-fonts
0487550
%common_desc
0487550
0487550
The PCfont family is specialized for people with poor vision to use on PC
0487550
screens using large characters.	The only difference between the PCfont and 
0487550
the PCfont Z families is whether the zero is crossed out or not. In the
0487550
PCfont Z family, the zero is crossed out.
0487550
0487550
%_font_pkg -n pc-z -f %{fontconf}-pcfont-z.conf "TIRESIAS*PCFONTZ*.ttf"
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-pc-z.metainfo.xml
0487550
0487550
%package -n %{fontname}-sign-fonts
0487550
Summary:	Specialized fonts for preparing signs for the visually impaired
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n %{fontname}-sign-fonts
0487550
%common_desc
0487550
0487550
The Signfont family is specialized for preparing signs for the visually 
0487550
impaired, using large characters. The only difference between the Signfont and 
0487550
the Signfont Z families is whether the zero is crossed out or not. In the
0487550
Signfont family, the zero is _not_ crossed out, which may lead to some
0487550
confusion.
0487550
0487550
%_font_pkg -n sign -f %{fontconf}-signfont.conf "Tiresias*Signfont*.ttf"
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-sign.metainfo.xml
0487550
0487550
%package -n %{fontname}-sign-z-fonts
0487550
Summary:	Specialized fonts for preparing signs for the visually impaired
0487550
Group:		User Interface/X
0487550
Requires:	%{name}-common = %{version}-%{release}
0487550
0487550
%description -n	%{fontname}-sign-z-fonts
0487550
%common_desc
0487550
0487550
The Signfont family is specialized for preparing signs for the visually 
0487550
impaired, using	large characters. The only difference between the Signfont and 
0487550
the Signfont Z families is whether the zero is crossed out or not. In the 
0487550
Signfont Z family, the zero is crossed out.
0487550
0487550
%_font_pkg -n sign-z -f %{fontconf}-signfont-z.conf "TIRESIAS*SIGNFONTZ*.ttf"
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}-sign-z.metainfo.xml
cae5347
cae5347
%prep
cae5347
%setup -q -c -n %{name}
cae5347
%{__unzip} -qqo %{SOURCE1}
cae5347
%{__unzip} -qqo %{SOURCE2}
cae5347
%{__unzip} -qqo %{SOURCE3}
cae5347
%{__unzip} -qqo %{SOURCE4}
cae5347
for f in *.TTF; do 
cae5347
	newname=`echo "$f"|sed -e 's/.TTF/.ttf/'`;
cae5347
	mv "$f" "$newname"; 
cae5347
done;
cae5347
# correct end-of-line encoding
cae5347
sed -i 's/\r//' COPYING/gpl.txt
cae5347
cae5347
%build
cae5347
cae5347
%install
0487550
install -m 0755 -d %{buildroot}%{_fontdir}
0487550
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
0487550
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
0487550
install -m 0644 -p %{SOURCE5} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-infofont.conf
0487550
install -m 0644 -p %{SOURCE6} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-infofont-z.conf
0487550
install -m 0644 -p %{SOURCE7} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-keyfont-v2.conf
0487550
install -m 0644 -p %{SOURCE8} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-lpfont.conf
0487550
install -m 0644 -p %{SOURCE9} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-pcfont.conf
0487550
install -m 0644 -p %{SOURCE10} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-pcfont-z.conf
0487550
install -m 0644 -p %{SOURCE11} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-signfont.conf
0487550
install -m 0644 -p %{SOURCE12} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-signfont-z.conf
cae5347
0487550
for fontconf in %{fontconf}-infofont.conf %{fontconf}-infofont-z.conf %{fontconf}-keyfont-v2.conf %{fontconf}-lpfont.conf\
0487550
		%{fontconf}-pcfont.conf %{fontconf}-pcfont-z.conf %{fontconf}-signfont.conf %{fontconf}-signfont-z.conf; do
0487550
	ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf
0487550
done
cae5347
Richard Hughes 154d0d1
# Add AppStream metadata
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE19} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE20} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-info.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE21} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-info-z.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE22} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-key-v2.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE23} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-lp.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE24} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-pc.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE25} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-pc-z.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE26} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-sign.metainfo.xml
Richard Hughes 154d0d1
install -Dm 0644 -p %{SOURCE27} \
Richard Hughes 154d0d1
        %{buildroot}%{_datadir}/appdata/%{fontname}-sign-z.metainfo.xml
Richard Hughes 154d0d1
0487550
%files common
cae5347
%defattr(0644,root,root,0755)
Richard Hughes 154d0d1
%{_datadir}/appdata/%{fontname}.metainfo.xml
cae5347
%doc COPYING/copying.doc COPYING/gpl.txt
0487550
%dir %{_fontdir}
cae5347
cae5347
%changelog
126ebbc
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-20
126ebbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
126ebbc
e723b0c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-19
e723b0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e723b0c
4d5b00a
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-18
4d5b00a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4d5b00a
16b3487
* Tue Jan 26 2016 Tom Callaway <spot@fedoraproject.org> - 1.0-17
16b3487
- modernize spec file
16b3487
6990461
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-16
6990461
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6990461
Richard Hughes 154d0d1
* Fri Oct 17 2014 Richard Hughes <richard@hughsie.com> - 1.0-15
Richard Hughes 154d0d1
- Add a MetaInfo file for the software center; this is a font we want to show.
Richard Hughes 154d0d1
613e8bd
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-14
613e8bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
613e8bd
af1c7a3
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-13
af1c7a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
af1c7a3
fb42441
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-12
fb42441
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fb42441
31b3593
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-11
31b3593
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
31b3593
8f9efce
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10
8f9efce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8f9efce
d1a213f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
d1a213f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d1a213f
4e408b8
* Wed Jul  7 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-8
4e408b8
- corrected license
4e408b8
fe18b0a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
fe18b0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fe18b0a
0e826fa
* Wed Mar 25 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-6
0e826fa
- rebuild for font autoprovides
0e826fa
6ea8306
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
6ea8306
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
6ea8306
98af99a
* Mon Feb 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-4
98af99a
- fix packaging
98af99a
0487550
* Thu Jan 15 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-3
0487550
- rework to meet new font packaging guidelines
0487550
cae5347
* Wed Jan  2 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-2
cae5347
- font versions didn't change, but sha1sums did
cae5347
cae5347
* Mon Nov 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-1
cae5347
- Initial package for Fedora