30a49d7
%global fontname adf-accanthis
30a49d7
%global fontconf 60-%{fontname}
30a49d7
30a49d7
%global archivename Accanthis-Std
30a49d7
30a49d7
%global common_desc \
30a49d7
A latin typeface published by Hirwen Harendal's Arkandis Digital Foundry, \
30a49d7
Accanthis was inspired from the “Cloister Oldstyle” typeface found in the \
30a49d7
“American Specimen Book of Typefaces Suplement”. Its medium contrast is \
30a49d7
sufficient to be reader-frendly and deliver a elegant and refined experience.\
30a49d7
\
30a49d7
Its creator considers it as a “modernized” garaldic typeface. \
30a49d7
\
30a49d7
Accanthis is well suited to book typesetting and refined presentations.
30a49d7
30a49d7
30a49d7
Name:      %{fontname}-fonts
30a49d7
# Use the main PS version (as documented in NOTICE)
30a49d7
Version:   1.6
a261871
Release:   4%{?dist}
30a49d7
Summary:   A “modernized” garaldic serif typeface, “Galliard” alternative
30a49d7
30a49d7
Group:     User Interface/X
30a49d7
License:   GPLv2+ with exceptions
30a49d7
URL:       http://arkandis.tuxfamily.org/adffonts.html
30a49d7
Source0:   http://arkandis.tuxfamily.org/fonts/%{archivename}.zip
30a49d7
Source1:   http://arkandis.tuxfamily.org/docs/Accanthis-Cat.pdf
30a49d7
Source11:  %{name}-fontconfig.conf
30a49d7
Source12:  %{name}-fontconfig-2.conf
30a49d7
Source13:  %{name}-fontconfig-3.conf
30a49d7
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
30a49d7
30a49d7
BuildArch:     noarch
30a49d7
BuildRequires: fontpackages-devel
30a49d7
30a49d7
%description
30a49d7
%common_desc
30a49d7
30a49d7
It is intended to serve as alternative to the “Galliard” typeface.
30a49d7
30a49d7
%_font_pkg -f %{fontconf}.conf AccanthisADFStd-*.otf
30a49d7
30a49d7
30a49d7
%package common
30a49d7
Summary:  Common files of %{name}
30a49d7
Requires: fontpackages-filesystem
30a49d7
30a49d7
%description common
30a49d7
%common_desc
30a49d7
30a49d7
This package consists of files used by other %{name} packages.
30a49d7
30a49d7
30a49d7
%package -n adf-accanthis-2-fonts
30a49d7
Summary:  A “modernized” garaldic serif, “Horley old style” alternative
30a49d7
Requires: %{name}-common = %{version}-%{release}
30a49d7
30a49d7
%description -n adf-accanthis-2-fonts
30a49d7
%common_desc
30a49d7
30a49d7
This variant is closer to the “Horley old style” typeface than the original \
30a49d7
version.
30a49d7
30a49d7
%_font_pkg -n 2 -f %{fontconf}-2.conf AccanthisADFStdNo2-*.otf
30a49d7
30a49d7
30a49d7
%package -n adf-accanthis-3-fonts
30a49d7
Summary:  A “modernized” garaldic serif typeface
30a49d7
Requires: %{name}-common = %{version}-%{release}
30a49d7
30a49d7
%description -n adf-accanthis-3-fonts
30a49d7
%common_desc
30a49d7
30a49d7
This variant remixes a slightly modified Accanthis n°2 with elements from the
30a49d7
original Italic and changes to k, p, z and numbers.
30a49d7
30a49d7
30a49d7
%_font_pkg -n 3 -f %{fontconf}-3.conf AccanthisADFStdNo3-*.otf
30a49d7
30a49d7
30a49d7
%prep
30a49d7
%setup -q -n %{archivename}
30a49d7
install -m 0644 -p %{SOURCE1} .
30a49d7
for txt in NOTICE */COPYING ; do
30a49d7
   fold -s $txt > $txt.new
30a49d7
   sed -i 's/\r//' $txt.new
30a49d7
   touch -r $txt $txt.new
30a49d7
   mv $txt.new $txt
30a49d7
done
30a49d7
30a49d7
30a49d7
%build
30a49d7
30a49d7
30a49d7
%install
30a49d7
rm -fr %{buildroot}
30a49d7
30a49d7
install -m 0755 -d %{buildroot}%{_fontdir}
30a49d7
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir}
30a49d7
30a49d7
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
30a49d7
                   %{buildroot}%{_fontconfig_confdir}
30a49d7
30a49d7
install -m 0644 -p %{SOURCE11} \
30a49d7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
30a49d7
install -m 0644 -p %{SOURCE12} \
30a49d7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-2.conf
30a49d7
install -m 0644 -p %{SOURCE13} \
30a49d7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-3.conf
30a49d7
30a49d7
for fconf in %{fontconf}.conf \
30a49d7
             %{fontconf}-2.conf \
30a49d7
             %{fontconf}-3.conf ; do
30a49d7
  ln -s %{_fontconfig_templatedir}/$fconf \
30a49d7
        %{buildroot}%{_fontconfig_confdir}/$fconf
30a49d7
done
30a49d7
30a49d7
30a49d7
%clean
30a49d7
rm -fr %{buildroot}
30a49d7
30a49d7
30a49d7
%files common
30a49d7
%defattr(0644,root,root,0755)
30a49d7
%doc NOTICE OTF/COPYING *.pdf
30a49d7
30a49d7
30a49d7
%changelog
a261871
* Sun Sep 06 2009 <nicolas.mailhot at laposte.net>
a261871
- 1.6-4
a261871
— Stealth upstream update
a261871
a261871
a261871
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
a261871
— 1.6-3
6021d3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6021d3d
30a49d7
* Mon Jul 13 2009 <nicolas.mailhot at laposte.net>
30a49d7
- 1.6-2
30a49d7
— Use a macro construct friendlier to pre-F12 releases
30a49d7
30a49d7
* Sun Jul 12 2009 <nicolas.mailhot at laposte.net>
30a49d7
- 1.6-1
30a49d7
– Initial packaging