FedoraForum.org - Fedora Support Forums and Community
Results 1 to 13 of 13
  1. #1
    Join Date
    Oct 2006
    Location
    Melbourne
    Age
    46
    Posts
    571

    RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    EDIT:
    Updated post - October 2012 - Fedora 17. See this thread for in depth discussion.

    To install the latest font package:

    Code:
    su
    rpm -Uvh https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.2-1.noarch.rpm
    Or build from source:

    Code:
    su
    yum install rpmdevtools rpm-build cabextract

    Open a new tab in the terminal (crtl+shift+t).


    [jonathon@Blue noarch]$
    Code:
    rpmdev-setuptree
    cd ~/rpmbuild/SRPMS
    wget https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.2-1.src.rpm
    rpm -Uvh msttcore-fonts-installer-2.2-1.src.rpm
    cd ~/rpmbuild/SPECS/
    rpmbuild -bb msttcore-fonts-installer-2.2-1.spec
    then to install
    Code:
    su
    yum install ~/rpmbuild/RPMS/noarch/msttcore-fonts-installer-2.2-1.noarch.rpm
    Last edited by jonathonp; 9th October 2012 at 11:58 AM.
    PC CPU 3.60 Gigahertz Intel Core i7-4790, Motherboard Gigabyte H97M-D3H RAM: 32GB: Fedora 25 MATE x64, ARCH KDE, Solus OS Budgie
    Asus Zenbook UX305CA: Fedora 25 Gnome
    HP Elitebook 2170p Ubuntu 16.1 Unity & Arch Mate

  2. #2
    leigh123linux Guest

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    Try my updated specfile.

    1. fix broken mirror urls
    2. update specfile to work with rpm 4.8
    Attached Files Attached Files

  3. #3
    Join Date
    Oct 2006
    Location
    Melbourne
    Age
    46
    Posts
    571

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    thanks leigh
    PC CPU 3.60 Gigahertz Intel Core i7-4790, Motherboard Gigabyte H97M-D3H RAM: 32GB: Fedora 25 MATE x64, ARCH KDE, Solus OS Budgie
    Asus Zenbook UX305CA: Fedora 25 Gnome
    HP Elitebook 2170p Ubuntu 16.1 Unity & Arch Mate

  4. #4
    Join Date
    Aug 2010
    Posts
    2

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    Quote Originally Posted by leigh123linux
    Try my updated specfile.

    1. fix broken mirror urls
    2. update specfile to work with rpm 4.8
    Thanks , working perfect with Fedora 17 Beta.
    successed install msfonts to my Fedora 17 Beta

  5. #5
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    msttcorefonts-2.0-1.spec is out of date, although it is what is pointed to on the sourceforge page

    corefonts.sourceforge.net

    last updated 2006.

    Since then it's seen revisions, available in other places.

    The most recent derivative copy is msttcore-fonts-2.0-3.spec, whose development appears to have been driven by changes to the X font architecture. The fonts weren't being found.

    Here's the changelog

    * Wed Jun 25 2008 Muayyad Saleh Alsadi <alsadi gmail com> 2.0-3
    - drop %{ttmkfdir} completely

    * Mon Feb 18 2008 Andrew Bartlett <abartlet samba org> 2.0-2
    - Make work with Fedora 9 fonts system

    The msttcorefonts-2.0-1.spec posted here has the sourceforge mirror fixed, and the deprecated BuildPrereq fixed, but it still has the problem with the incompatibility with the fonts.

    msttcore-fonts-2.0-3.spec has the font system issue fixed, but has the sourceforge mirror problem, and the deprecation problem.

    here's a link to it:

    http://www.mjmwired.net/resources/fi...0-3.noarch.rpm

    So, here's a spec file with a merge of the spec file.
    * sourceforge mirror problem fixed
    * BuildPrereq deprecation fixed
    * fedora 9 and up fonts system problem fixed
    * ttmkfdir dropped
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    link doesn't work, not sure why. I just took the link of the source page, trying it again ...

    http://www.mjmwired.net/resources/fi...nts-2.0-3.spec

    aside: www.mjmwired.net/resources is by mauriat miranda and appears to be a collection of howto guides for fedora. looks interesting.

  7. #7
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    got some more information on this...

    looks like there's already a msttcore-fonts-2.0-4 out there:

    * Tue Jun 16 2009 Dennis Johnson
    - Provides msttcorefonts
    - Requires ttmkfdir, cabextract
    - restores call to ttmkfdir in %install section
    - available from http://fenris02.fedorapeople.org/mst...nts-2.0-4.spec

    It doesn't fix the sourceforge mirror problem though, and it re-introduces ttmkfdir. hmmmm.

    ---------- Post added at 09:42 AM ---------- Previous post was at 09:42 AM ----------

    can't seem to put more than one link per post ...

    I found a msttcore fonts history site, almost current (doesn't have msttcore-fonts-2.0-6).

    http://moin.kordewiner.com/helpdesk/fedora/mscorefonts

    He seems to have tracked down all the various versions of the spec file, since the lights went out on the sourceforge site.

  8. #8
    Yellowman Guest

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    Quote Originally Posted by orbnajes
    got some more information on this...

    looks like there's already a msttcore-fonts-2.0-4 out there:

    * Tue Jun 16 2009 Dennis Johnson
    - Provides msttcorefonts
    - Requires ttmkfdir, cabextract
    - restores call to ttmkfdir in %install section
    - available from http://fenris02.fedorapeople.org/mst...nts-2.0-4.spec

    It doesn't fix the sourceforge mirror problem though, and it re-introduces ttmkfdir. hmmmm.

    ---------- Post added at 09:42 AM ---------- Previous post was at 09:42 AM ----------

    can't seem to put more than one link per post ...

    I found a msttcore fonts history site, almost current (doesn't have msttcore-fonts-2.0-6).

    http://moin.kordewiner.com/helpdesk/fedora/mscorefonts

    He seems to have tracked down all the various versions of the spec file, since the lights went out on the sourceforge site.

    This is newer

    http://forums.fedoraforum.org/showpo...27&postcount=2

  9. #9
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    yes, that's the same one you posted earlier.

    it does fix the sourceforge mirror problem, and the BuildPrereq deprecation problem.

    However, it does not fix the X font system problem.

    Fedora 17 uses an X with two font systems. legacy core X fonts and new Xft / fontconfig fonts.

    the ttmkfdir used in the 2.0-1 series of specs is for the legacy core X fonts system, and has been supersceded by mkfontscale and mkfontdir, in that order. Additionally, the directory must be added to the X font system, otherwise the fonts, while indexed in the fonts.dir file, will not be found. You do that with

    xset fp+ /usr/share/fonts/msttcore
    xset fp recache

    That's temporary. To make it permanent you have to add something to /etc/X11/conf.d.

    Once you do all that, xlsfonts will show the msttcore fonts.

    Note that mkfontscale and mkfontdir are part of X, in the package xorg-x11-font-utils. mkfontdir creates fonts.dir, just like ttmkfdir. However, handling of scalable fonts like true type is missing. According to the docs, you must run mkfontscale first to create a fonts.scale, tne mkfontdir to create the fonts.dir file. It's possible that ttmkfdir does both and consolidates all scaling info in fonts.dir. I don't think so, but ... anyways, the thing is mkfontscale and mkfontdir are in the standard distribution and kept up to date. we should use those.

    The fc-cache is for Xft, and needs no help. /usr/share/fonts/msttcore is a subdirectory of /usr/share/fonts, and fc-cache walks subdirs. fc-list will show the list of fonts.

    Applications seem to use one or the other of the font systems. I suppose some might even use both. The docs say that legacy is the default. Applications must explicitly choose Xft.

    I think the best thing to do is to configure for both legacy and new.

    ---------- Post added at 11:47 AM ---------- Previous post was at 11:41 AM ----------

    oops, sorry, not you yellowman, it was leigh, at the top of this thread, who posted that spec file.

  10. #10
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    Ok, here's a new spec file. handles core X fonts and Xft fonts.

    Please excuse the hubris for incrementing the rev number.

    Here's the top changelogs:

    * Sat Sep 8 2012 Rob Janes <janes.rob gmail com> 2.0-7
    - refactored sourceforge mirror stuff
    - replaced wget with curl, which seems to be installed by default on fedora
    - replaced ttmkfdir with mkfontscale and mkfontdir. This creates fonts.dir file
    for the core X font system. ttmkfdir has been supersceded by mkfontdir - they
    both create fonts.dir but mkfontdir is part of xorg-x11-font-utils.
    - removed 09-msttcorefonts.conf and refactored fc-cache lines. fc-cache walks subdirectories
    so the 09-msttcorefonts.conf to add the /usr/share/font/msttcore is redundant. fc-cache
    indexes for the Xft font system, not the legacy core X font system.
    - added 09-msttcore-fontpath.conf to /etc/X11/xorg.conf.d for core X font system
    - added xset fp+ to add the fontdirectory to core X font for the current session so the installer
    doesn't have to relogin.

    * Mon Aug 15 2011 Dennis Johnson
    - BuildRequires ttmkfdir, cabextract, wget
    - removes Requires
    - fixes sourceforge mirror
    - generates 09-msttcorefonts.conf
    - restores call to ttmkfdir in %install section
    - available from http://fenris02.fedorapeople.org/mst...nts-2.0-6.spec

    * Sat Dec 11 2010 Hnr Kordewiner <hnr@kordewiner.com> 2.0-5
    - move 09-msttcorefonts.conf to this spec file
    - drop %{ttmkfdir} - again
    - msttcore fonts history site setup at http://moin.kordewiner.com/helpdesk/fedora/mscorefonts
    - available from http://moin.kordewiner.com/helpdesk/...nts-2.0-5.spec

    * Mon Jun 07 2010 Zied FAKHFAKH <fzied@dottn.com> 2.0-3
    - removed chkfontpath dependency for Fedora >= 9
    - removed prerun and post chkconfig reference
    - divergent development, same purpose as Andrew Bartlett's but derived from Noa Resare's 2.0-1
    - available from http://moin.kordewiner.com/helpdesk/...nts-2.0-3.spec

    * Tue Jun 16 2009 Dennis Johnson
    - Provides msttcorefonts
    - Requires ttmkfdir, cabextract
    - restores call to ttmkfdir in %install section
    - available from http://fenris02.fedorapeople.org/mst...nts-2.0-4.spec
    Attached Files Attached Files

  11. #11
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    ok, here's another take.

    here's a spec file, and an rpm.

    The spec produces the rpm.

    The rpm is distributable cause it doesn't contain the font files. It downloads them when you install them.

    it also installs updated fonts in EUupdate.exe, which doesn't seem to have a EULA so I guess it's redistributable.

    -rob
    Attached Files Attached Files

  12. #12
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    I made an update to the rpm.

    I guess the big change is that stub ttf files come along with the rpm, so that the rpm system knows about the font files.

    Internally, there are quite a few changes. The most significant is that the download and install script is separate, and has been packaged as a shell script installed by the rpm.

    These are all on a sourceforge project

    spec file:

    msttcore-fonts-installer-2.2-1.spec https://downloads.sourceforge.net/pr...ler-2.2-1.spec

    Source rpm:

    msttcore-fonts-installer-2.2-1.src.rpm https://downloads.sourceforge.net/pr...-2.2-1.src.rpm

    rpm:

    msttcore-fonts-installer-2.2-1.noarch.rpm https://downloads.sourceforge.net/pr...2-1.noarch.rpm
    Last edited by orbnajes; 7th October 2012 at 09:22 PM. Reason: links hard to read

  13. #13
    Join Date
    Jan 2010
    Posts
    11

    Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

    this command does seem to work ...

    Code:
    rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.2-1.noarch.rpm

Similar Threads

  1. Trying to build pcsx2 - errors during build
    By Witgetsteinsbee in forum Using Fedora
    Replies: 2
    Last Post: 29th March 2011, 11:30 PM
  2. Replies: 4
    Last Post: 26th June 2010, 12:38 AM
  3. Replies: 15
    Last Post: 9th March 2010, 05:25 PM
  4. Need any help to build a kmod via spec file
    By laxathom in forum Using Fedora
    Replies: 0
    Last Post: 20th September 2006, 12:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •