[2504] | 1 | %define tlversion 2009 |
---|
| 2 | |
---|
| 3 | %define hirapropver 0.3 |
---|
| 4 | %define kokanaver 1.0b2 |
---|
| 5 | %define otfver 1.5.6.1 |
---|
| 6 | |
---|
| 7 | %define texmf %{_datadir}/texmf |
---|
| 8 | %define texvf %{texmf}/fonts/vf/public |
---|
| 9 | %define texofm %{texmf}/fonts/ofm/public |
---|
| 10 | %define textfm %{texmf}/fonts/tfm/public |
---|
| 11 | %define mapdir %{texmf}/fonts/map/dvipdfm |
---|
| 12 | %define build_texmf %{buildroot}%{texmf} |
---|
| 13 | %define build_texvf %{buildroot}%{texvf} |
---|
| 14 | %define build_texofm %{buildroot}%{texofm} |
---|
| 15 | %define build_textfm %{buildroot}%{textfm} |
---|
| 16 | %define build_mapdir %{buildroot}%{mapdir} |
---|
| 17 | %define dvipdfmconfig %{texmf}/dvipdfm/config |
---|
| 18 | |
---|
| 19 | %define exec_updmap [ -x %{_bindir}/updmap-sys ] && %{_bindir}/env - %{_bindir}/updmap-sys --nostop 2> /dev/null |
---|
| 20 | %define exec_updmap_otf [ -x %{_bindir}/updmap-otf ] && %{_bindir}/env - %{_bindir}/updmap-otf auto 2> /dev/null |
---|
| 21 | |
---|
| 22 | %if %{?_dist_release} == "vl5" |
---|
| 23 | Conflicts: texmacro-otf |
---|
| 24 | %endif |
---|
| 25 | |
---|
| 26 | Summary: TeX Live macro packages for "VF for OpenType Fonts" by S. Saito |
---|
| 27 | Summary(ja): TeX Live で使うマクロパッケージ (齋藤修三郎氏による「OpenType Font用VF」) |
---|
| 28 | Name: texlive-texmacro-otf |
---|
| 29 | Version: %{otfver} |
---|
| 30 | Release: 2%{?_dist_release} |
---|
| 31 | BuildArch: noarch |
---|
| 32 | # #Source0: http://psitau.at.infoseek.co.jp/otfstable.zip |
---|
| 33 | # Source0: otfstable-%{version}.tar.bz2 |
---|
| 34 | # $ md5sum otfcurrent.zip |
---|
| 35 | # fc38d8384f73ae4b4238698eef4e11fd otfcurrent.zip |
---|
| 36 | # $ unzip otfcurrent.zip |
---|
| 37 | # $ mv otfcurrent otfcurrent-1.5.6.1 |
---|
| 38 | # $ tar jcf otfcurrent-1.5.6.1.tar.bz2 otfcurrent-1.5.6.1 |
---|
| 39 | #Source0: http://psitau.at.infoseek.co.jp/otfstable.zip |
---|
| 40 | Source0: otfcurrent-%{version}.tar.bz2 |
---|
| 41 | #Source1: http://psitau.at.infoseek.co.jp/hiraprop.zip |
---|
| 42 | Source1: hiraprop-%{hirapropver}.tar.bz2 |
---|
| 43 | #Source2: http://psitau.at.infoseek.co.jp/kokana.zip |
---|
| 44 | Source2: kokana-%{kokanaver}.tar.bz2 |
---|
| 45 | Source3: http://psitau.at.infoseek.co.jp/otfmanual.pdf |
---|
| 46 | Source4: http://psitau.at.infoseek.co.jp/kitunetuki.pdf |
---|
| 47 | Source5: http://psitau.at.infoseek.co.jp/meijinden.pdf |
---|
| 48 | Source10: updmap-otf |
---|
| 49 | Source20: otf-noEmbed.map |
---|
| 50 | Source21: otf-cktx.map |
---|
| 51 | |
---|
| 52 | Patch1: texmacro-otf-RmlGbm.patch |
---|
| 53 | |
---|
| 54 | URL: http://psitau.at.infoseek.co.jp/otf.html |
---|
| 55 | License: distributable |
---|
| 56 | Group: Applications/Publishing |
---|
| 57 | BuildRequires: texlive = %{tlversion} |
---|
| 58 | BuildRequires: perl, nkf |
---|
| 59 | Requires: texlive = %{tlversion} |
---|
| 60 | Requires: ghostscript |
---|
| 61 | |
---|
| 62 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 63 | |
---|
| 64 | Distribution: Vine Linux |
---|
| 65 | Vendor: Project Vine |
---|
| 66 | |
---|
| 67 | %description |
---|
| 68 | TeX Live macro packages of VF for OpenType Fonts by SAITO Shuzaburo |
---|
| 69 | Users can use these macros on platex. |
---|
| 70 | Including |
---|
| 71 | hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty |
---|
| 72 | otfaltkana.sty redeffont.sty |
---|
| 73 | |
---|
| 74 | %description -l ja |
---|
| 75 | 齋藤修三郎氏作成の TeX Live で用いる追加マクロパッケージです。 |
---|
| 76 | LaTeX(pLaTeX2e)でOpen Type Fontを有効に利用するための |
---|
| 77 | VF およびスタイルファイルです。 |
---|
| 78 | platex 上で利用できます。 |
---|
| 79 | 以下のマクロが含まれています。 |
---|
| 80 | hiraprop.sty ajmacros.sty mlcid.sty mlutf.sty otf.sty |
---|
| 81 | otfaltkana.sty redeffont.sty |
---|
| 82 | |
---|
| 83 | %prep |
---|
| 84 | %setup -q -c -n %{name}-%{version} -a 1 -a 2 |
---|
| 85 | |
---|
| 86 | #for i in `grep -l -ir ovp2ovf * | grep -v readme`; |
---|
| 87 | #do |
---|
| 88 | # perl -pi -e "s@ovp2ovf@ovp2ovf-1.11@" $i |
---|
| 89 | #done |
---|
| 90 | |
---|
| 91 | ## rename from pltotf to ppltotf |
---|
| 92 | %__sed -i -e "s,^pltotf,ppltotf,g" kokana-%{kokanaver}/makealtkana || exit 1 |
---|
| 93 | |
---|
| 94 | %build |
---|
| 95 | |
---|
| 96 | # ###### otfstable ##### |
---|
| 97 | pushd otfcurrent-%{version} |
---|
| 98 | ./makeotf |
---|
| 99 | popd |
---|
| 100 | |
---|
| 101 | ###### kokana ##### |
---|
| 102 | pushd kokana-%{kokanaver} |
---|
| 103 | nkf -be basepl/base-h.pl > base-h.pl |
---|
| 104 | nkf -be basepl/base-v.pl > base-v.pl |
---|
| 105 | %__mv -f base-[hv].pl basepl |
---|
| 106 | ./makealtkana |
---|
| 107 | popd |
---|
| 108 | |
---|
| 109 | %install |
---|
| 110 | %__rm -rf %{buildroot} |
---|
| 111 | |
---|
| 112 | %__mkdir fontmap test pdf |
---|
| 113 | %__mkdir_p %{buildroot}%{_bindir} |
---|
| 114 | %__mkdir_p %{build_texmf}/ptex/platex/otf |
---|
| 115 | %__mkdir_p %{build_texmf}-var/updmap-otf |
---|
| 116 | %__mkdir_p %{build_texvf}/otf |
---|
| 117 | %__mkdir_p %{build_textfm}/otf |
---|
| 118 | %__mkdir_p %{build_mapdir} |
---|
| 119 | |
---|
| 120 | %__install -m 644 %{SOURCE3} %{SOURCE4} %{SOURCE5} pdf |
---|
| 121 | %__install -m 755 %{SOURCE10} %{buildroot}%{_bindir}/updmap-otf |
---|
| 122 | |
---|
| 123 | ### set prefix dir ### |
---|
| 124 | %__perl -pi -e "s@/usr/local@/usr@" %{buildroot}%{_bindir}/updmap-otf |
---|
| 125 | |
---|
| 126 | ###### otfstable ##### |
---|
| 127 | pushd otfcurrent-%{version} |
---|
| 128 | %__install -m 644 sty/*.sty %{build_texmf}/ptex/platex/otf |
---|
| 129 | %__install -m 644 vf/* %{build_texvf}/otf |
---|
| 130 | %__install -m 644 tfm/* %{build_textfm}/otf |
---|
| 131 | |
---|
| 132 | #install -m 644 fontmap/cktx.map* %{build_mapdir}/otf-cktx.map |
---|
| 133 | #install -m 644 fontmap/hiraginox.map* %{build_mapdir}/otf-hiraginox.map |
---|
| 134 | %__sed -e 's/W.$/&.otf/g' fontmap/hiraginox.map* > %{build_mapdir}/otf-hiraginox.map |
---|
| 135 | %__install -m 644 fontmap/kozukax.map* %{build_mapdir}/otf-kozukax.map |
---|
| 136 | %__install -m 644 fontmap/morisawax.map* %{build_mapdir}/otf-morisawax.map |
---|
| 137 | |
---|
| 138 | ## morisawa map files remaped PS Kanji (CIDFont) Name |
---|
| 139 | %__sed -e 's@A-OTF-@@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax.map |
---|
| 140 | %__sed -e 's@A-OTF-@!@g' %{build_mapdir}/otf-morisawax.map > %{build_mapdir}/otf-ps-morisawax-noEmbed.map |
---|
| 141 | |
---|
| 142 | # Install our own noFont map |
---|
| 143 | %__install -m 644 %{SOURCE20} %{build_mapdir} |
---|
| 144 | %__install -m 644 %{SOURCE21} %{build_mapdir} |
---|
| 145 | |
---|
| 146 | pushd %{build_mapdir} |
---|
| 147 | patch -p1 < %{PATCH1} |
---|
| 148 | popd |
---|
| 149 | |
---|
| 150 | %__install -m 644 fontmap/vfontmap.txt ../fontmap |
---|
| 151 | |
---|
| 152 | %__install -m 644 test/*.tex ../test |
---|
| 153 | %__install -m 644 readme.txt ../readme-otfcurrent.txt |
---|
| 154 | popd |
---|
| 155 | |
---|
| 156 | ###### hiraprop ##### |
---|
| 157 | %__mkdir_p %{build_texmf}/ptex/platex/hiraprop |
---|
| 158 | %__mkdir_p %{build_texvf}/hiraprop |
---|
| 159 | %__mkdir_p %{build_texofm}/hiraprop |
---|
| 160 | %__mkdir_p %{build_textfm}/hiraprop |
---|
| 161 | |
---|
| 162 | pushd hiraprop-%{hirapropver} |
---|
| 163 | %__install -m 644 sty/* %{build_texmf}/ptex/platex/hiraprop |
---|
| 164 | %__install -m 644 vf/hiraprop/* %{build_texvf}/hiraprop |
---|
| 165 | %__install -m 644 ofm/hiraprop/* %{build_texofm}/hiraprop |
---|
| 166 | %__install -m 644 tfm/hiraprop/* %{build_textfm}/hiraprop |
---|
| 167 | |
---|
| 168 | %__install -m 644 *.tex ../test |
---|
| 169 | %__install -m 644 readme.txt ../readme-hiraprop.txt |
---|
| 170 | popd |
---|
| 171 | |
---|
| 172 | ###### kokana ##### |
---|
| 173 | pushd kokana-%{kokanaver} |
---|
| 174 | %__install -m 644 otfaltkana.sty %{build_texmf}/ptex/platex/otf |
---|
| 175 | %__install -m 644 vf/* %{build_texvf}/otf |
---|
| 176 | %__install -m 644 tfm/* %{build_textfm}/otf |
---|
| 177 | |
---|
| 178 | %__install -m 644 sample/kokanatest.tex ../test |
---|
| 179 | %__install -m 644 readme.txt ../readme-kokana.txt |
---|
| 180 | popd |
---|
| 181 | |
---|
| 182 | |
---|
| 183 | %post |
---|
| 184 | %{exec_updmap} |
---|
| 185 | %{exec_updmap_otf} |
---|
| 186 | exit 0 |
---|
| 187 | |
---|
| 188 | %postun |
---|
| 189 | if [ "$1" = 0 ]; then |
---|
| 190 | %__rm -rf %{texmf}-var/updmap-otf |
---|
| 191 | %{exec_updmap} |
---|
| 192 | fi |
---|
| 193 | exit 0 |
---|
| 194 | |
---|
| 195 | %clean |
---|
| 196 | %__rm -rf %{buildroot} |
---|
| 197 | |
---|
| 198 | %files |
---|
| 199 | %defattr(-,root,root) |
---|
| 200 | %doc readme* fontmap test pdf |
---|
| 201 | %dir %{texmf}-var/updmap-otf |
---|
| 202 | %{_bindir}/updmap-otf |
---|
| 203 | %{texmf}/ptex/platex/otf |
---|
| 204 | %{texmf}/ptex/platex/hiraprop |
---|
| 205 | %{texvf} |
---|
| 206 | %{textfm} |
---|
| 207 | %{texofm} |
---|
| 208 | %{mapdir} |
---|
| 209 | |
---|
| 210 | %changelog |
---|
| 211 | * Fri Dec 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-2 |
---|
| 212 | - for vl5 + texlive, renamed to texlive-texmacro-otf |
---|
| 213 | |
---|
| 214 | * Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.5.6.1-1 |
---|
| 215 | - new upstream relase |
---|
| 216 | - TeX Linux 2009 |
---|
| 217 | |
---|
| 218 | * Fri May 15 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-3 |
---|
| 219 | - added otf-ps-morisawax{-noEmbed}.map |
---|
| 220 | |
---|
| 221 | * Sun Mar 29 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.9-2 |
---|
| 222 | - spec in utf8 |
---|
| 223 | |
---|
| 224 | * Tue Aug 05 2008 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-1 |
---|
| 225 | - applied new versioning policy |
---|
| 226 | |
---|
| 227 | * Sun Apr 07 2007 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.9-0vl1 |
---|
| 228 | - new upstream release |
---|
| 229 | |
---|
| 230 | * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl2 |
---|
| 231 | - updmap-otf v0.9: use noEmbed.map instead of noEmbeddedFont.map |
---|
| 232 | |
---|
| 233 | * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 1.2.7.1-0vl1 |
---|
| 234 | - resync with ptetex3-20060506 |
---|
| 235 | |
---|
| 236 | * Sun Nov 06 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl3 |
---|
| 237 | - resync with ptetex3-20051102 |
---|
| 238 | |
---|
| 239 | * Wed Aug 31 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl2 |
---|
| 240 | - resync with ptetex3-20050830 |
---|
| 241 | |
---|
| 242 | * Sat Jun 18 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.7-0vl1 |
---|
| 243 | - source update |
---|
| 244 | - modified for teTeX3 |
---|
| 245 | |
---|
| 246 | * Thu Feb 03 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.6-0vl1 |
---|
| 247 | - source update |
---|
| 248 | |
---|
| 249 | * Thu Jan 20 2005 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.5-0vl1 |
---|
| 250 | - source update |
---|
| 251 | |
---|
| 252 | * Sun Nov 07 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl5 |
---|
| 253 | - updmap-0.7 |
---|
| 254 | |
---|
| 255 | * Mon Oct 18 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl4 |
---|
| 256 | - updmap-0.6 |
---|
| 257 | |
---|
| 258 | * Mon Oct 11 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl3 |
---|
| 259 | - updmap-0.5 |
---|
| 260 | |
---|
| 261 | * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl2 |
---|
| 262 | - fixed updmap |
---|
| 263 | |
---|
| 264 | * Thu Sep 30 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.4-0vl1 |
---|
| 265 | - source update |
---|
| 266 | - updmap-0.4 |
---|
| 267 | |
---|
| 268 | * Thu Apr 08 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl4 |
---|
| 269 | - update updmap-otf: take over before setting in "auto" target |
---|
| 270 | - remove requires texmacro-sfujita |
---|
| 271 | |
---|
| 272 | * Sat Apr 03 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl3 |
---|
| 273 | - fix postun |
---|
| 274 | |
---|
| 275 | * Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl2 |
---|
| 276 | - drop extrafonts and added hiraprop |
---|
| 277 | - update updmap-otf and *-udvips.map |
---|
| 278 | |
---|
| 279 | * Sun Mar 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.2.2-0vl1 |
---|
| 280 | - source update |
---|
| 281 | - added updmap-otf |
---|
| 282 | |
---|
| 283 | * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 1.0.9-0vl1 |
---|
| 284 | - first release |
---|