%global fontname gfs-theokritos %global fontconf 60-%{fontname}.conf %define _fontdir %{_datadir}/fonts %define _fontconfig_confdir %{_sysconfdir}/fonts/conf.d %define _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail %global archivename GFS_THEOKRITOS_OT Name: %{fontname}-fonts Version: 20070415 Release: 1 Summary: GFS Theokritos decorative font Group: User Interface/X License: OFL URL: http://www.greekfontsociety.gr/pages/en_typefaces20th.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 Yannis Kefallinos (1894–1958) was one of the most innovative engravers of his generation and the first who researched methodicaly the aesthetics of book and typographic design in Greece. He taught at the Fine Arts School of Athens and established the first book design workshop from which many practising artists of the 60's and 70's had graduated. In the late 50's Kefallinos designed and published an exquisite book with engraved illustrations of the ancient white funerary pottery in Attica in collaboration with Varlamos, Montesanto, Damianakis. For the text of Kefallinos' Δέκα λευκαί λήκυθοι (1956) the artist used a typeface which he himself had designed a few years before for an unrealised edition of Theocritos' Idyls. Its complex and heavily decorative design does point to aesthetic codes which preoccupied his artistic expression and, although impractical for contemporary text setting, it remains an original display face, or it can be used as initials. The book design workshop of the Fine Arts School of Athens has been recently reorganised, under the direction of professor Leoni Vidali, and with her collaboration George D. Matthiopoulos has redesigned digitaly this historical font which is now available as GFS Theokritos. %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 - 20070415-1 - first version for AIX V5.1 and higher