Fedora Linux Support Community & Resources Center
  #1  
Old 30th November 2011, 11:03 AM
jonathonp Offline
Registered User
 
Join Date: Oct 2006
Location: Melbourne
Age: 42
Posts: 532
linuxfirefox
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
__________________
http://poppleit.com/

Fedora 17 XFCE x64, Xubuntu 12.04 LTS x64, Windows 7 64bit
HP-ProBook 5830 i3 - PC AMD Core 4
MacBookPro v10.7.4 - 2.8GHz i7 4GB RAM

Last edited by jonathonp; 9th October 2012 at 11:58 AM.
Reply With Quote
  #2  
Old 30th November 2011, 11:27 AM
leigh123linux
Guest
 
Posts: n/a
linuxfirefox
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
File Type: spec msttcorefonts-2.0-1.spec (5.8 KB, 713 views)
Reply With Quote
  #3  
Old 1st December 2011, 03:08 AM
jonathonp Offline
Registered User
 
Join Date: Oct 2006
Location: Melbourne
Age: 42
Posts: 532
linuxfirefox
Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

thanks leigh
__________________
http://poppleit.com/

Fedora 17 XFCE x64, Xubuntu 12.04 LTS x64, Windows 7 64bit
HP-ProBook 5830 i3 - PC AMD Core 4
MacBookPro v10.7.4 - 2.8GHz i7 4GB RAM
Reply With Quote
  #4  
Old 24th April 2012, 05:52 AM
netroby Offline
Registered User
 
Join Date: Aug 2010
Posts: 2
linuxfirefox
Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

Quote:
Originally Posted by leigh123linux View Post
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
Reply With Quote
  #5  
Old 1st September 2012, 02:43 PM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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
File Type: spec msttcore-fonts-2.0-4.spec (6.2 KB, 106 views)
Reply With Quote
  #6  
Old 1st September 2012, 02:48 PM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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.
Reply With Quote
  #7  
Old 8th September 2012, 02:42 PM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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.
Reply With Quote
  #8  
Old 8th September 2012, 03:09 PM
Yellowman
Guest
 
Posts: n/a
windows_7firefox
Re: RPM build errors depreciated packages with msttcorefonts-2.0-1.spec

Quote:
Originally Posted by orbnajes View Post
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
Reply With Quote
  #9  
Old 8th September 2012, 04:47 PM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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.
Reply With Quote
  #10  
Old 8th September 2012, 06:18 PM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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
File Type: spec msttcore-fonts-2.0-7.spec (8.6 KB, 79 views)
Reply With Quote
  #11  
Old 9th September 2012, 12:23 AM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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
File Type: spec msttcore-fonts-2.1.spec (9.1 KB, 84 views)
File Type: rpm msttcore-fonts-2.1-1.noarch.rpm (10.3 KB, 126 views)
Reply With Quote
  #12  
Old 7th October 2012, 09:20 PM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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
Reply With Quote
  #13  
Old 8th October 2012, 01:29 PM
orbnajes Offline
Registered User
 
Join Date: Jan 2010
Posts: 11
linuxfirefox
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
Reply With Quote
Reply

Tags
build, depreciated, errors, msttcorefontsspec, packages, rpm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to build pcsx2 - errors during build Witgetsteinsbee Using Fedora 2 29th March 2011 11:30 PM
Trying to build rpm for many distributions with one single SPEC-File gnuten Programming & Packaging 4 26th June 2010 12:38 AM
Aegisub (can somoene build an rpm? Mandriva spec file available) demetris Using Fedora 15 9th March 2010 04:25 PM
Need any help to build a kmod via spec file laxathom Using Fedora 0 20th September 2006 12:32 AM


Current GMT-time: 05:18 (Friday, 29-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat