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