%global fontname gfs-goschen %global fontconf 64-%{fontname}.conf %define _fontdir %{_datadir}/fonts %define _fontconfig_confdir %{_sysconfdir}/fonts/conf.d %define _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail %global archivename GFS_GOSCHEN Name: %{fontname}-fonts Version: 20100203 Release: 1 Summary: A 19th century 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: coreutils, sed, unzip Requires: fontconfig %description Georg Joachim Göschen founded in 1782 the publishing house of G.J. Göschensche Verlagsbuchhandlung in Leipzig and was one of the most active publishers of the period in Germany. Göschen was very interested in typography, influenced by the fame and quality of the editions of G. Bodoni and F. Didot. In 1797, he collaborated with the leading scholar of the period, Johann Jakob Griesbach, to edit and publish the New Testament in Greek for which he formed a committee of scholars to decide the new Greek type which were eventually cut by Johann Prillwitz. The book appeared in 1803 and the types show many influences from the Greek types of Bodoni. Their characteristic was the neoclassical form of marked contrast between thick and thin strokes, the cursive style and the large size of the font. The design was too cumbersome to allow general use and can be considered successful only for its indirect influence on the later cut Greek Leipzig type. It is, however, part of the greater heritage of Greek type design and therefore the type has been digitized by George D. Matthiopoulos in 2009 and is part of GFS' type library under the name GFS Göschen cursive, in commemoration of the great German publisher. %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 - 20100203-1 - first version for AIX V5.1 and higher