%global fontname gfs-didot-classic %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_DIDOTCLASS_OT Name: %{fontname}-fonts Version: 20080702 Release: 1 Summary: GFS Didot Classic 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 Under the influence of the neoclassical ideals of the late 18th century, the famous French typecutter Firmin Didot in Paris designed a new Greek typeface (1805) which was immediately used in the publishing programme of Adamantios Korai, the prominent intellectual figure of the Greek diaspora and leading scholar of the Greek Enlightenment. The typeface eventually arrived in Greece, with the field press which came with Didot’s grandson Ambroise Firmin Didot, during the Greek Revolution in 1821. Since then the typeface has enjoyed an unrivaled success as the type of choice for almost every kind of publication until the last decades of the 20th century. Didot's original type design, as it is documented in publications during the first decades of the 19th century, was digitized and revived by George D. Matthiopoulos in 2006 for a project of the Department of Literature in the School of Philosophy at the University of Thessaloniki, and is now available for general use. %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 - 20080702-1 - first version for AIX V5.1 and higher