<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  
  


  

  <head>
    <title>
      Attachment – Misc Stuff
    </title>
        <link rel="search" href="/projects/misc/search" />
        <link rel="help" href="/projects/misc/wiki/TracGuide" />
        <link rel="alternate" href="/projects/misc/raw-attachment/wiki/HowToInstallFedoraDevMachine/msttcorefonts-2.0-1.spec" title="Original Format" />
        <link rel="up" href="/projects/misc/wiki/HowToInstallFedoraDevMachine" title="HowToInstallFedoraDevMachine" />
        <link rel="start" href="/projects/misc/wiki" />
        <link rel="stylesheet" href="/projects/misc/chrome/common/css/trac.css" type="text/css" /><link rel="stylesheet" href="/projects/misc/chrome/common/css/code.css" type="text/css" />
        <link rel="shortcut icon" href="/projects/misc/chrome/common/trac.ico" type="image/x-icon" />
        <link rel="icon" href="/projects/misc/chrome/common/trac.ico" type="image/x-icon" />
      <link type="application/opensearchdescription+xml" rel="search" href="/projects/misc/search/opensearch" title="Search Misc Stuff" />
    <script type="text/javascript" src="/projects/misc/chrome/common/js/jquery.js"></script><script type="text/javascript" src="/projects/misc/chrome/common/js/trac.js"></script><script type="text/javascript" src="/projects/misc/chrome/common/js/search.js"></script>
    <!--[if lt IE 7]>
    <script type="text/javascript" src="/projects/misc/chrome/common/js/ie_pre7_hacks.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="banner">
      <div id="header">
        <a id="logo" href="http://example.org/"><img src="/projects/misc/chrome/common/trac_banner.png" alt="" /></a>
      </div>
      <form id="search" action="/projects/misc/search" method="get">
        <div>
          <label for="proj-search">Search:</label>
          <input type="text" id="proj-search" name="q" size="18" value="" />
          <input type="submit" value="Search" />
        </div>
      </form>
      <div id="metanav" class="nav">
    <ul>
      <li class="first">logged in as scottwb@gmail.com</li><li><a href="/projects/misc/logout">Logout</a></li><li><a href="/projects/misc/wiki/TracGuide">Help/Guide</a></li><li><a href="/projects/misc/about">About Trac</a></li><li class="last"><a href="/projects/misc/prefs">Preferences</a></li>
    </ul>
  </div>
    </div>
    <div id="mainnav" class="nav">
    <ul>
      <li class="first active"><a href="/projects/misc/wiki">Wiki</a></li><li><a href="/projects/misc/timeline">Timeline</a></li><li><a href="/projects/misc/roadmap">Roadmap</a></li><li><a href="/projects/misc/browser">Browse Source</a></li><li><a href="/projects/misc/report">View Tickets</a></li><li><a href="/projects/misc/newticket">New Ticket</a></li><li><a href="/projects/misc/search">Search</a></li><li class="last"><a href="/projects/misc/admin" title="Administration">Admin</a></li>
    </ul>
  </div>
    <div id="main">
      <div id="ctxtnav" class="nav">
        <h2>Context Navigation</h2>
          <ul>
            <li class="first last"><a href="/projects/misc/wiki/HowToInstallFedoraDevMachine">Back to HowToInstallFedoraDevMachine</a></li>
          </ul>
        <hr />
      </div>
    <div id="content" class="attachment">
        <h1><a href="/projects/misc/wiki/HowToInstallFedoraDevMachine">HowToInstallFedoraDevMachine</a>: msttcorefonts-2.0-1.spec</h1>
        <table id="info" summary="Description">
          <tbody>
            <tr>
              <th scope="col">
                File msttcorefonts-2.0-1.spec, <span title="6386 bytes">6.2 KB</span>
                (added by scottwb@gmail.com,  <a class="timeline" href="/projects/misc/timeline?from=2008-03-30T23%3A02%3A22Z-0400&amp;precision=second" title="2008-03-30T23:02:22Z-0400 in Timeline">3 years</a> ago)
              </th>
            </tr>
            <tr>
              <td class="message searchable">
                <p>
Spec file for installing Microsoft Fonts.
</p>

              </td>
            </tr>
          </tbody>
        </table>
        <div id="preview" class="searchable">
    <table class="code"><thead><tr><th class="lineno" title="Line numbers">Line</th><th class="content"> </th></tr></thead><tbody><tr><th id="L1"><a href="#L1">1</a></th><td># This is the msttcorefonts spec file as distributed from</td></tr><tr><th id="L2"><a href="#L2">2</a></th><td># http://corefonts.sourceforge.net/. </td></tr><tr><th id="L3"><a href="#L3">3</a></th><td></td></tr><tr><th id="L4"><a href="#L4">4</a></th><td>%define name msttcorefonts</td></tr><tr><th id="L5"><a href="#L5">5</a></th><td></td></tr><tr><th id="L6"><a href="#L6">6</a></th><td># nowdays most (all?) distributions seems to use this. Oh the joys of the FHS</td></tr><tr><th id="L7"><a href="#L7">7</a></th><td>%define ttmkfdir /usr/bin/ttmkfdir</td></tr><tr><th id="L8"><a href="#L8">8</a></th><td></td></tr><tr><th id="L9"><a href="#L9">9</a></th><td>%define fontdir /usr/share/fonts/%{name}</td></tr><tr><th id="L10"><a href="#L10">10</a></th><td></td></tr><tr><th id="L11"><a href="#L11">11</a></th><td>Summary: TrueType core fonts for the web</td></tr><tr><th id="L12"><a href="#L12">12</a></th><td>Name: %{name}</td></tr><tr><th id="L13"><a href="#L13">13</a></th><td>Version: 2.0</td></tr><tr><th id="L14"><a href="#L14">14</a></th><td>Release: 1</td></tr><tr><th id="L15"><a href="#L15">15</a></th><td>License: Spec file is GPL, binary rpm is gratis but non-distributable</td></tr><tr><th id="L16"><a href="#L16">16</a></th><td>Group: User Interface/X</td></tr><tr><th id="L17"><a href="#L17">17</a></th><td>BuildArch: noarch</td></tr><tr><th id="L18"><a href="#L18">18</a></th><td>BuildRoot: /var/tmp/%{name}-root</td></tr><tr><th id="L19"><a href="#L19">19</a></th><td>BuildPrereq: %{ttmkfdir}</td></tr><tr><th id="L20"><a href="#L20">20</a></th><td>BuildPrereq: wget</td></tr><tr><th id="L21"><a href="#L21">21</a></th><td>BuildPrereq: cabextract</td></tr><tr><th id="L22"><a href="#L22">22</a></th><td>Prereq: /usr/sbin/chkfontpath</td></tr><tr><th id="L23"><a href="#L23">23</a></th><td>Packager: Noa Resare &lt;noa@resare.com&gt;</td></tr><tr><th id="L24"><a href="#L24">24</a></th><td></td></tr><tr><th id="L25"><a href="#L25">25</a></th><td>%description</td></tr><tr><th id="L26"><a href="#L26">26</a></th><td>The TrueType core fonts for the web that was once available from</td></tr><tr><th id="L27"><a href="#L27">27</a></th><td>http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly</td></tr><tr><th id="L28"><a href="#L28">28</a></th><td>constructed so that the actual fonts are downloaded from Sourceforge's site</td></tr><tr><th id="L29"><a href="#L29">29</a></th><td>at build time. Therefore this package technically does not 'redistribute'</td></tr><tr><th id="L30"><a href="#L30">30</a></th><td>the fonts, it just makes it easy to install them on a linux system.</td></tr><tr><th id="L31"><a href="#L31">31</a></th><td></td></tr><tr><th id="L32"><a href="#L32">32</a></th><td>%prep</td></tr><tr><th id="L33"><a href="#L33">33</a></th><td>mkdir -p %{name}/downloads</td></tr><tr><th id="L34"><a href="#L34">34</a></th><td>cd %{name}/downloads</td></tr><tr><th id="L35"><a href="#L35">35</a></th><td></td></tr><tr><th id="L36"><a href="#L36">36</a></th><td># this is the sourceforge mirrorlist as of 2006-04-30. If someone spots changes</td></tr><tr><th id="L37"><a href="#L37">37</a></th><td># over at sourcforge, feel free to email me and I'll update the list</td></tr><tr><th id="L38"><a href="#L38">38</a></th><td>mirrors="easynews+heanet+superb-west+internap+switch+ufpr+surfnet+umn+kent+mesh+superb-east+jaist"</td></tr><tr><th id="L39"><a href="#L39">39</a></th><td>mirror_count=12</td></tr><tr><th id="L40"><a href="#L40">40</a></th><td></td></tr><tr><th id="L41"><a href="#L41">41</a></th><td>andale32_md5="cbdc2fdd7d2ed0832795e86a8b9ee19a  andale32.exe"</td></tr><tr><th id="L42"><a href="#L42">42</a></th><td>arial32_md5="9637df0e91703179f0723ec095a36cb5  arial32.exe"</td></tr><tr><th id="L43"><a href="#L43">43</a></th><td>arialb32_md5="c9089ae0c3b3d0d8c4b0a95979bb9ff0  arialb32.exe"</td></tr><tr><th id="L44"><a href="#L44">44</a></th><td>comic32_md5="2b30de40bb5e803a0452c7715fc835d1  comic32.exe"</td></tr><tr><th id="L45"><a href="#L45">45</a></th><td>courie32_md5="4e412c772294403ab62fb2d247d85c60  courie32.exe"</td></tr><tr><th id="L46"><a href="#L46">46</a></th><td>georgi32_md5="4d90016026e2da447593b41a8d8fa8bd  georgi32.exe"</td></tr><tr><th id="L47"><a href="#L47">47</a></th><td>impact32_md5="7907c7dd6684e9bade91cff82683d9d7  impact32.exe"</td></tr><tr><th id="L48"><a href="#L48">48</a></th><td>times32_md5="ed39c8ef91b9fb80f76f702568291bd5  times32.exe"</td></tr><tr><th id="L49"><a href="#L49">49</a></th><td>trebuc32_md5="0d7ea16cac6261f8513a061fbfcdb2b5  trebuc32.exe"</td></tr><tr><th id="L50"><a href="#L50">50</a></th><td>webdin32_md5="230a1d13a365b22815f502eb24d9149b  webdin32.exe"</td></tr><tr><th id="L51"><a href="#L51">51</a></th><td>verdan32_md5="12d2a75f8156e10607be1eaa8e8ef120  verdan32.exe"</td></tr><tr><th id="L52"><a href="#L52">52</a></th><td>wd97vwr32_md5="efa72d3ed0120a07326ce02f051e9b42  wd97vwr32.exe"</td></tr><tr><th id="L53"><a href="#L53">53</a></th><td></td></tr><tr><th id="L54"><a href="#L54">54</a></th><td>download_files="andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe webdin32.exe verdan32.exe wd97vwr32.exe"</td></tr><tr><th id="L55"><a href="#L55">55</a></th><td></td></tr><tr><th id="L56"><a href="#L56">56</a></th><td></td></tr><tr><th id="L57"><a href="#L57">57</a></th><td>failures=0</td></tr><tr><th id="L58"><a href="#L58">58</a></th><td></td></tr><tr><th id="L59"><a href="#L59">59</a></th><td>function set_mirror {</td></tr><tr><th id="L60"><a href="#L60">60</a></th><td>        local r m</td></tr><tr><th id="L61"><a href="#L61">61</a></th><td>        r=`expr $RANDOM % $mirror_count + 1`</td></tr><tr><th id="L62"><a href="#L62">62</a></th><td>        m=`echo $mirrors |cut -d+ -f$r`</td></tr><tr><th id="L63"><a href="#L63">63</a></th><td>        mirror="http://${m}.dl.sourceforge.net/sourceforge/corefonts/"</td></tr><tr><th id="L64"><a href="#L64">64</a></th><td></td></tr><tr><th id="L65"><a href="#L65">65</a></th><td>}</td></tr><tr><th id="L66"><a href="#L66">66</a></th><td></td></tr><tr><th id="L67"><a href="#L67">67</a></th><td>function check_file {</td></tr><tr><th id="L68"><a href="#L68">68</a></th><td>        matches=</td></tr><tr><th id="L69"><a href="#L69">69</a></th><td>        if [ ! -r $1 ]</td></tr><tr><th id="L70"><a href="#L70">70</a></th><td>        then</td></tr><tr><th id="L71"><a href="#L71">71</a></th><td>                echo "$1 does not exist"</td></tr><tr><th id="L72"><a href="#L72">72</a></th><td>                return</td></tr><tr><th id="L73"><a href="#L73">73</a></th><td>        fi</td></tr><tr><th id="L74"><a href="#L74">74</a></th><td>        local variable_name=`basename $1 .exe`_md5</td></tr><tr><th id="L75"><a href="#L75">75</a></th><td>        local stored_checksum</td></tr><tr><th id="L76"><a href="#L76">76</a></th><td>        eval stored_checksum=\$$variable_name</td></tr><tr><th id="L77"><a href="#L77">77</a></th><td>        local computed_checksum=`md5sum $1`</td></tr><tr><th id="L78"><a href="#L78">78</a></th><td>        if [ "$stored_checksum" = "$computed_checksum" ]</td></tr><tr><th id="L79"><a href="#L79">79</a></th><td>        then</td></tr><tr><th id="L80"><a href="#L80">80</a></th><td>                matches=yes</td></tr><tr><th id="L81"><a href="#L81">81</a></th><td>        else</td></tr><tr><th id="L82"><a href="#L82">82</a></th><td>                rm $1</td></tr><tr><th id="L83"><a href="#L83">83</a></th><td>                matches=</td></tr><tr><th id="L84"><a href="#L84">84</a></th><td>        fi</td></tr><tr><th id="L85"><a href="#L85">85</a></th><td>}</td></tr><tr><th id="L86"><a href="#L86">86</a></th><td></td></tr><tr><th id="L87"><a href="#L87">87</a></th><td>function download {</td></tr><tr><th id="L88"><a href="#L88">88</a></th><td>        wget --timeout=5 -O "$2" $1$2</td></tr><tr><th id="L89"><a href="#L89">89</a></th><td>}</td></tr><tr><th id="L90"><a href="#L90">90</a></th><td></td></tr><tr><th id="L91"><a href="#L91">91</a></th><td>set_mirror</td></tr><tr><th id="L92"><a href="#L92">92</a></th><td>for f in $download_files</td></tr><tr><th id="L93"><a href="#L93">93</a></th><td>do</td></tr><tr><th id="L94"><a href="#L94">94</a></th><td>        check_file $f</td></tr><tr><th id="L95"><a href="#L95">95</a></th><td>        while [ ! $matches ]</td></tr><tr><th id="L96"><a href="#L96">96</a></th><td>        do</td></tr><tr><th id="L97"><a href="#L97">97</a></th><td>                download $mirror $f</td></tr><tr><th id="L98"><a href="#L98">98</a></th><td>                check_file $f</td></tr><tr><th id="L99"><a href="#L99">99</a></th><td>                if [ ! $matches ]</td></tr><tr><th id="L100"><a href="#L100">100</a></th><td>                then</td></tr><tr><th id="L101"><a href="#L101">101</a></th><td>                        echo "failed to download $mirror$f"</td></tr><tr><th id="L102"><a href="#L102">102</a></th><td>                        failures=`expr $failures + 1`</td></tr><tr><th id="L103"><a href="#L103">103</a></th><td>                        if [ $failures -gt 5 ]</td></tr><tr><th id="L104"><a href="#L104">104</a></th><td>                        then</td></tr><tr><th id="L105"><a href="#L105">105</a></th><td>                                echo "failed to download too many times."</td></tr><tr><th id="L106"><a href="#L106">106</a></th><td>                                exit</td></tr><tr><th id="L107"><a href="#L107">107</a></th><td>                        fi</td></tr><tr><th id="L108"><a href="#L108">108</a></th><td>                        set_mirror</td></tr><tr><th id="L109"><a href="#L109">109</a></th><td>                fi</td></tr><tr><th id="L110"><a href="#L110">110</a></th><td>        done</td></tr><tr><th id="L111"><a href="#L111">111</a></th><td>done</td></tr><tr><th id="L112"><a href="#L112">112</a></th><td></td></tr><tr><th id="L113"><a href="#L113">113</a></th><td></td></tr><tr><th id="L114"><a href="#L114">114</a></th><td>%build</td></tr><tr><th id="L115"><a href="#L115">115</a></th><td></td></tr><tr><th id="L116"><a href="#L116">116</a></th><td>font_files="andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe webdin32.exe verdan32.exe"</td></tr><tr><th id="L117"><a href="#L117">117</a></th><td></td></tr><tr><th id="L118"><a href="#L118">118</a></th><td>cd %{name}</td></tr><tr><th id="L119"><a href="#L119">119</a></th><td></td></tr><tr><th id="L120"><a href="#L120">120</a></th><td>rm -rf cab-contents fonts</td></tr><tr><th id="L121"><a href="#L121">121</a></th><td></td></tr><tr><th id="L122"><a href="#L122">122</a></th><td>mkdir cab-contents</td></tr><tr><th id="L123"><a href="#L123">123</a></th><td>mkdir fonts</td></tr><tr><th id="L124"><a href="#L124">124</a></th><td></td></tr><tr><th id="L125"><a href="#L125">125</a></th><td>for i in $font_files</td></tr><tr><th id="L126"><a href="#L126">126</a></th><td>do</td></tr><tr><th id="L127"><a href="#L127">127</a></th><td>        if [ -f downloads/$i ]</td></tr><tr><th id="L128"><a href="#L128">128</a></th><td>        then</td></tr><tr><th id="L129"><a href="#L129">129</a></th><td>                cabextract --lowercase --directory=cab-contents downloads/$i</td></tr><tr><th id="L130"><a href="#L130">130</a></th><td>        fi</td></tr><tr><th id="L131"><a href="#L131">131</a></th><td>        cp cab-contents/*.ttf fonts</td></tr><tr><th id="L132"><a href="#L132">132</a></th><td>        rm -f cab-contents/*</td></tr><tr><th id="L133"><a href="#L133">133</a></th><td>done</td></tr><tr><th id="L134"><a href="#L134">134</a></th><td></td></tr><tr><th id="L135"><a href="#L135">135</a></th><td>cabextract --lowercase --directory=cab-contents downloads/wd97vwr32.exe</td></tr><tr><th id="L136"><a href="#L136">136</a></th><td>cabextract --lowercase --directory=cab-contents cab-contents/viewer1.cab</td></tr><tr><th id="L137"><a href="#L137">137</a></th><td>cp cab-contents/*.ttf fonts</td></tr><tr><th id="L138"><a href="#L138">138</a></th><td></td></tr><tr><th id="L139"><a href="#L139">139</a></th><td>cd fonts</td></tr><tr><th id="L140"><a href="#L140">140</a></th><td></td></tr><tr><th id="L141"><a href="#L141">141</a></th><td>%{ttmkfdir} &gt; fonts.dir</td></tr><tr><th id="L142"><a href="#L142">142</a></th><td></td></tr><tr><th id="L143"><a href="#L143">143</a></th><td>%install</td></tr><tr><th id="L144"><a href="#L144">144</a></th><td>[ "$RPM_BUILD_ROOT" != "/" ] &amp;&amp; rm -rf $RPM_BUILD_ROOT</td></tr><tr><th id="L145"><a href="#L145">145</a></th><td>cd %{name}/fonts</td></tr><tr><th id="L146"><a href="#L146">146</a></th><td>mkdir -p $RPM_BUILD_ROOT/%{fontdir}</td></tr><tr><th id="L147"><a href="#L147">147</a></th><td>cp *.ttf fonts.dir $RPM_BUILD_ROOT/%{fontdir}</td></tr><tr><th id="L148"><a href="#L148">148</a></th><td></td></tr><tr><th id="L149"><a href="#L149">149</a></th><td>%clean</td></tr><tr><th id="L150"><a href="#L150">150</a></th><td>[ "$RPM_BUILD_ROOT" != "/" ] &amp;&amp; rm -rf $RPM_BUILD_ROOT</td></tr><tr><th id="L151"><a href="#L151">151</a></th><td></td></tr><tr><th id="L152"><a href="#L152">152</a></th><td>%post</td></tr><tr><th id="L153"><a href="#L153">153</a></th><td>if test $1 -eq 1</td></tr><tr><th id="L154"><a href="#L154">154</a></th><td>then</td></tr><tr><th id="L155"><a href="#L155">155</a></th><td>        /usr/sbin/chkfontpath --add %{fontdir}</td></tr><tr><th id="L156"><a href="#L156">156</a></th><td>fi</td></tr><tr><th id="L157"><a href="#L157">157</a></th><td># something has probably changed, update the font-config cache</td></tr><tr><th id="L158"><a href="#L158">158</a></th><td>if test -x /usr/bin/fc-cache</td></tr><tr><th id="L159"><a href="#L159">159</a></th><td>then</td></tr><tr><th id="L160"><a href="#L160">160</a></th><td>        /usr/bin/fc-cache</td></tr><tr><th id="L161"><a href="#L161">161</a></th><td>fi</td></tr><tr><th id="L162"><a href="#L162">162</a></th><td></td></tr><tr><th id="L163"><a href="#L163">163</a></th><td>%preun</td></tr><tr><th id="L164"><a href="#L164">164</a></th><td>if test $1 -eq 0</td></tr><tr><th id="L165"><a href="#L165">165</a></th><td>then</td></tr><tr><th id="L166"><a href="#L166">166</a></th><td>        /usr/sbin/chkfontpath --remove %{fontdir}</td></tr><tr><th id="L167"><a href="#L167">167</a></th><td>fi</td></tr><tr><th id="L168"><a href="#L168">168</a></th><td></td></tr><tr><th id="L169"><a href="#L169">169</a></th><td>%files</td></tr><tr><th id="L170"><a href="#L170">170</a></th><td>%attr(-,root,root) %{fontdir}</td></tr><tr><th id="L171"><a href="#L171">171</a></th><td>%dir %{fontdir}</td></tr><tr><th id="L172"><a href="#L172">172</a></th><td></td></tr><tr><th id="L173"><a href="#L173">173</a></th><td>%changelog</td></tr><tr><th id="L174"><a href="#L174">174</a></th><td>* Sun May 07 2006 Noa Resare &lt;noa@resare.com&gt; 2.0-1</td></tr><tr><th id="L175"><a href="#L175">175</a></th><td>- checksums downloads</td></tr><tr><th id="L176"><a href="#L176">176</a></th><td>- random mirror</td></tr><tr><th id="L177"><a href="#L177">177</a></th><td>- use redistributable word 97 viewer as source for tahoma.ttf</td></tr><tr><th id="L178"><a href="#L178">178</a></th><td></td></tr><tr><th id="L179"><a href="#L179">179</a></th><td>* Mon Mar 31 2003 Daniel Resare &lt;noa@resare.com&gt; 1.3-4</td></tr><tr><th id="L180"><a href="#L180">180</a></th><td>- updated microsoft link</td></tr><tr><th id="L181"><a href="#L181">181</a></th><td>- updated sourceforge mirrors</td></tr><tr><th id="L182"><a href="#L182">182</a></th><td></td></tr><tr><th id="L183"><a href="#L183">183</a></th><td>* Mon Nov 25 2002 Daniel Resare &lt;noa@resare.com&gt; 1.3-3</td></tr><tr><th id="L184"><a href="#L184">184</a></th><td>- the install dir is now deleted when the package is uninstalled</td></tr><tr><th id="L185"><a href="#L185">185</a></th><td>- executable permission removed from the fonts</td></tr><tr><th id="L186"><a href="#L186">186</a></th><td>- executes fc-cache after install if it is available</td></tr><tr><th id="L187"><a href="#L187">187</a></th><td></td></tr><tr><th id="L188"><a href="#L188">188</a></th><td>* Thu Nov 07 2002 Daniel Resare &lt;noa@resare.com&gt; 1.3-2</td></tr><tr><th id="L189"><a href="#L189">189</a></th><td>- Microsoft released a new service-pack. New url for Tahoma font.</td></tr><tr><th id="L190"><a href="#L190">190</a></th><td></td></tr><tr><th id="L191"><a href="#L191">191</a></th><td>* Thu Oct 24 2002 Daniel Resare &lt;noa@resare.com&gt; 1.3-1</td></tr><tr><th id="L192"><a href="#L192">192</a></th><td>- removed python hack</td></tr><tr><th id="L193"><a href="#L193">193</a></th><td>- removed python hack info from description</td></tr><tr><th id="L194"><a href="#L194">194</a></th><td>- made tahoma inclusion depend on define</td></tr><tr><th id="L195"><a href="#L195">195</a></th><td>- added some info on the ttmkfdir define</td></tr><tr><th id="L196"><a href="#L196">196</a></th><td></td></tr><tr><th id="L197"><a href="#L197">197</a></th><td>* Tue Aug 27 2002 Daniel Resare &lt;noa@resare.com&gt; 1.2-3</td></tr><tr><th id="L198"><a href="#L198">198</a></th><td>- fixed spec error when tahoma is not included </td></tr><tr><th id="L199"><a href="#L199">199</a></th><td></td></tr><tr><th id="L200"><a href="#L200">200</a></th><td>* Tue Aug 27 2002 Daniel Resare &lt;noa@resare.com&gt; 1.2-2</td></tr><tr><th id="L201"><a href="#L201">201</a></th><td>- removed tahoma due to unclear licensing</td></tr><tr><th id="L202"><a href="#L202">202</a></th><td>- parametrized ttmkfdir path (for mandrake users)</td></tr><tr><th id="L203"><a href="#L203">203</a></th><td>- changed description text to reflect the new microsoft policy</td></tr><tr><th id="L204"><a href="#L204">204</a></th><td></td></tr><tr><th id="L205"><a href="#L205">205</a></th><td>* Thu Aug 15 2002 Daniel Resare &lt;noa@resare.com&gt; 1.2-1</td></tr><tr><th id="L206"><a href="#L206">206</a></th><td>- changed distserver because microsoft no longer provides them</td></tr><tr><th id="L207"><a href="#L207">207</a></th><td></td></tr><tr><th id="L208"><a href="#L208">208</a></th><td>* Tue Apr 09 2002 Daniel Resare &lt;noa@resare.com&gt; 1.1-3</td></tr><tr><th id="L209"><a href="#L209">209</a></th><td>- fixed post/preun script to actually do what they were supposed to do</td></tr><tr><th id="L210"><a href="#L210">210</a></th><td></td></tr><tr><th id="L211"><a href="#L211">211</a></th><td>* Tue Mar 12 2002 Daniel Resare &lt;noa@resare.com&gt; 1.1-2</td></tr><tr><th id="L212"><a href="#L212">212</a></th><td>- removed cabextact from this package</td></tr><tr><th id="L213"><a href="#L213">213</a></th><td>- added tahoma font from ie5.5 update</td></tr><tr><th id="L214"><a href="#L214">214</a></th><td></td></tr><tr><th id="L215"><a href="#L215">215</a></th><td>* Fri Aug 25 2001 Daniel Resare &lt;noa@metamatrix.se&gt;</td></tr><tr><th id="L216"><a href="#L216">216</a></th><td>- initial version</td></tr></tbody></table>
        </div>
          <div class="buttons">
            <form method="get" action="">
              <div id="delete">
                <input type="hidden" name="action" value="delete" />
                <input type="submit" value="Delete attachment" />
              </div>
            </form>
          </div>
    </div>
    <div id="altlinks">
      <h3>Download in other formats:</h3>
      <ul>
        <li class="last first">
          <a rel="nofollow" href="/projects/misc/raw-attachment/wiki/HowToInstallFedoraDevMachine/msttcorefonts-2.0-1.spec">Original Format</a>
        </li>
      </ul>
    </div>
    </div>
    <div id="footer" lang="en" xml:lang="en"><hr />
      <a id="tracpowered" href="http://trac.edgewall.org/"><img src="/projects/misc/chrome/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered" /></a>
      <p class="left">
        Powered by <a href="/projects/misc/about"><strong>Trac 0.11.2.1</strong></a><br />
        By <a href="http://www.edgewall.org/">Edgewall Software</a>.
      </p>
      <p class="right">Visit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a></p>
    </div>
  </body>
</html>
acf09c894d16e988e66764df6b098c1be5969332
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  
  


  

  <head>
    <title>
      Attachment – Misc Stuff
    </title>
        <link rel="search" href="/projects/misc/search" />
        <link rel="help" href="/projects/misc/wiki/TracGuide" />
        <link rel="alternate" href="/projects/misc/raw-attachment/wiki/HowToInstallFedoraDevMachine/msttcorefonts-2.0-1.spec" title="Original Format" />
        <link rel="up" href="/projects/misc/wiki/HowToInstallFedoraDevMachine" title="HowToInstallFedoraDevMachine" />
        <link rel="start" href="/projects/misc/wiki" />
        <link rel="stylesheet" href="/projects/misc/chrome/common/css/trac.css" type="text/css" /><link rel="stylesheet" href="/projects/misc/chrome/common/css/code.css" type="text/css" />
        <link rel="shortcut icon" href="/projects/misc/chrome/common/trac.ico" type="image/x-icon" />
        <link rel="icon" href="/projects/misc/chrome/common/trac.ico" type="image/x-icon" />
      <link type="application/opensearchdescription+xml" rel="search" href="/projects/misc/search/opensearch" title="Search Misc Stuff" />
    <script type="text/javascript" src="/projects/misc/chrome/common/js/jquery.js"></script><script type="text/javascript" src="/projects/misc/chrome/common/js/trac.js"></script><script type="text/javascript" src="/projects/misc/chrome/common/js/search.js"></script>
    <!--[if lt IE 7]>
    <script type="text/javascript" src="/projects/misc/chrome/common/js/ie_pre7_hacks.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="banner">
      <div id="header">
        <a id="logo" href="http://example.org/"><img src="/projects/misc/chrome/common/trac_banner.png" alt="" /></a>
      </div>
      <form id="search" action="/projects/misc/search" method="get">
        <div>
          <label for="proj-search">Search:</label>
          <input type="text" id="proj-search" name="q" size="18" value="" />
          <input type="submit" value="Search" />
        </div>
      </form>
      <div id="metanav" class="nav">
    <ul>
      <li class="first">logged in as scottwb@gmail.com</li><li><a href="/projects/misc/logout">Logout</a></li><li><a href="/projects/misc/wiki/TracGuide">Help/Guide</a></li><li><a href="/projects/misc/about">About Trac</a></li><li class="last"><a href="/projects/misc/prefs">Preferences</a></li>
    </ul>
  </div>
    </div>
    <div id="mainnav" class="nav">
    <ul>
      <li class="first active"><a href="/projects/misc/wiki">Wiki</a></li><li><a href="/projects/misc/timeline">Timeline</a></li><li><a href="/projects/misc/roadmap">Roadmap</a></li><li><a href="/projects/misc/browser">Browse Source</a></li><li><a href="/projects/misc/report">View Tickets</a></li><li><a href="/projects/misc/newticket">New Ticket</a></li><li><a href="/projects/misc/search">Search</a></li><li class="last"><a href="/projects/misc/admin" title="Administration">Admin</a></li>
    </ul>
  </div>
    <div id="main">
      <div id="ctxtnav" class="nav">
        <h2>Context Navigation</h2>
          <ul>
            <li class="first last"><a href="/projects/misc/wiki/HowToInstallFedoraDevMachine">Back to HowToInstallFedoraDevMachine</a></li>
          </ul>
        <hr />
      </div>
    <div id="content" class="attachment">
        <h1><a href="/projects/misc/wiki/HowToInstallFedoraDevMachine">HowToInstallFedoraDevMachine</a>: msttcorefonts-2.0-1.spec</h1>
        <table id="info" summary="Description">
          <tbody>
            <tr>
              <th scope="col">
                File msttcorefonts-2.0-1.spec, <span title="6386 bytes">6.2 KB</span>
                (added by scottwb@gmail.com,  <a class="timeline" href="/projects/misc/timeline?from=2008-03-30T23%3A02%3A22Z-0400&amp;precision=second" title="2008-03-30T23:02:22Z-0400 in Timeline">3 years</a> ago)
              </th>
            </tr>
            <tr>
              <td class="message searchable">
                <p>
Spec file for installing Microsoft Fonts.
</p>

              </td>
            </tr>
          </tbody>
        </table>
        <div id="preview" class="searchable">
    <table class="code"><thead><tr><th class="lineno" title="Line numbers">Line</th><th class="content"> </th></tr></thead><tbody><tr><th id="L1"><a href="#L1">1</a></th><td># This is the msttcorefonts spec file as distributed from</td></tr><tr><th id="L2"><a href="#L2">2</a></th><td># http://corefonts.sourceforge.net/. </td></tr><tr><th id="L3"><a href="#L3">3</a></th><td></td></tr><tr><th id="L4"><a href="#L4">4</a></th><td>%define name msttcorefonts</td></tr><tr><th id="L5"><a href="#L5">5</a></th><td></td></tr><tr><th id="L6"><a href="#L6">6</a></th><td># nowdays most (all?) distributions seems to use this. Oh the joys of the FHS</td></tr><tr><th id="L7"><a href="#L7">7</a></th><td>%define ttmkfdir /usr/bin/ttmkfdir</td></tr><tr><th id="L8"><a href="#L8">8</a></th><td></td></tr><tr><th id="L9"><a href="#L9">9</a></th><td>%define fontdir /usr/share/fonts/%{name}</td></tr><tr><th id="L10"><a href="#L10">10</a></th><td></td></tr><tr><th id="L11"><a href="#L11">11</a></th><td>Summary: TrueType core fonts for the web</td></tr><tr><th id="L12"><a href="#L12">12</a></th><td>Name: %{name}</td></tr><tr><th id="L13"><a href="#L13">13</a></th><td>Version: 2.0</td></tr><tr><th id="L14"><a href="#L14">14</a></th><td>Release: 1</td></tr><tr><th id="L15"><a href="#L15">15</a></th><td>License: Spec file is GPL, binary rpm is gratis but non-distributable</td></tr><tr><th id="L16"><a href="#L16">16</a></th><td>Group: User Interface/X</td></tr><tr><th id="L17"><a href="#L17">17</a></th><td>BuildArch: noarch</td></tr><tr><th id="L18"><a href="#L18">18</a></th><td>BuildRoot: /var/tmp/%{name}-root</td></tr><tr><th id="L19"><a href="#L19">19</a></th><td>BuildPrereq: %{ttmkfdir}</td></tr><tr><th id="L20"><a href="#L20">20</a></th><td>BuildPrereq: wget</td></tr><tr><th id="L21"><a href="#L21">21</a></th><td>BuildPrereq: cabextract</td></tr><tr><th id="L22"><a href="#L22">22</a></th><td>Prereq: /usr/sbin/chkfontpath</td></tr><tr><th id="L23"><a href="#L23">23</a></th><td>Packager: Noa Resare &lt;noa@resare.com&gt;</td></tr><tr><th id="L24"><a href="#L24">24</a></th><td></td></tr><tr><th id="L25"><a href="#L25">25</a></th><td>%description</td></tr><tr><th id="L26"><a href="#L26">26</a></th><td>The TrueType core fonts for the web that was once available from</td></tr><tr><th id="L27"><a href="#L27">27</a></th><td>http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly</td></tr><tr><th id="L28"><a href="#L28">28</a></th><td>constructed so that the actual fonts are downloaded from Sourceforge's site</td></tr><tr><th id="L29"><a href="#L29">29</a></th><td>at build time. Therefore this package technically does not 'redistribute'</td></tr><tr><th id="L30"><a href="#L30">30</a></th><td>the fonts, it just makes it easy to install them on a linux system.</td></tr><tr><th id="L31"><a href="#L31">31</a></th><td></td></tr><tr><th id="L32"><a href="#L32">32</a></th><td>%prep</td></tr><tr><th id="L33"><a href="#L33">33</a></th><td>mkdir -p %{name}/downloads</td></tr><tr><th id="L34"><a href="#L34">34</a></th><td>cd %{name}/downloads</td></tr><tr><th id="L35"><a href="#L35">35</a></th><td></td></tr><tr><th id="L36"><a href="#L36">36</a></th><td># this is the sourceforge mirrorlist as of 2006-04-30. If someone spots changes</td></tr><tr><th id="L37"><a href="#L37">37</a></th><td># over at sourcforge, feel free to email me and I'll update the list</td></tr><tr><th id="L38"><a href="#L38">38</a></th><td>mirrors="easynews+heanet+superb-west+internap+switch+ufpr+surfnet+umn+kent+mesh+superb-east+jaist"</td></tr><tr><th id="L39"><a href="#L39">39</a></th><td>mirror_count=12</td></tr><tr><th id="L40"><a href="#L40">40</a></th><td></td></tr><tr><th id="L41"><a href="#L41">41</a></th><td>andale32_md5="cbdc2fdd7d2ed0832795e86a8b9ee19a  andale32.exe"</td></tr><tr><th id="L42"><a href="#L42">42</a></th><td>arial32_md5="9637df0e91703179f0723ec095a36cb5  arial32.exe"</td></tr><tr><th id="L43"><a href="#L43">43</a></th><td>arialb32_md5="c9089ae0c3b3d0d8c4b0a95979bb9ff0  arialb32.exe"</td></tr><tr><th id="L44"><a href="#L44">44</a></th><td>comic32_md5="2b30de40bb5e803a0452c7715fc835d1  comic32.exe"</td></tr><tr><th id="L45"><a href="#L45">45</a></th><td>courie32_md5="4e412c772294403ab62fb2d247d85c60  courie32.exe"</td></tr><tr><th id="L46"><a href="#L46">46</a></th><td>georgi32_md5="4d90016026e2da447593b41a8d8fa8bd  georgi32.exe"</td></tr><tr><th id="L47"><a href="#L47">47</a></th><td>impact32_md5="7907c7dd6684e9bade91cff82683d9d7  impact32.exe"</td></tr><tr><th id="L48"><a href="#L48">48</a></th><td>times32_md5="ed39c8ef91b9fb80f76f702568291bd5  times32.exe"</td></tr><tr><th id="L49"><a href="#L49">49</a></th><td>trebuc32_md5="0d7ea16cac6261f8513a061fbfcdb2b5  trebuc32.exe"</td></tr><tr><th id="L50"><a href="#L50">50</a></th><td>webdin32_md5="230a1d13a365b22815f502eb24d9149b  webdin32.exe"</td></tr><tr><th id="L51"><a href="#L51">51</a></th><td>verdan32_md5="12d2a75f8156e10607be1eaa8e8ef120  verdan32.exe"</td></tr><tr><th id="L52"><a href="#L52">52</a></th><td>wd97vwr32_md5="efa72d3ed0120a07326ce02f051e9b42  wd97vwr32.exe"</td></tr><tr><th id="L53"><a href="#L53">53</a></th><td></td></tr><tr><th id="L54"><a href="#L54">54</a></th><td>download_files="andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe webdin32.exe verdan32.exe wd97vwr32.exe"</td></tr><tr><th id="L55"><a href="#L55">55</a></th><td></td></tr><tr><th id="L56"><a href="#L56">56</a></th><td></td></tr><tr><th id="L57"><a href="#L57">57</a></th><td>failures=0</td></tr><tr><th id="L58"><a href="#L58">58</a></th><td></td></tr><tr><th id="L59"><a href="#L59">59</a></th><td>function set_mirror {</td></tr><tr><th id="L60"><a href="#L60">60</a></th><td>        local r m</td></tr><tr><th id="L61"><a href="#L61">61</a></th><td>        r=`expr $RANDOM % $mirror_count + 1`</td></tr><tr><th id="L62"><a href="#L62">62</a></th><td>        m=`echo $mirrors |cut -d+ -f$r`</td></tr><tr><th id="L63"><a href="#L63">63</a></th><td>        mirror="http://${m}.dl.sourceforge.net/sourceforge/corefonts/"</td></tr><tr><th id="L64"><a href="#L64">64</a></th><td></td></tr><tr><th id="L65"><a href="#L65">65</a></th><td>}</td></tr><tr><th id="L66"><a href="#L66">66</a></th><td></td></tr><tr><th id="L67"><a href="#L67">67</a></th><td>function check_file {</td></tr><tr><th id="L68"><a href="#L68">68</a></th><td>        matches=</td></tr><tr><th id="L69"><a href="#L69">69</a></th><td>        if [ ! -r $1 ]</td></tr><tr><th id="L70"><a href="#L70">70</a></th><td>        then</td></tr><tr><th id="L71"><a href="#L71">71</a></th><td>                echo "$1 does not exist"</td></tr><tr><th id="L72"><a href="#L72">72</a></th><td>                return</td></tr><tr><th id="L73"><a href="#L73">73</a></th><td>        fi</td></tr><tr><th id="L74"><a href="#L74">74</a></th><td>        local variable_name=`basename $1 .exe`_md5</td></tr><tr><th id="L75"><a href="#L75">75</a></th><td>        local stored_checksum</td></tr><tr><th id="L76"><a href="#L76">76</a></th><td>        eval stored_checksum=\$$variable_name</td></tr><tr><th id="L77"><a href="#L77">77</a></th><td>        local computed_checksum=`md5sum $1`</td></tr><tr><th id="L78"><a href="#L78">78</a></th><td>        if [ "$stored_checksum" = "$computed_checksum" ]</td></tr><tr><th id="L79"><a href="#L79">79</a></th><td>        then</td></tr><tr><th id="L80"><a href="#L80">80</a></th><td>                matches=yes</td></tr><tr><th id="L81"><a href="#L81">81</a></th><td>        else</td></tr><tr><th id="L82"><a href="#L82">82</a></th><td>                rm $1</td></tr><tr><th id="L83"><a href="#L83">83</a></th><td>                matches=</td></tr><tr><th id="L84"><a href="#L84">84</a></th><td>        fi</td></tr><tr><th id="L85"><a href="#L85">85</a></th><td>}</td></tr><tr><th id="L86"><a href="#L86">86</a></th><td></td></tr><tr><th id="L87"><a href="#L87">87</a></th><td>function download {</td></tr><tr><th id="L88"><a href="#L88">88</a></th><td>        wget --timeout=5 -O "$2" $1$2</td></tr><tr><th id="L89"><a href="#L89">89</a></th><td>}</td></tr><tr><th id="L90"><a href="#L90">90</a></th><td></td></tr><tr><th id="L91"><a href="#L91">91</a></th><td>set_mirror</td></tr><tr><th id="L92"><a href="#L92">92</a></th><td>for f in $download_files</td></tr><tr><th id="L93"><a href="#L93">93</a></th><td>do</td></tr><tr><th id="L94"><a href="#L94">94</a></th><td>        check_file $f</td></tr><tr><th id="L95"><a href="#L95">95</a></th><td>        while [ ! $matches ]</td></tr><tr><th id="L96"><a href="#L96">96</a></th><td>        do</td></tr><tr><th id="L97"><a href="#L97">97</a></th><td>                download $mirror $f</td></tr><tr><th id="L98"><a href="#L98">98</a></th><td>                check_file $f</td></tr><tr><th id="L99"><a href="#L99">99</a></th><td>                if [ ! $matches ]</td></tr><tr><th id="L100"><a href="#L100">100</a></th><td>                then</td></tr><tr><th id="L101"><a href="#L101">101</a></th><td>                        echo "failed to download $mirror$f"</td></tr><tr><th id="L102"><a href="#L102">102</a></th><td>                        failures=`expr $failures + 1`</td></tr><tr><th id="L103"><a href="#L103">103</a></th><td>                        if [ $failures -gt 5 ]</td></tr><tr><th id="L104"><a href="#L104">104</a></th><td>                        then</td></tr><tr><th id="L105"><a href="#L105">105</a></th><td>                                echo "failed to download too many times."</td></tr><tr><th id="L106"><a href="#L106">106</a></th><td>                                exit</td></tr><tr><th id="L107"><a href="#L107">107</a></th><td>                        fi</td></tr><tr><th id="L108"><a href="#L108">108</a></th><td>                        set_mirror</td></tr><tr><th id="L109"><a href="#L109">109</a></th><td>                fi</td></tr><tr><th id="L110"><a href="#L110">110</a></th><td>        done</td></tr><tr><th id="L111"><a href="#L111">111</a></th><td>done</td></tr><tr><th id="L112"><a href="#L112">112</a></th><td></td></tr><tr><th id="L113"><a href="#L113">113</a></th><td></td></tr><tr><th id="L114"><a href="#L114">114</a></th><td>%build</td></tr><tr><th id="L115"><a href="#L115">115</a></th><td></td></tr><tr><th id="L116"><a href="#L116">116</a></th><td>font_files="andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe webdin32.exe verdan32.exe"</td></tr><tr><th id="L117"><a href="#L117">117</a></th><td></td></tr><tr><th id="L118"><a href="#L118">118</a></th><td>cd %{name}</td></tr><tr><th id="L119"><a href="#L119">119</a></th><td></td></tr><tr><th id="L120"><a href="#L120">120</a></th><td>rm -rf cab-contents fonts</td></tr><tr><th id="L121"><a href="#L121">121</a></th><td></td></tr><tr><th id="L122"><a href="#L122">122</a></th><td>mkdir cab-contents</td></tr><tr><th id="L123"><a href="#L123">123</a></th><td>mkdir fonts</td></tr><tr><th id="L124"><a href="#L124">124</a></th><td></td></tr><tr><th id="L125"><a href="#L125">125</a></th><td>for i in $font_files</td></tr><tr><th id="L126"><a href="#L126">126</a></th><td>do</td></tr><tr><th id="L127"><a href="#L127">127</a></th><td>        if [ -f downloads/$i ]</td></tr><tr><th id="L128"><a href="#L128">128</a></th><td>        then</td></tr><tr><th id="L129"><a href="#L129">129</a></th><td>                cabextract --lowercase --directory=cab-contents downloads/$i</td></tr><tr><th id="L130"><a href="#L130">130</a></th><td>        fi</td></tr><tr><th id="L131"><a href="#L131">131</a></th><td>        cp cab-contents/*.ttf fonts</td></tr><tr><th id="L132"><a href="#L132">132</a></th><td>        rm -f cab-contents/*</td></tr><tr><th id="L133"><a href="#L133">133</a></th><td>done</td></tr><tr><th id="L134"><a href="#L134">134</a></th><td></td></tr><tr><th id="L135"><a href="#L135">135</a></th><td>cabextract --lowercase --directory=cab-contents downloads/wd97vwr32.exe</td></tr><tr><th id="L136"><a href="#L136">136</a></th><td>cabextract --lowercase --directory=cab-contents cab-contents/viewer1.cab</td></tr><tr><th id="L137"><a href="#L137">137</a></th><td>cp cab-contents/*.ttf fonts</td></tr><tr><th id="L138"><a href="#L138">138</a></th><td></td></tr><tr><th id="L139"><a href="#L139">139</a></th><td>cd fonts</td></tr><tr><th id="L140"><a href="#L140">140</a></th><td></td></tr><tr><th id="L141"><a href="#L141">141</a></th><td>%{ttmkfdir} &gt; fonts.dir</td></tr><tr><th id="L142"><a href="#L142">142</a></th><td></td></tr><tr><th id="L143"><a href="#L143">143</a></th><td>%install</td></tr><tr><th id="L144"><a href="#L144">144</a></th><td>[ "$RPM_BUILD_ROOT" != "/" ] &amp;&amp; rm -rf $RPM_BUILD_ROOT</td></tr><tr><th id="L145"><a href="#L145">145</a></th><td>cd %{name}/fonts</td></tr><tr><th id="L146"><a href="#L146">146</a></th><td>mkdir -p $RPM_BUILD_ROOT/%{fontdir}</td></tr><tr><th id="L147"><a href="#L147">147</a></th><td>cp *.ttf fonts.dir $RPM_BUILD_ROOT/%{fontdir}</td></tr><tr><th id="L148"><a href="#L148">148</a></th><td></td></tr><tr><th id="L149"><a href="#L149">149</a></th><td>%clean</td></tr><tr><th id="L150"><a href="#L150">150</a></th><td>[ "$RPM_BUILD_ROOT" != "/" ] &amp;&amp; rm -rf $RPM_BUILD_ROOT</td></tr><tr><th id="L151"><a href="#L151">151</a></th><td></td></tr><tr><th id="L152"><a href="#L152">152</a></th><td>%post</td></tr><tr><th id="L153"><a href="#L153">153</a></th><td>if test $1 -eq 1</td></tr><tr><th id="L154"><a href="#L154">154</a></th><td>then</td></tr><tr><th id="L155"><a href="#L155">155</a></th><td>        /usr/sbin/chkfontpath --add %{fontdir}</td></tr><tr><th id="L156"><a href="#L156">156</a></th><td>fi</td></tr><tr><th id="L157"><a href="#L157">157</a></th><td># something has probably changed, update the font-config cache</td></tr><tr><th id="L158"><a href="#L158">158</a></th><td>if test -x /usr/bin/fc-cache</td></tr><tr><th id="L159"><a href="#L159">159</a></th><td>then</td></tr><tr><th id="L160"><a href="#L160">160</a></th><td>        /usr/bin/fc-cache</td></tr><tr><th id="L161"><a href="#L161">161</a></th><td>fi</td></tr><tr><th id="L162"><a href="#L162">162</a></th><td></td></tr><tr><th id="L163"><a href="#L163">163</a></th><td>%preun</td></tr><tr><th id="L164"><a href="#L164">164</a></th><td>if test $1 -eq 0</td></tr><tr><th id="L165"><a href="#L165">165</a></th><td>then</td></tr><tr><th id="L166"><a href="#L166">166</a></th><td>        /usr/sbin/chkfontpath --remove %{fontdir}</td></tr><tr><th id="L167"><a href="#L167">167</a></th><td>fi</td></tr><tr><th id="L168"><a href="#L168">168</a></th><td></td></tr><tr><th id="L169"><a href="#L169">169</a></th><td>%files</td></tr><tr><th id="L170"><a href="#L170">170</a></th><td>%attr(-,root,root) %{fontdir}</td></tr><tr><th id="L171"><a href="#L171">171</a></th><td>%dir %{fontdir}</td></tr><tr><th id="L172"><a href="#L172">172</a></th><td></td></tr><tr><th id="L173"><a href="#L173">173</a></th><td>%changelog</td></tr><tr><th id="L174"><a href="#L174">174</a></th><td>* Sun May 07 2006 Noa Resare &lt;noa@resare.com&gt; 2.0-1</td></tr><tr><th id="L175"><a href="#L175">175</a></th><td>- checksums downloads</td></tr><tr><th id="L176"><a href="#L176">176</a></th><td>- random mirror</td></tr><tr><th id="L177"><a href="#L177">177</a></th><td>- use redistributable word 97 viewer as source for tahoma.ttf</td></tr><tr><th id="L178"><a href="#L178">178</a></th><td></td></tr><tr><th id="L179"><a href="#L179">179</a></th><td>* Mon Mar 31 2003 Daniel Resare &lt;noa@resare.com&gt; 1.3-4</td></tr><tr><th id="L180"><a href="#L180">180</a></th><td>- updated microsoft link</td></tr><tr><th id="L181"><a href="#L181">181</a></th><td>- updated sourceforge mirrors</td></tr><tr><th id="L182"><a href="#L182">182</a></th><td></td></tr><tr><th id="L183"><a href="#L183">183</a></th><td>* Mon Nov 25 2002 Daniel Resare &lt;noa@resare.com&gt; 1.3-3</td></tr><tr><th id="L184"><a href="#L184">184</a></th><td>- the install dir is now deleted when the package is uninstalled</td></tr><tr><th id="L185"><a href="#L185">185</a></th><td>- executable permission removed from the fonts</td></tr><tr><th id="L186"><a href="#L186">186</a></th><td>- executes fc-cache after install if it is available</td></tr><tr><th id="L187"><a href="#L187">187</a></th><td></td></tr><tr><th id="L188"><a href="#L188">188</a></th><td>* Thu Nov 07 2002 Daniel Resare &lt;noa@resare.com&gt; 1.3-2</td></tr><tr><th id="L189"><a href="#L189">189</a></th><td>- Microsoft released a new service-pack. New url for Tahoma font.</td></tr><tr><th id="L190"><a href="#L190">190</a></th><td></td></tr><tr><th id="L191"><a href="#L191">191</a></th><td>* Thu Oct 24 2002 Daniel Resare &lt;noa@resare.com&gt; 1.3-1</td></tr><tr><th id="L192"><a href="#L192">192</a></th><td>- removed python hack</td></tr><tr><th id="L193"><a href="#L193">193</a></th><td>- removed python hack info from description</td></tr><tr><th id="L194"><a href="#L194">194</a></th><td>- made tahoma inclusion depend on define</td></tr><tr><th id="L195"><a href="#L195">195</a></th><td>- added some info on the ttmkfdir define</td></tr><tr><th id="L196"><a href="#L196">196</a></th><td></td></tr><tr><th id="L197"><a href="#L197">197</a></th><td>* Tue Aug 27 2002 Daniel Resare &lt;noa@resare.com&gt; 1.2-3</td></tr><tr><th id="L198"><a href="#L198">198</a></th><td>- fixed spec error when tahoma is not included </td></tr><tr><th id="L199"><a href="#L199">199</a></th><td></td></tr><tr><th id="L200"><a href="#L200">200</a></th><td>* Tue Aug 27 2002 Daniel Resare &lt;noa@resare.com&gt; 1.2-2</td></tr><tr><th id="L201"><a href="#L201">201</a></th><td>- removed tahoma due to unclear licensing</td></tr><tr><th id="L202"><a href="#L202">202</a></th><td>- parametrized ttmkfdir path (for mandrake users)</td></tr><tr><th id="L203"><a href="#L203">203</a></th><td>- changed description text to reflect the new microsoft policy</td></tr><tr><th id="L204"><a href="#L204">204</a></th><td></td></tr><tr><th id="L205"><a href="#L205">205</a></th><td>* Thu Aug 15 2002 Daniel Resare &lt;noa@resare.com&gt; 1.2-1</td></tr><tr><th id="L206"><a href="#L206">206</a></th><td>- changed distserver because microsoft no longer provides them</td></tr><tr><th id="L207"><a href="#L207">207</a></th><td></td></tr><tr><th id="L208"><a href="#L208">208</a></th><td>* Tue Apr 09 2002 Daniel Resare &lt;noa@resare.com&gt; 1.1-3</td></tr><tr><th id="L209"><a href="#L209">209</a></th><td>- fixed post/preun script to actually do what they were supposed to do</td></tr><tr><th id="L210"><a href="#L210">210</a></th><td></td></tr><tr><th id="L211"><a href="#L211">211</a></th><td>* Tue Mar 12 2002 Daniel Resare &lt;noa@resare.com&gt; 1.1-2</td></tr><tr><th id="L212"><a href="#L212">212</a></th><td>- removed cabextact from this package</td></tr><tr><th id="L213"><a href="#L213">213</a></th><td>- added tahoma font from ie5.5 update</td></tr><tr><th id="L214"><a href="#L214">214</a></th><td></td></tr><tr><th id="L215"><a href="#L215">215</a></th><td>* Fri Aug 25 2001 Daniel Resare &lt;noa@metamatrix.se&gt;</td></tr><tr><th id="L216"><a href="#L216">216</a></th><td>- initial version</td></tr></tbody></table>
        </div>
          <div class="buttons">
            <form method="get" action="">
              <div id="delete">
                <input type="hidden" name="action" value="delete" />
                <input type="submit" value="Delete attachment" />
              </div>
            </form>
          </div>
    </div>
    <div id="altlinks">
      <h3>Download in other formats:</h3>
      <ul>
        <li class="last first">
          <a rel="nofollow" href="/projects/misc/raw-attachment/wiki/HowToInstallFedoraDevMachine/msttcorefonts-2.0-1.spec">Original Format</a>
        </li>
      </ul>
    </div>
    </div>
    <div id="footer" lang="en" xml:lang="en"><hr />
      <a id="tracpowered" href="http://trac.edgewall.org/"><img src="/projects/misc/chrome/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered" /></a>
      <p class="left">
        Powered by <a href="/projects/misc/about"><strong>Trac 0.11.2.1</strong></a><br />
        By <a href="http://www.edgewall.org/">Edgewall Software</a>.
      </p>
      <p class="right">Visit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a></p>
    </div>
  </body>
</html>