%global fontname gfs-gazis %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_GAZIS Name: %{fontname}-fonts Version: 20091008 Release: 1 Summary: An 18th century Greek typeface Group: User Interface/X License: OFL URL: http://www.greekfontsociety.gr/pages/en_typefaces18th.html Source0: http://www.greekfontsociety.gr/%{archivename}.zip Source1: %{name}-fontconfig.conf BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch %description During the whole of the 18th century the old tradition of using Greek types designed to conform to the Byzantine cursive hand with many ligatures and abbreviations - as it was originated by Aldus Manutius in Venice and consolidated by Claude Garamont (Grecs du Roy) - was still much in practice, although clearly on the wane. GFS Gazis is a typical German example of this practice as it appeared at the end of that era in the 1790's. Its name pays tribute to Anthimos Gazis (1758-1828), one of the most prolific Greek thinkers of the period, who was responsible for writing, translating and editing numerous books, including the editorship of the important Greek periodical Ερμής ο Λόγιος (Litterary Hermes) in Wien. GFS Gazis has been digitally designed 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 - 20091008-1 - first version for AIX V5.1 and higher