%global fontname gfs-philostratos %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_PHILOSTRATOS Name: %{fontname}-fonts Version: 20090902 Release: 1 Summary: A revival of the “Griechische Antiqua” 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 BuildArch: noarch BuildRequires: coreutils, sed, unzip Requires: fontconfig %description Griechische Antiqua was one of the historical Greek typefaces of the late 19th and early 20th century. It was designed by Μaurice Εduard Pinder, a German erudite artist and a member of the Academy of Science in Berlin. This is the most popular version which has appeared from 1870 to 1940 in the German speaking philological literature and in many classical and Byzantine editions by publishers like Teubner (in Leipzig) and Weidmann (in Berlin) such as: Anthology of Byzantine Melos by Wilhelm von Christ and Matthaios Paranikas (Leipzig 1871), Epicurea, by Heinrich Usener (Leipzig 1887), Mitrodorous by Alfred Koerte (Leipzig 1890), Pindar by Otto Schroeder (Leipzig 1908), του Aeschylus by U. von Wilamowitz-Moellendorff (Berlin 1910, 1915), Bachylides by Bruno Snell (Leipzig, 1934), The Vulgata by Alfred Rahlfs (Stuttgart 1935), Suidas Lexicon by Ada Adler (Leipzig 1928-1938) etc. E.J. Kenney lamented the abandonment of the type after the 2nd World War as a great loss for Greek typography (“From Script to Print”, Greek Scripts: An illustrated Introduction, Society for the Promotion of Hellenic Studies, 2001, p. 69). GFS Philostratos was digitized by George D. Matthiopoulos. %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 - 20090902-1 - first version for AIX V5.1 and higher