%global fontname oldstandard %global fontconf 60-%{fontname}.conf Name: %{fontname}-sfd-fonts Version: 2.0.2 Release: 1 Summary: Old Standard True-Type Fonts License: OFL-1.1 URL: https://fontlibrary.org/en/font/old-standard Source0: http://www.thessalonica.org.ru/downloads/oldstandard-2.0.2.src.zip # This is used to generate the fontconfig configuration file, thanks to Ankur Sinha. # https://src.fedoraproject.org/rpms/oldstandard-sfd-fonts/raw/main/f/oldstandard-sfd-fonts-fontconfig.conf Source1: %{name}-fontconfig.conf Source2: http://www.thessalonica.org.ru/downloads/oldstand-manual.pdf # This is for appstream, thanks to Parag Nemade. # https://src.fedoraproject.org/rpms/oldstandard-sfd-fonts/raw/main/f/oldstandard.metainfo.xml Source3: %{fontname}.metainfo.xml BuildArch: noarch BuildRequires: fontforge,fontpackages-devel Requires: fontpackages-filesystem %description The Old Standard font family is an attempt to revive a specific type of Modern (classicist) style of serif typefaces, very commonly used in various editions printed in the late 19th and early 20th century, but almost completely abandoned later. %prep %setup -q -c -n oldstandard-%{version} for i in $(ls OldStandard*.sfd);do sed -i -e 's/OldStandardTT/OldStandardSFD/' -e 's/Old \Standard \TT/Old \Standard \SFD/' $i; done for txt in OFL* ; do sed 's/\r//' $txt > $txt.new touch -r $txt $txt.new mv $txt.new $txt done install -m 644 -p %{SOURCE2} . %build fontforge -lang=ff -script "-" OldStandard*.sfd < - 2.0.2-1 - Init package (Thanks to fedora team)