[521] | 1 | %define ver 1.18.1 |
---|
| 2 | |
---|
| 3 | Summary: A document formatting system. |
---|
| 4 | Summary(ja): GNU groff 日本語対応版 |
---|
| 5 | Name: groff |
---|
| 6 | Version: 1.18.1.1 |
---|
[695] | 7 | Release: 4%{?_dist_release} |
---|
[521] | 8 | License: GPL |
---|
| 9 | Group: Applications/Publishing |
---|
| 10 | |
---|
| 11 | Vendor: Project Vine |
---|
| 12 | Distribution: Vine Linux |
---|
| 13 | |
---|
| 14 | Source0: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz |
---|
| 15 | Source1: troff-to-ps.fpi |
---|
| 16 | Source2: groff-tmac-ja.tar.gz |
---|
| 17 | # Japanese Patch from Debian |
---|
| 18 | Patch1: groff_1.18.1.1-20.diff.gz |
---|
[695] | 19 | Patch2: groff-1.18.1.1-fix-minus-char.patch |
---|
[521] | 20 | |
---|
| 21 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | BuildRequires: libX11-devel, libICE-devel, libSM-devel, libXext-devel |
---|
| 23 | BuildRequires: libXmu-devel, libXpm-devel, libXt-devel |
---|
| 24 | BuildRequires: libXaw-devel >= 1.0.5 |
---|
[695] | 25 | BuildRequires: psutils, byacc, imake, netpbm-progs, ghostscript |
---|
[521] | 26 | Requires(post,preun): install-info |
---|
| 27 | Obsoletes: groff-tools |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | %description |
---|
| 31 | Groff is a document formatting system. Groff takes standard text and |
---|
| 32 | formatting commands as input and produces formatted output. The |
---|
| 33 | created documents can be shown on a display or printed on a printer. |
---|
| 34 | Groff's formatting commands allow you to specify font type and size, bold |
---|
| 35 | type, italic type, the number and size of columns on a page, and more. |
---|
| 36 | |
---|
| 37 | You should install groff if you want to use it as a document formatting |
---|
| 38 | system. Groff can also be used to format man pages. If you are going |
---|
| 39 | to use groff with the X Window System, you'll also need to install the |
---|
| 40 | groff-gxditview package. |
---|
| 41 | |
---|
| 42 | %description -l ja |
---|
| 43 | GNU roff (groff) 日本語対応版です。日本語で書かれたマニュアルを表示す |
---|
| 44 | るのに必要です. |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | %package perl |
---|
| 48 | Summary: Parts of the groff formatting system that require Perl. |
---|
| 49 | Group: Applications/Publishing |
---|
| 50 | Requires: %{name} = %{version} |
---|
| 51 | Requires: mktemp |
---|
| 52 | |
---|
| 53 | %description perl |
---|
| 54 | The groff-perl package contains the parts of the groff text processor |
---|
| 55 | package that require Perl. These include the afmtodit font processor |
---|
| 56 | for creating PostScript font files, the grog utility that can be used |
---|
| 57 | to automatically determine groff command-line options, and the |
---|
| 58 | troff-to-ps print filter. |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %package gxditview |
---|
| 62 | Summary: An X previewer for groff text processor output. |
---|
| 63 | Group: Applications/Publishing |
---|
| 64 | Requires: %{name} = %{version} |
---|
| 65 | |
---|
| 66 | %description gxditview |
---|
| 67 | Gxditview displays the groff text processor's output on an X Window |
---|
| 68 | System display. |
---|
| 69 | |
---|
| 70 | If you are going to use groff as a text processor, you should install |
---|
| 71 | gxditview so that you preview your processed text files in X. You'll also |
---|
| 72 | need to install the groff package and the X Window System. |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %prep |
---|
| 76 | %setup -q -n groff-%{version} |
---|
| 77 | %patch1 -p1 -b .debian |
---|
[695] | 78 | %patch2 -p0 -b .fix-minus |
---|
[521] | 79 | |
---|
| 80 | |
---|
| 81 | %build |
---|
| 82 | PATH=$PATH:/usr/X11R6/bin |
---|
| 83 | #autoconf |
---|
| 84 | #configure --enable-japanese |
---|
| 85 | %configure --enable-multibyte |
---|
| 86 | make |
---|
| 87 | |
---|
| 88 | cd src/xditview |
---|
| 89 | xmkmf |
---|
| 90 | make |
---|
| 91 | cd ../.. |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %install |
---|
| 95 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
| 96 | PATH=$PATH:/usr/X11R6/bin |
---|
| 97 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
| 98 | mkdir -p $RPM_BUILD_ROOT%{_mandir} |
---|
| 99 | %makeinstall manroot=$RPM_BUILD_ROOT%{_mandir} |
---|
| 100 | |
---|
| 101 | # install xditview |
---|
| 102 | cd src/xditview |
---|
| 103 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 104 | cd ../.. |
---|
| 105 | |
---|
| 106 | # for groff-ja |
---|
| 107 | #mkdir -p $RPM_BUILD_ROOT%{_datadir}/groff/%{ver} |
---|
| 108 | #tar xzf %{SOURCE2} -C $RPM_BUILD_ROOT%{_datadir}/groff/%{ver} |
---|
| 109 | |
---|
| 110 | ln -s s.tmac $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}/tmac/tmac.gs |
---|
| 111 | ln -s mse.tmac $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}/tmac/tmac.gmse |
---|
| 112 | ln -s m.tmac $RPM_BUILD_ROOT%{_datadir}/groff/%{ver}/tmac/tmac.gm |
---|
| 113 | ln -s troff $RPM_BUILD_ROOT%{_bindir}/gtroff |
---|
| 114 | ln -s tbl $RPM_BUILD_ROOT%{_bindir}/gtbl |
---|
| 115 | ln -s pic $RPM_BUILD_ROOT%{_bindir}/gpic |
---|
| 116 | ln -s eqn $RPM_BUILD_ROOT%{_bindir}/geqn |
---|
| 117 | ln -s neqn $RPM_BUILD_ROOT%{_bindir}/gneqn |
---|
| 118 | ln -s refer $RPM_BUILD_ROOT%{_bindir}/grefer |
---|
| 119 | ln -s lookbib $RPM_BUILD_ROOT%{_bindir}/glookbib |
---|
| 120 | ln -s indxbib $RPM_BUILD_ROOT%{_bindir}/gindxbib |
---|
| 121 | ln -s soelim $RPM_BUILD_ROOT%{_bindir}/gsoelim |
---|
| 122 | ln -s soelim $RPM_BUILD_ROOT%{_bindir}/zsoelim |
---|
| 123 | ln -s nroff $RPM_BUILD_ROOT%{_bindir}/gnroff |
---|
| 124 | |
---|
| 125 | # whether or not build system is compressing man-pages |
---|
| 126 | ln -s eqn.1 %{buildroot}%{_mandir}/man1/geqn.1 |
---|
| 127 | ln -s indxbib.1 %{buildroot}%{_mandir}/man1/gindxbib.1 |
---|
| 128 | ln -s lookbib.1 %{buildroot}%{_mandir}/man1/glookbib.1 |
---|
| 129 | ln -s neqn.1 %{buildroot}%{_mandir}/man1/gneqn.1 |
---|
| 130 | ln -s nroff.1 %{buildroot}%{_mandir}/man1/gnroff.1 |
---|
| 131 | ln -s pic.1 %{buildroot}%{_mandir}/man1/gpic.1 |
---|
| 132 | ln -s refer.1 %{buildroot}%{_mandir}/man1/grefer.1 |
---|
| 133 | ln -s soelim.1 %{buildroot}%{_mandir}/man1/gsoelim.1 |
---|
| 134 | ln -s soelim.1 %{buildroot}%{_mandir}/man1/zsoelim.1 |
---|
| 135 | ln -s tbl.1 %{buildroot}%{_mandir}/man1/gtbl.1 |
---|
| 136 | ln -s troff.1 %{buildroot}%{_mandir}/man1/gtroff.1 |
---|
| 137 | |
---|
| 138 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters |
---|
| 139 | install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/rhs/rhs-printfilters |
---|
| 140 | |
---|
| 141 | # document files |
---|
| 142 | mkdir -p docs-to-install |
---|
| 143 | cp -pr $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/%{ver}/* docs-to-install |
---|
| 144 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name} |
---|
| 145 | |
---|
| 146 | # |
---|
| 147 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 148 | rm -rf $RPM_BUILD_ROOT/%{_prefix}/lib/X11/app-defaults |
---|
| 149 | |
---|
| 150 | %clean |
---|
| 151 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
| 152 | |
---|
| 153 | %post |
---|
| 154 | /sbin/install-info --info-dir=%{_infodir} %{_infodir}/groff.gz |
---|
| 155 | |
---|
| 156 | %preun |
---|
| 157 | if [ "$1" = 0 ]; then |
---|
| 158 | /sbin/install-info --delete \ |
---|
| 159 | --info-dir=%{_infodir} %{_infodir}/groff.gz |
---|
| 160 | fi |
---|
| 161 | |
---|
| 162 | |
---|
| 163 | # -f groff-files |
---|
| 164 | %files |
---|
| 165 | %defattr(-,root,root) |
---|
| 166 | %doc BUG-REPORT COPYING ChangeLog NEWS PROBLEMS README TODO |
---|
| 167 | %doc README.jp ChangeLog.jp docs-to-install/* |
---|
| 168 | %{_bindir}/* |
---|
| 169 | %exclude %{_bindir}/gxditview |
---|
| 170 | %{_datadir}/groff |
---|
| 171 | %{_libdir}/rhs/*/* |
---|
| 172 | %{_mandir}/man?/* |
---|
| 173 | %{_infodir}/* |
---|
| 174 | %exclude %{_bindir}/afmtodit |
---|
| 175 | %exclude %{_bindir}/grog |
---|
| 176 | %exclude %{_bindir}/mmroff |
---|
| 177 | %exclude %{_mandir}/man1/afmtodit.* |
---|
| 178 | %exclude %{_mandir}/man1/grog.* |
---|
| 179 | %exclude %{_mandir}/man1/mmroff.* |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | %files perl |
---|
| 183 | %defattr(-,root,root) |
---|
| 184 | %{_bindir}/afmtodit |
---|
| 185 | %{_bindir}/grog |
---|
| 186 | %{_bindir}/mmroff |
---|
| 187 | %{_mandir}/man1/afmtodit.* |
---|
| 188 | %{_mandir}/man1/grog.* |
---|
| 189 | %{_mandir}/man1/mmroff.* |
---|
| 190 | |
---|
| 191 | |
---|
| 192 | %files gxditview |
---|
| 193 | %defattr(-,root,root) |
---|
| 194 | %{_bindir}/gxditview |
---|
| 195 | %config %{_sysconfdir}/X11/app-defaults/GXditview |
---|
| 196 | |
---|
| 197 | |
---|
| 198 | %changelog |
---|
[695] | 199 | * Tue Mar 23 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.18.1.1-4 |
---|
| 200 | - add Patch2 to fix minus/hyphen character width |
---|
| 201 | - add BuildRequires: psutils, byacc, imake, netpbm-progs, ghostscript |
---|
| 202 | |
---|
[521] | 203 | * Tue Apr 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.1.1-3 |
---|
| 204 | - remove gxditview from main package |
---|
| 205 | |
---|
| 206 | * Sun Nov 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.1.1-2 |
---|
| 207 | - rebuild with libXaw.so.7 (libXaw-1.0.5) |
---|
| 208 | |
---|
| 209 | * Sat May 10 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.18.1.1-1 |
---|
| 210 | - rebuild with new versioning policy |
---|
| 211 | - update Debian patch |
---|
| 212 | |
---|
| 213 | * Sat Sep 22 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.18.1.1-0vl1 |
---|
| 214 | - rebuilt with new toolchain |
---|
| 215 | - updated source and Japanese patch based on Debian |
---|
| 216 | - added BuildRequires: XOrg-devel |
---|
| 217 | |
---|
| 218 | * Fri Sep 22 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.17.2-0vl7 |
---|
| 219 | - rebuild to add gpg sign |
---|
| 220 | |
---|
| 221 | * Tue Apr 8 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.17.2-0vl6 |
---|
| 222 | - rebuild |
---|
| 223 | |
---|
| 224 | * Mon Nov 25 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.17.2-0vl5 |
---|
| 225 | - rebuilt with new toolchain |
---|
| 226 | |
---|
| 227 | * Wed Mar 06 2002 Toru Sagami <sagami@vinelinux.org> 1.17.2-0vl4 |
---|
| 228 | - corrected zsoelim.1 symlink in %%{_mandir} |
---|
| 229 | |
---|
| 230 | * Mon Feb 11 2002 Satoshi MACHINO <machino@vinelinux.org> 1.17.2-0vl3 |
---|
| 231 | - fixed symlink of *.tmac |
---|
| 232 | |
---|
| 233 | * Mon Jan 21 2002 Satoshi MACHINO <machino@vinelinux.org> 1.17.2-0vl2 |
---|
| 234 | - build on VineSeed |
---|
| 235 | |
---|
| 236 | * Mon Jan 21 2002 Satoshi MACHINO <machino@vinelinux.org> 1.17.2-0vl1 |
---|
| 237 | - updated groff-1.17.2 |
---|
| 238 | -- security fixed of CAN-2002-0003 |
---|
| 239 | -- changed japanese patch to debian patch |
---|
| 240 | -- modified spec file |
---|
| 241 | |
---|
| 242 | * Mon Sep 10 2001 Toru Sagami <sagami@vinelinux.org> |
---|
| 243 | - 1.16.1-0vl1: split perl components into separate subpackage |
---|
| 244 | |
---|
| 245 | * Tue Jul 17 2001 <sagami@vinelinux.org> |
---|
| 246 | - 1.16.1: version up to 1.16.1 |
---|
| 247 | - add groff-1.16.1-japanese.patch originally taken from Kondara |
---|
| 248 | - use %%configure after autoconf, %%makeinstall |
---|
| 249 | |
---|
| 250 | * Tue Jan 23 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp> |
---|
| 251 | - 1.15_jp-7 |
---|
| 252 | - built on egcs-1.1/libstdc++2_9-2.9.0 |
---|
| 253 | - fixed: whether or not build system compress man pages |
---|
| 254 | |
---|
| 255 | * Tue Dec 26 2000 Tomoya TAKA <tomoya@olive.plala.or.jp> 1.15_jp-6 |
---|
| 256 | - some fixes to handle man pages correctly |
---|
| 257 | |
---|
| 258 | * Sat Nov 11 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.15_jp-5 |
---|
| 259 | - build on gcc-2.95.3 |
---|
| 260 | - partially used macros |
---|
| 261 | |
---|
| 262 | * Mon Aug 7 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 263 | - 1.15_jp-4 |
---|
| 264 | - follow up to RHL62 (1.15-8) |
---|
| 265 | |
---|
| 266 | * Thu Feb 24 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 267 | - 1.15_jp-3 |
---|
| 268 | - modified ja patch, namely lib.h |
---|
| 269 | |
---|
| 270 | * Sun Jan 9 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 271 | - groff-tmac-ja was lacked in Source entry(;_;) fixed! |
---|
| 272 | |
---|
| 273 | * Tue Jan 4 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 274 | - build for Vine Linux 2.0 with ja patch |
---|
| 275 | |
---|
| 276 | * Wed Dec 29 1999 Bill Nottingham <notting@redhat.com> |
---|
| 277 | - update to 1.15 |
---|
| 278 | |
---|
| 279 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 280 | - auto rebuild in the new build environment (release 9) |
---|
| 281 | |
---|
| 282 | * Tue Feb 16 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 283 | - glibc 2.1 patch for xditview (#992) |
---|
| 284 | |
---|
| 285 | * Thu Oct 22 1998 Bill Nottingham <notting@redhat.com> |
---|
| 286 | - build for Raw Hide |
---|
| 287 | |
---|
| 288 | * Thu Sep 10 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 289 | - fix makefiles to work with bash2 |
---|
| 290 | |
---|
| 291 | * Fri May 08 1998 Prospector System <bugs@redhat.com> |
---|
| 292 | - translations modified for de, fr, tr |
---|
| 293 | |
---|
| 294 | * Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 295 | - use g++ for C++ code |
---|
| 296 | |
---|
| 297 | * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 298 | - manhattan and buildroot |
---|
| 299 | |
---|
| 300 | * Mon Nov 3 1997 Michael Fulbright <msf@redhat.com> |
---|
| 301 | - made xdefaults file a config file |
---|
| 302 | |
---|
| 303 | * Thu Oct 23 1997 Erik Troan <ewt@redhat.com> |
---|
| 304 | - split perl components into separate subpackage |
---|
| 305 | |
---|
| 306 | * Tue Oct 21 1997 Michael Fulbright <msf@redhat.com> |
---|
| 307 | - updated to 1.11a |
---|
| 308 | - added safe troff-to-ps.fpi |
---|
| 309 | |
---|
| 310 | * Tue Oct 14 1997 Michael Fulbright <msf@redhat.com> |
---|
| 311 | - removed troff-to-ps.fpi for security reasons. |
---|
| 312 | |
---|
| 313 | * Fri Jun 13 1997 Erik Troan <ewt@redhat.com> |
---|
| 314 | - built against glibc |
---|
| 315 | |
---|