5e36aa7
%global fontname silkscreen
5e36aa7
%global fontconf 60-%{fontname}
a15c975
5e36aa7
%global common_desc \
a15c975
Silkscreen is a four member type family for your Web graphics created by Jason \
a15c975
Kottke. Silkscreen is best used in places where extremely small graphical \
a15c975
display type is needed. The primary use is for navigational items (nav bars, \
a15c975
menus, etc), but it works well wherever small type is needed. In order to \
a15c975
preserve the proper spacing and letterforms, Silkscreen should be used at 8pt. \
a15c975
multiples (8pt., 16pt., 24pt., etc.) with anti-aliasing turned off. \
01aaf36
01aaf36
Name:		%{fontname}-fonts
01aaf36
Summary: 	Silkscreen four member type family
01aaf36
Version:	1.0
5f5a8ad
Release:	14%{?dist}
01aaf36
# License attribution confirmed by author and Open Font Library
01aaf36
# http://openfontlibrary.org/media/files/jkottke/218
01aaf36
License:	OFL
01aaf36
Group:		User Interface/X
01aaf36
Source0:	http://www.kottke.org/plus/type/silkscreen/download/silkscreen.tar.gz
a15c975
Source1:	%{name}-fontconfig.conf
a15c975
Source2:	%{name}-expanded-fontconfig.conf
Richard Hughes 32acdd5
Source3:	%{fontname}.metainfo.xml
Richard Hughes 32acdd5
Source4:	%{fontname}-expanded.metainfo.xml
01aaf36
URL:		http://www.kottke.org/plus/type/silkscreen/
01aaf36
BuildArch:	noarch
a15c975
BuildRequires:	fontpackages-devel
a15c975
Requires:	%{name}-common = %{version}-%{release}
01aaf36
01aaf36
%description
a15c975
%common_desc
a15c975
a15c975
%package common
a15c975
Summary:	Common files for Silkscreen fonts (documentation...)
a15c975
Group:		User Interface/X
a15c975
Requires:	fontpackages-filesystem
a15c975
a15c975
%description common
a15c975
%common_desc
a15c975
a15c975
This package consists of files used by other Silkscreen packages.
a15c975
a15c975
%package -n %{fontname}-expanded-fonts
a15c975
Summary:	Expanded Silkscreen font family
a15c975
Group:		User Interface/X
a15c975
Requires:	%{name}-common = %{version}-%{release}
a15c975
a15c975
%description -n %{fontname}-expanded-fonts
a15c975
%common_desc
a15c975
a15c975
This font family has a slightly expanded spacing between the letters in 
a15c975
comparison to the normal Silkscreen font family.
a15c975
a15c975
%_font_pkg -n expanded -f %{fontconf}-expanded.conf slkscre*.ttf
Richard Hughes 32acdd5
%{_datadir}/appdata/%{fontname}-expanded.metainfo.xml
01aaf36
01aaf36
%prep
01aaf36
%setup -q -c -n %{name}
01aaf36
01aaf36
%build
01aaf36
01aaf36
%install
a15c975
rm -rf %{buildroot}
a15c975
install -m 0755 -d %{buildroot}%{_fontdir}
a15c975
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
a15c975
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
a15c975
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
a15c975
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-expanded.conf
01aaf36
a15c975
for fontconf in %{fontconf}.conf %{fontconf}-expanded.conf ; do
a15c975
	ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf
a15c975
done
01aaf36
Richard Hughes 32acdd5
# Add AppStream metadata
Richard Hughes 32acdd5
install -Dm 0644 -p %{SOURCE3} \
Richard Hughes 32acdd5
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
Richard Hughes 32acdd5
install -Dm 0644 -p %{SOURCE4} \
Richard Hughes 32acdd5
        %{buildroot}%{_datadir}/appdata/%{fontname}-expanded.metainfo.xml
Richard Hughes 32acdd5
a15c975
%_font_pkg -f %{fontconf}.conf slkscr.ttf slkscrb.ttf
Richard Hughes 32acdd5
%{_datadir}/appdata/%{fontname}.metainfo.xml
01aaf36
a15c975
%files common
01aaf36
%defattr(0644,root,root,0755)
01aaf36
%doc readme.txt
a15c975
%dir %{_fontdir}
01aaf36
01aaf36
%changelog
5f5a8ad
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-14
5f5a8ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5f5a8ad
5e36aa7
* Tue Jan 26 2016 Tom Callaway <spot@fedoraproject.org> - 1.0-13
5e36aa7
- modernize spec file
5e36aa7
ffeab3f
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-12
ffeab3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ffeab3f
Richard Hughes 32acdd5
* Thu Oct 16 2014 Richard Hughes <richard@hughsie.com> - 1.0-11
Richard Hughes 32acdd5
- Add a MetaInfo file for the software center; this is a font we want to show.
Richard Hughes 32acdd5
8828456
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10
8828456
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8828456
244fc8b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
244fc8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
244fc8b
842d034
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
842d034
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
842d034
c5d899b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
c5d899b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c5d899b
0b4b2af
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
0b4b2af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0b4b2af
4f3559f
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
4f3559f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4f3559f
45eaa07
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
45eaa07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
45eaa07
1c89a07
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
1c89a07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1c89a07
a15c975
* Thu Jan 15 2009 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-2
a15c975
- rework package for new font guidelines
a15c975
01aaf36
* Tue Dec 11 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-1
01aaf36
- Initial package for Fedora