jadetex-vl.spec 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. %define _noVersionedDependencies 1
  2. %define TeXdir %(cd `kpsewhich -expand-var '$TEXMFMAIN'`/../..; pwd)
  3. %define texdir %(cd `kpsewhich -expand-var '$TEXMFMAIN'`; pwd)
  4. %define name jadetex
  5. %define ver 3.12
  6. %define rel 9%{?_dist_release}
  7. Summary: TeX macros used by Jade TeX output.
  8. Name: %{name}
  9. Version: %{ver}
  10. Release: %{rel}
  11. Group: Applications/Publishing
  12. License: Distributable
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. PreReq: tetex >= 3.0, tetex-extra >= 3.0
  16. Requires: sgml-common >= 0.5
  17. Requires: jade
  18. BuildPreReq: unzip
  19. BuildPreReq: tetex >= 0.9 tetex-extra >= 0.9
  20. Url: http://sourceforge.net/projects/jadetex/
  21. #Source0: http://www.tug.org/applications/jadetex/jadetex.zip
  22. Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  23. Source1: jadefmtutil.cnf
  24. Source2: jadeptex.sh
  25. Source3: jadefmtutil.cnf.ptex
  26. Patch0: jadetex-3.12-theta.patch
  27. Patch1: jadetex-tetex3.patch
  28. Patch10: jadetex-3.12-jadeptex.patch
  29. %description
  30. JadeTeX contains the additional LaTeX macros necessary for taking Jade
  31. TeX output files and processing them as TeX files (to obtain DVI,
  32. PostScript, or PDF files, for example).
  33. %prep
  34. %setup -q
  35. cp %{SOURCE1} .
  36. cp %{SOURCE2} .
  37. cp %{SOURCE3} .
  38. %patch0 -p1 -b .theta
  39. %patch1 -p1 -b .tetex3
  40. %patch10 -p1 -b .jadeptex
  41. %build
  42. make
  43. %install
  44. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  45. DESTDIR=$RPM_BUILD_ROOT
  46. mkdir -p $DESTDIR
  47. make install DESTDIR=$DESTDIR
  48. mkdir -p ${DESTDIR}%{texdir}/tex/jadetex
  49. cp *.ini ${DESTDIR}%{texdir}/tex/jadetex
  50. cp *.sty ${DESTDIR}%{texdir}/tex/jadetex
  51. cp *.cnf ${DESTDIR}%{texdir}/tex/jadetex
  52. cp *.cnf.ptex ${DESTDIR}%{texdir}/tex/jadetex
  53. mkdir -p ${DESTDIR}%{_bindir}
  54. install -m 0755 jadeptex.sh ${DESTDIR}%{_bindir}/jadeptex
  55. ln -s etex ${DESTDIR}%{_bindir}/jadetex
  56. ln -s pdfetex ${DESTDIR}%{_bindir}/pdfjadetex
  57. %clean
  58. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  59. %post
  60. /usr/bin/env - PATH=$PATH:%{TeXdir}/bin texhash > /dev/null 2>&1
  61. /usr/bin/env - PATH=$PATH:%{TeXdir}/bin fmtutil-sys --cnffile %{texdir}/tex/jadetex/jadefmtutil.cnf --all > /dev/null 2>&1
  62. /usr/bin/env - PATH=$PATH:%{TeXdir}/bin fmtutil-sys --cnffile %{texdir}/tex/jadetex/jadefmtutil.cnf.ptex --all > /dev/null 2>&1
  63. exit 0
  64. %files
  65. %defattr (-,root,root)
  66. %ghost %{texdir}/web2c/jadetex.fmt
  67. %ghost %{texdir}/web2c/pdfjadetex.fmt
  68. %{texdir}/tex/jadetex/dsssl.def
  69. %{texdir}/tex/jadetex/jadetex.ltx
  70. %{texdir}/tex/jadetex/jadetex.ini
  71. %{texdir}/tex/jadetex/pdfjadetex.ini
  72. %{texdir}/tex/jadetex/dummyels.sty
  73. %{texdir}/tex/jadetex/mlnames.sty
  74. %{texdir}/tex/jadetex/ucharacters.sty
  75. %{texdir}/tex/jadetex/uentities.sty
  76. %{texdir}/tex/jadetex/unicode.sty
  77. %{texdir}/tex/jadetex/jadefmtutil.cnf
  78. %{texdir}/tex/jadetex/jadefmtutil.cnf.ptex
  79. %{_bindir}/jadetex
  80. %{_bindir}/pdfjadetex
  81. %{_bindir}/jadeptex
  82. %changelog
  83. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 3.12-9vl5
  84. - applied new versioning policy
  85. * Thu Sep 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 3.12-9vl3
  86. - fix %%post script
  87. * Tue Sep 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 3.12-9vl2
  88. - add Patch3 to support tetex3
  89. - fix broken symlinks (<BTS:124>)
  90. - use License: instead of Copyright:
  91. * Sun Apr 13 2003 IWAI Masaharu <iwai@alib.jp> 3.12-9vl1
  92. - sync Rawhide 3.12-9
  93. - drop jadetex-makefile.patch and jadetex-emergency.patch
  94. ( upstream merged )
  95. - add jadetex-3.12-theta.patch (Patch0)
  96. - add jadeptex from http://www.netfort.gr.jp/~ohura/jadetex/
  97. - add jadeptex.sh (Source2)
  98. - add jadefmtutil.cnf.ptex (Source3)
  99. - add jadetex-3.12-jadeptex.patch (Patch10)
  100. - add %%post script for jadefmtutil.cnf.ptex
  101. - add Url tag
  102. * Mon May 20 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 3.6-4vl3
  103. - rebuild for VineSeed
  104. * Mon May 20 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 3.6-4vl2
  105. - add PreReq: tetex >= 0.9 tetex-extra >= 0.9
  106. - add BuildPreReq: tetex >= 0.9 tetex-extra >= 0.9
  107. - add %define _noVersionedDependencies 1
  108. * Fri Oct 12 2001 Akira TAGOH <tagoh@gnome.gr.jp> 3.6-4vl1
  109. - Rebuild for Vine.
  110. * Tue Aug 14 2001 Tim Powers <timp@redhat.com>
  111. - rebuilt to hopefully fix rpm verify problems
  112. * Thu Aug 9 2001 Tim Waugh <twaugh@redhat.com> 3.6-3
  113. - Use %%ghost for the fmt files, since they get recreated (bug #49580).
  114. * Wed Aug 1 2001 Tim Waugh <twaugh@redhat.com> 3.6-2
  115. - Use emergencystretch (bug #47345).
  116. * Mon Jun 4 2001 Tim Waugh <twaugh@redhat.com> 3.6-1
  117. - 3.6.
  118. * Mon Feb 12 2001 Tim Waugh <twaugh@redhat.com> 3.3-1
  119. - 3.3. Redo jadetex-makefile.patch.
  120. * Fri Jan 19 2001 Tim Waugh <twaugh@redhat.com>
  121. - Earlier change was wrong; jade should be required, not openjade
  122. - Require sgml-common >= 0.5.
  123. * Wed Jan 17 2001 Tim Waugh <twaugh@redhat.com>
  124. - Make tetex a %%post requirement.
  125. - Silence %%post output.
  126. - Don't play so many macro games.
  127. - Build requires unzip.
  128. * Fri Jan 12 2001 Tim Waugh <twaugh@redhat.com>
  129. - Make symlinks relative.
  130. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  131. - Change group.
  132. - Require openjade not jade.
  133. - rm before install.
  134. - Use %%{_tmppath}.
  135. - Require tetex-latex.
  136. - Change Copyright: to License:.
  137. - Remove Packager: line.
  138. * Mon Jan 08 2001 Tim Waugh <twaugh@redhat.com>
  139. - Based on Eric Bischoff's new-trials packages.