c776d92
%global fontname adf-gillius
c776d92
%global fontconf 69-%{fontname}
c776d92
c776d92
%global common_desc \
c776d92
The Gillius family from the Arkandis Digital Foundry is a set of sans-serif \
c776d92
typefaces intended as an alternative to Gill Sans. Its two widths, regular and \
c776d92
condensed, both feature a roman and an italic, and each includes a regular and \
c776d92
bold weight.
c776d92
c776d92
Name:		%{fontname}-fonts
c776d92
Version:	1.008
60e5420
Release:	4%{?dist}
c776d92
Summary:	Gillius ADF sans-serif typeface family
c776d92
c776d92
Group:		User Interface/X
c776d92
License:	GPLv2+ with exceptions
c776d92
URL:		http://arkandis.tuxfamily.org/adffonts.html
c776d92
Source0:	http://arkandis.tuxfamily.org/fonts/Gillius-Collection.zip
c776d92
Source1:	%{fontname}-fontconfig.conf
c776d92
Source2:	%{fontname}-2-fontconfig.conf
c776d92
c776d92
BuildArch:	noarch
c776d92
BuildRequires:	fontpackages-devel
c776d92
c776d92
Requires:	%{name}-common = %{version}-%{release}
c776d92
%description
c776d92
%common_desc
c776d92
c776d92
This is the base variant.
c776d92
c776d92
%_font_pkg -f %{fontconf}.conf GilliusADF-*.otf
c776d92
c776d92
c776d92
%package common
c776d92
Summary:	Common files of %{fontname}
c776d92
Requires:	fontpackages-filesystem
c776d92
c776d92
%description common
c776d92
%common_desc
c776d92
c776d92
This package consists of files used by other %{fontname} packages
c776d92
c776d92
c776d92
%package -n %{fontname}-2-fonts
c776d92
Summary:	Gillius ADF No2 sans-serif typeface family
c776d92
Requires:	%{name}-common = %{version}-%{release}
c776d92
c776d92
%description -n %{fontname}-2-fonts
c776d92
%common_desc
c776d92
c776d92
A slightly rounder variant, which features the same set of weights,
c776d92
widths, and slopes. 
c776d92
c776d92
%_font_pkg -n 2 -f %{fontconf}-2.conf GilliusADFNo2-*.otf
c776d92
c776d92
%prep
c776d92
%setup -q -n Gillius-Collection
c776d92
for file in NOTICE OTF/COPYING; do
c776d92
 sed "s|\r||g" $file > $file.new && \
c776d92
 touch -r $file $file.new && \
c776d92
 mv $file.new $file
c776d92
done
c776d92
c776d92
c776d92
%build
c776d92
c776d92
c776d92
%install
c776d92
install -m 0755 -d %{buildroot}%{_fontdir}
c776d92
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir}
c776d92
c776d92
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
c776d92
			%{buildroot}%{_fontconfig_confdir}
c776d92
c776d92
install -m 0644 -p %{SOURCE1} \
c776d92
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
c776d92
ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \
c776d92
	%{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf
c776d92
install -m 0644 -p %{SOURCE2} \
c776d92
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-2.conf
c776d92
ln -s %{_fontconfig_templatedir}/%{fontconf}-2.conf \
c776d92
	%{buildroot}%{_fontconfig_confdir}/%{fontconf}-2.conf
c776d92
c776d92
c776d92
%files common
c776d92
%defattr(0644,root,root,0755)
c776d92
%doc NOTICE OTF/COPYING
c776d92
c776d92
%changelog
60e5420
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008-4
60e5420
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
60e5420
c776d92
* Mon Nov 15 2010 Michael J Gruber <mjg at fedoraproject.org> - 1.008-3
c776d92
- split into subpackages
c776d92
c776d92
* Mon Nov 15 2010 Michael J Gruber <mjg at fedoraproject.org> - 1.008-2
c776d92
- Add fontconfig rules for Gillius ADF No2
c776d92
c776d92
* Sun Nov 14 2010 Michael J Gruber <mjg at fedoraproject.org> - 1.008-1
c776d92
- Initial packaging for Fedora