%global fontname gfs-porson %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_Porson_OT Name: %{fontname}-fonts Version: 20060908 Release: 1 Summary: GFS Porson Greek font 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 BuildArch: noarch BuildRequires: coreutils, sed, unzip Requires: fontconfig %description In England, during the 1790’s, Cambridge University Press decided to procure a new set of Greek types. The university’s great scholar of Classics, Richard Porson was asked to produce a typeface based on his handsome handwriting and Richard Austin was commissioned to cut the types. The type was completed in 1808, after the untimely death of Porson the previous year. Its success was immediate and since then the classical editions in Great Britain and the U.S.A. use it, almost invariably. In 1913, Monotype released the typeface with some corrections, notably replacing the upright capitals suggested by Porson with inclined ones. In Greece the typeface was used under the name Pelasgika type. GFS Porson is based on the Monotype version, though using upright capitals, as in the original. %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 - 20060908-1 - first version for AIX V5.1 and higher