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