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