%global fontname gfs-decker %global fontconf 61-%{fontname}.conf %define _fontdir %{_datadir}/fonts %define _fontconfig_confdir %{_sysconfdir}/fonts/conf.d %define _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail %global archivename GFS_DECKER Name: %{fontname}-fonts Version: 20090618 Release: 5%{?dist} Summary: A 19th century Greek typeface Group: User Interface/X License: OFL URL: http://www.greekfontsociety.gr/pages/en_typefaces19th.html Source0: http://www.greekfontsociety.gr/%{archivename}.zip Source1: %{name}-fontconfig.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: coreutils, sed, unzip Requires: fontconfig %description This typeface is a product of Deckersche Schriftgießere typefoundry owned by Rudolf Ludwig Decker (1804-1877) in Berlin, but it was frequently used in Greek editions by both Oxford and Cambridge University Press during the last decades of the 19th century. It was designed and cut before 1864, according to John Bowman, when a set of matrices was bought by OUP, although the type was not cast and used in England until 1882. The typeface is an uncial design containing a case of capitals, and small capitals, too. The letters lack any sherifs although they retain their thick and thin strokes. It appeared as an alternate type of Byzantine tradition in mostly patristic texts. The font was digitally designed by George D. Matthiopoulos and is freely available by GFS. %prep %setup -q -c -T export PATH=/opt/freeware/bin:$PATH unzip -j -L -q %{SOURCE0} chmod 0644 *.txt for txt in *.txt ; do fold -s $txt > $txt.new sed -i 's/\r//' $txt.new touch -r $txt $txt.new mv $txt.new $txt done %build %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} chmod 0755 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname} cp *.otf ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/ chmod 0644 ${RPM_BUILD_ROOT}%{_fontdir}/%{fontname}/* mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_confdir} mkdir -p ${RPM_BUILD_ROOT}%{_fontconfig_templatedir} cp %{SOURCE1} ${RPM_BUILD_ROOT}%{_fontconfig_templatedir}/%{fontconf}.conf ln -sf %{_fontconfig_templatedir}/%{fontconf}.conf ${RPM_BUILD_ROOT}%{_fontconfig_confdir}/%{fontconf}.conf %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system,-) %doc *.txt *.pdf %{_fontconfig_confdir}/%{fontconf}.conf %{_fontconfig_templatedir}/%{fontconf}.conf %dir %{_fontdir}/%{fontname} %{_fontdir}/%{fontname}/*.otf %changelog * Mon Jun 25 2012 Michael Perzl - 20090618-1 - first version for AIX V5.1 and higher