%global fontname gfs-solomos %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_SOLOMOS_OT Name: %{fontname}-fonts Version: 20071114 Release: 1 Summary: GFS Solomos oblique 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: coreutils, sed, unzip Requires: fontconfig %description From the middle of the 19th century an italic font with many calligraphic overtones was introduced into Greek printing. Its source is unknown, but it almost certainly was the product of a German or Italian foundry. In the first type specimen printed in Greece by the typecutter K. Miliadis (1850), the font was listed anonymously along others of 11pts and in the Gr. Doumas' undated specimen appeared as «11pt Greek inclined». For most of the second half of the century the type was used extensively as an italic for emphasis in words, sentences or exerpts. In 1889, the folio size Type Specimen of Anestis Konstantinidis' publishing, printing and type founding establishment also included the type as «Greek inclined [9 & 12 pt]». Nevertheless, the excessively calligraphic style of the characters, combined with the steep and uncomfortable obliqueness of the capitals, was out of favour in the 20th century and the type did not survive the conformity of the mechanical type cutting and casting. The font has been digitally revived, as part of our typographic tradition, by George D. Matthiopoulos and is part of GFS' type library under the name GFS Solomos, in commemoration of the great Greek poet of the 19th century, Dionisios Solomos. %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 - 20071114-1 - first version for AIX V5.1 and higher