# This msttcorefonts spec file is based on # http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec # from # http://corefonts.sourceforge.net/ # but adapted to Clazzes.org's PBA infrastructure # # $Id$ # %define name msttcorefonts # nowdays most (all?) distributions seems to use this. Oh the joys of the FHS %define ttmkfdir /usr/bin/ttmkfdir %define fontdir /usr/share/fonts/%{name} # Summary: TrueType core fonts for the web Name: msttcorefonts Version: 2.5.1 Release: 0 License: Spec file is GPL, binary rpm is gratis but non-distributable Group: User Interface/X BuildArch: noarch BuildRoot: /var/tmp/%{name}-buildroot BuildRequires: %{ttmkfdir} #BuildRequires: wget #BuildRequires: cabextract #Packager: Noa Resare Packager: Christoph Lechleitner Source: %{name}-%{version}.tar.gz ###XBCS-PBA-Category: msttcorefonts ###XBCS-PBA-Generation: 2 ###XBCS-PBA-Distributions: centos8 ###XBCS-PBA-Repository: rpm.iteg.at %description The TrueType core fonts for the web that was once available from http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly constructed so that the actual fonts are downloaded from Sourceforge's site at build time. Therefore this package technically does not 'redistribute' the fonts, it just makes it easy to install them on a linux system. %prep # mostly moved to fetchfonts.sh, to be called before creating the srpm %setup -q %build # mostly moved to extractfonts.sh, to be called before creating the srpm cd fonts %{ttmkfdir} -o fonts.dir #cat fonts.dir %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT cd fonts mkdir -p $RPM_BUILD_ROOT/%{fontdir} cp *.ttf fonts.dir $RPM_BUILD_ROOT/%{fontdir} %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post if [ -x /usr/sbin/chkfontpath -a $1 -eq 1 ]; then /usr/sbin/chkfontpath --add %{fontdir} fi # something has probably changed, update the font-config cache if [ -x /usr/bin/fc-cache ]; then /usr/bin/fc-cache fi %preun if [ -x /usr/sbin/chkfontpath -a $1 -eq 0 ]; then /usr/sbin/chkfontpath --remove %{fontdir} fi %files %attr(-,root,root) %{fontdir} %dir %{fontdir} %changelog * Tue Dec 22 2020 Christoph Lechleitner 2.5-2 - Adapting to Clazzes.org' PBA infrastructure and debian as developer system. * Sun Sep 09 2012 Noa Resare 2.5-1 - Various updates from Deven T. Corzine, mirrors etc * Sun May 07 2006 Noa Resare 2.0-1 - checksums downloads - random mirror - use redistributable word 97 viewer as source for tahoma.ttf * Mon Mar 31 2003 Daniel Resare 1.3-4 - updated microsoft link - updated sourceforge mirrors * Mon Nov 25 2002 Daniel Resare 1.3-3 - the install dir is now deleted when the package is uninstalled - executable permission removed from the fonts - executes fc-cache after install if it is available * Thu Nov 07 2002 Daniel Resare 1.3-2 - Microsoft released a new service-pack. New url for Tahoma font. * Thu Oct 24 2002 Daniel Resare 1.3-1 - removed python hack - removed python hack info from description - made tahoma inclusion depend on define - added some info on the ttmkfdir define * Tue Aug 27 2002 Daniel Resare 1.2-3 - fixed spec error when tahoma is not included * Tue Aug 27 2002 Daniel Resare 1.2-2 - removed tahoma due to unclear licensing - parametrized ttmkfdir path (for mandrake users) - changed description text to reflect the new microsoft policy * Thu Aug 15 2002 Daniel Resare 1.2-1 - changed distserver because microsoft no longer provides them * Tue Apr 09 2002 Daniel Resare 1.1-3 - fixed post/preun script to actually do what they were supposed to do * Tue Mar 12 2002 Daniel Resare 1.1-2 - removed cabextact from this package - added tahoma font from ie5.5 update * Fri Aug 25 2001 Daniel Resare - initial version