dvipdfmx-vl.spec 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. %define with_dvipdfm_compat_mode 0
  2. %define texmf %{_datadir}/texmf
  3. %define mapdir %{texmf}/fonts/map/dvipdfmx
  4. %define cmapdir %{texmf}/fonts/cmap/dvipdfmx
  5. %define build_texmf %{buildroot}%{texmf}
  6. %define build_mapdir %{buildroot}%{mapdir}
  7. %define build_cmapdir %{buildroot}%{cmapdir}
  8. %define dvipdfmconfig %{texmf}/dvipdfm/config
  9. %define exec_texhash [ -x %{_bindir}/texhash ] && %{_bindir}/env - %{_bindir}/texhash 2> /dev/null
  10. %define exec_updmap [ -x %{_bindir}/updmap-sys ] && %{_bindir}/env - %{_bindir}/updmap-sys --nostop 2> /dev/null
  11. %define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && %{_sbindir}/update-defaultfont 2> /dev/null
  12. Summary: dvipdfmx is a DVI (TeX) to PDF translator
  13. Summary(ja): DVI から PDF へ変換
  14. Name: dvipdfmx
  15. Version: 20090522
  16. Release: 4%{?_dist_release}
  17. Source0: http://project.ktug.or.kr/dvipdfmx/snapshot/%{name}-%{version}.tar.gz
  18. Source1: dvipdfmx.cfg.vine
  19. ## EUC-UCS2 CMap file
  20. ## http://cvs.ktug.or.kr/viewcvs/dvipdfmx/data/EUC-UCS2?view=co
  21. Source10: EUC-UCS2
  22. Patch0: dvipdfmx-20090522-ebb-to-ebbx.patch
  23. Patch10: dvipdfmx-20090522-dropped-dvipdfm-compat-mode.patch
  24. Patch11: dvipdfmx-20090506-ebb-to-ebbx.patch
  25. URL: http://project.ktug.or.kr/dvipdfmx/
  26. License: GPL
  27. Buildroot: %{_tmppath}/%{name}-%{version}-root
  28. Group: Applications/Publishing
  29. BuildRequires: tetex >= 3.0, openssl-devel, ghostscript >= 8.63
  30. BuildRequires: libpaper-devel
  31. BuildRequires: libkpathsea-devel
  32. Requires: libpaper
  33. Requires: tetex >= 3.0-3
  34. Requires: ghostscript >= 8.63
  35. Requires: jvf
  36. Requires: fontconfig >= 2.6.0-2
  37. Requires(post,postun): fontconfig >= 2.6.0-2
  38. Obsoletes: dvipdfm
  39. Autoreq: 0
  40. Requires(post): coreutils
  41. Requires(post,postun): tetex >= 3.0
  42. Requires(post): vutils >= 2.0.5
  43. Vendor: Project Vine
  44. Distribution: Vine Linux
  45. %description
  46. The dvipdfmx (formerly dvipdfm-cjk) project provides an eXtended
  47. version of the dvipdfm, a DVI to PDF translator developed by Mark
  48. A. Wicks. The primary goal of this project is to support multi-byte
  49. character encodings and large character sets for East Asian languages
  50. by CID-keyed font technology. The secondary goal is to support as many
  51. features as pdfTeX developed by Han The Thanh. This project is a
  52. combined work of the dvipdfm-jpn project by Shunsaku Hirata and its
  53. modified one, dvipdfm-kor, by Jin-Hwan Cho.
  54. %description -l ja
  55. dvidpfmx(旧 dvipdfm-cjk)プロジェクトは、Mark A. Wicks による DVI
  56. から PDF へのコンバータである dvipdfm の拡張バージョンを開発します。
  57. このプロジェクトの第一の目標は CID フォントによって東アジア言語のマ
  58. ルチバイト文字エンコードと多くの文字セットを使えるようにすることです。
  59. 第二の目標は Han The Thanh による pdfTeX と同じくらいたくさんの機能を
  60. 使えるようにすることです。
  61. このプロジェクトは、平田さんの dvipdfm-jpn と、その派生バージョンの
  62. Jin-Hwan Cho の dvipdfm-kor との共同作業です。
  63. %prep
  64. rm -rf $RPM_BUILD_ROOT
  65. %setup -q
  66. %if %{with_dvipdfm_compat_mode}
  67. %patch0 -p1
  68. %else
  69. %patch10 -p1
  70. %patch11 -p1
  71. %endif
  72. cp -a %{SOURCE1} data/dvipdfmx.cfg
  73. %build
  74. CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --datadir=%{_datadir} --mandir=%{_mandir}
  75. make
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. make prefix=$RPM_BUILD_ROOT%{_prefix} datadir=$RPM_BUILD_ROOT%{_datadir} mandir=$RPM_BUILD_ROOT%{_mandir} install-strip
  79. mkdir -p %{build_texmf}/fonts/truetype
  80. mkdir -p %{build_mapdir}
  81. mkdir -p %{build_cmapdir}
  82. rm -f %{build_mapdir}/cid-x.map
  83. touch %{build_mapdir}/vine.map
  84. ln -s dvipdfmx %{buildroot}%{_bindir}/dvipdfm
  85. #install -p -m 644 %{SOURCE10} %{build_cmapdir}
  86. %pre
  87. ## check CIDFont dir
  88. if [ -d %{texmf}/dvipdfm/CIDFont ] && ! [ -L %{texmf}/dvipdfm/CIDFont ]; then
  89. echo "clear %{texmf}/dvipdfm/CIDFont directory."
  90. rm -rf %{texmf}/dvipdfm/CIDFont
  91. fi
  92. %post
  93. # Create our own cid-x.map
  94. ( %{exec_upddeffont} ) ||:
  95. %{exec_texhash} ||:
  96. if [ -x %{_bindir}/updmap-sys ]; then
  97. %{_bindir}/updmap-sys --enable KanjiMap vine.map 2> /dev/null
  98. fi
  99. ( %{exec_updmap} ) ||:
  100. exit 0
  101. %postun
  102. if [ "$1" = 0 ]; then
  103. for i in %{texmf}/fonts/truetype/*
  104. do
  105. if [ -L "$i" ]; then
  106. rm -f "$i"
  107. fi
  108. done
  109. %{exec_texhash}
  110. %{exec_updmap}
  111. fi
  112. exit 0
  113. %clean
  114. rm -rf $RPM_BUILD_ROOT
  115. %files
  116. %defattr(-,root,root)
  117. %{_bindir}/*
  118. %dir %{texmf}/dvipdfmx
  119. %config %{texmf}/dvipdfmx/dvipdfmx.cfg
  120. %{texmf}/fonts/map/glyphlist/*
  121. %{mapdir}/vine.map
  122. %{cmapdir}/EUC-UCS2
  123. %doc COPYING ChangeLog INSTALL README
  124. %changelog
  125. * Thu Feb 04 2010 Munehiro Yamamoto <munepi@vinelinuc.org> 20090522-4
  126. - added Requires: libpaper [BTS:792]
  127. * Thu Oct 01 2009 Munehiro Yamamoto <munepi@vinelinuc.org> 20090522-3
  128. - added BuildRequires:
  129. - libpaper-devel
  130. - libkpathsea-devel
  131. * Mon Jun 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 20090522-2
  132. - dropped dvipdfm compatibility mode
  133. - applied dvipdfmx-20090522-dropped-dvipdfm-compat-mode.patch,
  134. dvipdfmx-20090506-ebb-to-ebbx.patch
  135. - almost sync with dvipdfmx-20090506 contained in ptetex3-20090607
  136. (except src/dpxconf.c, data/dvipdfmx.cfg)
  137. * Wed May 27 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 20090522-1
  138. - new upstream release
  139. * Sat May 09 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 20090506-1
  140. - new upstream release
  141. - revived EUC-UCS2 in THE DVIPDFMX Project CVS HEAD
  142. * Sat Apr 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20080607-4
  143. - use update-defaultfont instead of old vinefont.sh
  144. * Tue Mar 17 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 20080607-3
  145. - reverted EUC-UCS2 from old version (See [VineSeed:16930])
  146. * Sun Jan 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20080607-2
  147. - add Requires: jvf
  148. * Tue Jan 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 20080607-1
  149. - new upstream release
  150. - update vinefont.sh (for Vine5CR fonts)
  151. - require fontconfig
  152. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 20070518-1vl5
  153. - applied new versioning policy, spec in utf-8
  154. * Tue Oct 09 2007 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20070518-0vl2
  155. - build for VineSeed
  156. * Tue May 29 2007 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20070518-0vl1
  157. - new upstream release
  158. * Wed May 09 2007 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20070409-0vl1
  159. - new upstream release
  160. * Sat May 27 2006 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050831-0vl6
  161. - modified vinefont.sh: cid-x is obsolete [ptetex3-20060320]
  162. * Thu May 25 2006 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050831-0vl5
  163. - modified postun section: remove fonts' symlinks at uninstall
  164. * Fri May 12 2006 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050831-0vl4
  165. - resync with ptetex-20060506
  166. - move vinefont.sh from %{_bindir} to /usr/share/vine
  167. * Thu Nov 17 2005 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050831-0vl3
  168. - modified post section: added exec_updmap
  169. * Thu Nov 10 2005 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050831-0vl2
  170. - added PreReq tetex >= 3.0
  171. * Sat Nov 05 2005 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050831-0vl1
  172. - source update
  173. - modified for teTeX3 (based on Tshucimura-san's ptetex-20051102)
  174. * Wed Aug 31 2005 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050830-0vl1
  175. - source update
  176. * Sat Jun 18 2005 KOBAYASHI Taizo <tkoba@vinelinuc.org> 20050307-0vl1
  177. - source update
  178. - modified for teTeX3 (based on Tshucimura-san's ptetex-20050614)
  179. * Mon Dec 27 2004 KOBAYASHI R. Taizo <tkoba@vinelinuc.org> 20040411-0vl4
  180. - built on behalf of Tsuchimura-san [VineSeed:09639]
  181. - added dvipdfmx-20040411-jpeg.patch
  182. * Mon Nov 29 2004 KOBAYASHI R. Taizo <tkoba@vinelinuc.org> 20040411-0vl3
  183. - added dvipdfm symlink to dvipdfmx
  184. * Sat Jul 24 2004 KOBAYASHI R. Taizo <tkoba@vinelinuc.org> 20040411-0vl2
  185. - move Copyright to License
  186. - Oops! the spec file was skipped!
  187. merged Tsuchimura-san's update
  188. * Thu Jul 15 2004 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 20040411-0vl1
  189. - updated dvipdfmx-20040411.
  190. * Wed Feb 04 2004 KOBAYASHI R. Taizo <tkoba@vinelinuc.org> 20031207-0vl1
  191. - new upstream release
  192. * Sat Oct 11 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 20031009-0vl1
  193. - new upstream release
  194. * Wed Apr 23 2003 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 20030313-0vl2
  195. - removed adobe-cmaps-200204.tar.gz instead of BuildRequires: ghostscript >= 7.0
  196. * Fri Apr 18 2003 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 20030313-0vl1
  197. - update dvipdfmx-20030313.
  198. - build with tetex-2.0.2 for VineSeed.
  199. - removed useless dvipdfmx-20021230.tate.patch.
  200. * Tue Feb 25 2003 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 20021230-0t1
  201. - dvipdfmx.
  202. - build with tetex-2.0.1.
  203. - added dvipdfmx-20021230.tate.patch.
  204. * Mon Aug 19 2002 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 20020605-0vl1
  205. - update dvipdfm-cjk-20020605
  206. * Fri Aug 9 2002 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 20020531-0vl1
  207. - dvipdfm-cjk
  208. * Mon Jun 17 2002 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 0.13.2c-0vl8
  209. - rebuild against dvipdfm-2002-03-29.zip
  210. * Wed Oct 10 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.13.2c-0vl7
  211. - simply increased release number (VinePlus's package had the same release!)
  212. * Wed Sep 19 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 0.13.2c-0vl6
  213. - rebuild against dvipdfm.zip (2001-09-14)
  214. * Fri Sep 14 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp> 0.13.2c-0vl5
  215. - rebuild against dvipdfm.zip (2001-09-09)
  216. - update out2uni.c (2001-09-11, for gcc-3.0/glibc-2.2)
  217. - removed require: pxfonts, txfonts
  218. * Thu Aug 02 2001 Satoshi MACHINO <machino@vinelinux.org> 0.13.2c-0vl4
  219. - pTeX to tetex
  220. * Wed Jul 04 2001 Satoshi MACHINO <machino@vinelinux.org> 0.13.2c-0vl3
  221. - added require: pxfonts, txfonts
  222. * Tue Jul 03 2001 Satoshi MACHINO <machino@vinelinux.org> 0.13.2c-0vl2
  223. - rebuild for VineSeed
  224. - changed mandir /usr/share/man
  225. - used rpmmacros
  226. * Sat Jun 30 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp>
  227. - 0.13.2c-0vl1
  228. - update 0.13.2c, apply jpatch-p0d patch.
  229. * Wed Jun 27 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp>
  230. - 0.13.2b-5
  231. - apply bgcolor, colorname, gcc30 patch.
  232. * Thu Jun 21 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp>
  233. - 0.13.2b-4
  234. - apply jpatch-p0c patch.
  235. * Fri Jun 15 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp>
  236. - 0.13.2b-3
  237. - add out2uni
  238. - apply printf and pagesize patch.
  239. * Tue Jun 12 2001 Nobuyuki Tsuchimura <tutimura@nn.iij4u.or.jp>
  240. - 0.13.2b-2
  241. - apply patch-psspecial.c and jpatch-p0b.