SUNWgroff.spec revision 20829
12373N/A#
12373N/A# spec file for package SUNWgroff
12373N/A#
12586N/A# includes module(s): groff
12586N/A#
12586N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
12373N/A# This file and all modifications and additions to the pristine
12666N/A# package are under the same license as the package itself.
12586N/A#
12586N/A%define owner padraig
12373N/A#
12373N/A%include Solaris.inc
12373N/A
14093N/A%define OSR 9396:1.19.2
12373N/A
12373N/AName: SUNWgroff
12373N/AIPS_package_name: text/groff
12373N/AMeta(info.classification): %{classification_prefix}:System/Text Tools
13307N/ALicense: GPL v2
12773N/ASummary: GNU roff Text Formatting
13320N/A# Do not bump to 1.20 since the license changed to GPLv3. Legal review is
12773N/A# required before updating.
13062N/Aversion: 1.19.2
13091N/ASource: http://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
13350N/A# date:2009-02-25 owner:mattman type:branding
13350N/APatch1: groff-01-manpages.diff
13062N/A# date:2011-06-28 owner:padraig type:bug bugster:6828304
13091N/APatch2: groff-02-grog-fix.diff
13350N/ASUNW_BaseDir: %{_basedir}
13350N/ASUNW_Copyright: %{name}.copyright
13350N/ALicense: GPL v2
13350N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13091N/A%include gnome-consolidation.inc
13001N/A%include default-depend.inc
13062N/ARequires: SUNWlibC
12374N/ARequires: SUNWlibms
14413N/ARequires: SUNWperl584core
14345N/ARequires: SUNWesu
14275N/ARequires: SUNWdbus
14275N/ARequires: SUNWdbus-glib
14413N/ARequires: SUNWflexruntime
14413N/ARequires: SUNWfontconfig
12373N/ARequires: SUNWfreetype2
12373N/ARequires: SUNWgccruntime
12373N/ARequires: SUNWlibgcrypt
12373N/ARequires: SUNWgroff-core
12373N/ABuildRequires: SUNWxwrtl
12373N/ABuildRequires: SUNWxwplt
12373N/ABuildRequires: SUNWxwice
12373N/ABuildRequires: SUNWgtk2
12373N/ABuildRequires: SUNWglib2
12373N/ABuildRequires: SUNWghostscript
12373N/ABuildRequires: SUNWgsed
12373N/ABuildRequires: SUNWpsutils
12373N/A
12373N/A%package -n SUNWgroff-core
12373N/AIPS_package_name: text/groff/groff-core
12373N/AMeta(info.classification): %{classification_prefix}:System/Text Tools
12373N/ASummary: GNU roff Text Formatting (core system components)
12373N/AIPS_legacy: false
12373N/A%include default-depend.inc
12373N/A%include gnome-consolidation.inc
12373N/A
12373N/A%prep
12373N/A%setup -q -n groff-%version
12373N/A%patch1 -p1
12373N/A%patch2 -p1
12373N/A
12373N/A%build
12373N/A%if %cc_is_gcc
12373N/A%else
12373N/Aexport CXX="${CXX} -norunpath"
12373N/A%endif
12373N/A
12373N/Alibtoolize --force
12373N/Aaclocal $ACLOCAL_FLAGS -I .
12373N/Aif (which autoconf-2.61 >/dev/null 2>&1); then
12373N/A autoconf-2.61
12373N/Aelse
12373N/A autoconf
12373N/Afi
12373N/Aif (which autoheader-2.61 >/dev/null 2>&1); then
12373N/A autoheader-2.61
12373N/Aelse
12373N/A autoheader
12373N/Afi
12373N/Abash ./configure --prefix=%{_prefix} \
12373N/A --datadir=%{_datadir} \
12373N/A --with-appresdir=%{_prefix}/X11/lib/X11/app-defaults \
12373N/A --sysconfdir=%{_sysconfdir}
12373N/Amake
12373N/A
12373N/A%install
12373N/Arm -rf $RPM_BUILD_ROOT%{_prefix}
12373N/Amkdir -p $RPM_BUILD_ROOT%{_prefix}
12374N/Amake appresdir=$RPM_BUILD_ROOT%{_prefix}/X11/lib/X11/app-defaults datadir=$RPM_BUILD_ROOT%{_datadir} prefix=$RPM_BUILD_ROOT%{_prefix} man5ext=4 man7ext=5 install
13320N/A
13810N/Atest -f $RPM_BUILD_ROOT/%{_datadir}/info/dir && \
13320N/A rm $RPM_BUILD_ROOT/%{_datadir}/info/dir
12373N/A# remove a man page groff_out.n which is handled poorly by catman(1) see 6768097
12373N/Arm $RPM_BUILD_ROOT/%{_datadir}/man/man4/groff_out.4
14345N/A
14021N/Amkdir -p $RPM_BUILD_ROOT%{_prefix}/gnu/bin
14413N/Armdir $RPM_BUILD_ROOT%{_datadir}/groff/site-font
12373N/A
12373N/ABINARIES="diffmk eqn grn indxbib neqn nroff pic refer soelim"
12373N/Acd $RPM_BUILD_ROOT%{_bindir}
12373N/A
12373N/Afor file in $BINARIES ; do
12373N/A cp g$file ../gnu/bin/$file
12373N/A rm g$file
12373N/A ln -s ../gnu/bin/$file g$file
12373N/Adone
12373N/A
12373N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
12373N/A
12373N/A%clean
12420N/Arm -rf $RPM_BUILD_ROOT
12420N/A
13307N/A%files
13307N/A%defattr(-, root, bin)
12773N/A%dir %attr (0755, root, bin) %{_libdir}
12773N/A%dir %attr (0755, root, bin) %{_bindir}
12773N/A%{_bindir}/addftinfo
12773N/A%{_bindir}/afmtodit
12773N/A%{_bindir}/eqn2graph
12373N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/ggrn
13307N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gindxbib
12373N/A%{_bindir}/glookbib
12373N/A%{_bindir}/grap2graph
12783N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/grefer
12373N/A%{_bindir}/grodvi
12373N/A%{_bindir}/groffer
12373N/A%{_bindir}/grolbp
12373N/A%{_bindir}/grolj4
12422N/A%{_bindir}/gxditview
12422N/A%{_bindir}/hpftodit
12373N/A%{_bindir}/lkbib
12373N/A%{_bindir}/mmroff
12373N/A%{_bindir}/pdfroff
12373N/A%{_bindir}/pfbtops
12373N/A%{_bindir}/pic2graph
13085N/A%{_bindir}/post-grohtml
13085N/A%{_bindir}/pre-grohtml
12373N/A%{_bindir}/tfmtodit
12373N/A%{_bindir}/xtotroff
12373N/A
12373N/A%dir %attr (0755, root, sys) %{_datadir}
12373N/A%dir %attr (0755, root, other) %{_datadir}/groff
12373N/A%dir %attr (0755, root, other) %{_datadir}/doc
12373N/A%{_datadir}/groff/%{version}/font/devX100-12/*
12373N/A%{_datadir}/groff/%{version}/font/devX100/*
12373N/A%{_datadir}/groff/%{version}/font/devX75-12/*
12373N/A%{_datadir}/groff/%{version}/font/devX75/*
12373N/A%{_datadir}/groff/%{version}/font/devdvi/*
12373N/A%{_datadir}/groff/%{version}/font/devhtml/*
12373N/A%{_datadir}/groff/%{version}/font/devlbp/*
12373N/A%{_datadir}/groff/%{version}/font/devlj4/*
12373N/A%{_datadir}/groff/%{version}/tmac/X.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/Xps.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/a4.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/cp1047.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/dvi.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/e.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/ec.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/html.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/html-end.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/lbp.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/lj4.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/me.tmac
14413N/A%{_datadir}/groff/%{version}/tmac/mm/*
14413N/A%{_datadir}/groff/%{version}/tmac/mom.tmac
14413N/A%{_datadir}/groff/%{version}/tmac/ms.tmac
14345N/A%{_datadir}/groff/%{version}/tmac/om.tmac
14345N/A%{_datadir}/groff/%{version}/tmac/pdfmark.tmac
14275N/A%{_datadir}/groff/%{version}/tmac/spdf.tmac
14275N/A%{_datadir}/groff/%{version}/tmac/trace.tmac
14275N/A%{_datadir}/info/groff*
14093N/A%{_datadir}/doc/groff*
14093N/A%{_prefix}/X11/lib/X11/app-defaults/*
14093N/A%{_libdir}/groff/*
14093N/A%{_mandir}/man1/addftinfo.1
13810N/A%{_mandir}/man1/afmtodit.1
13810N/A%{_mandir}/man1/eqn2graph.1
13810N/A%{_mandir}/man1/ggrn.1
13810N/A%{_mandir}/man1/gindxbib.1
13810N/A%{_mandir}/man1/glookbib.1
13794N/A%{_mandir}/man1/grap2graph.1
13794N/A%{_mandir}/man1/grefer.1
13493N/A%{_mandir}/man1/grodvi.1
13493N/A%{_mandir}/man1/groffer.1
13493N/A%{_mandir}/man1/grohtml.1
13350N/A%{_mandir}/man1/grolbp.1
13350N/A%{_mandir}/man1/grolj4.1
13320N/A%{_mandir}/man1/gxditview.1
13320N/A%{_mandir}/man1/hpftodit.1
13320N/A%{_mandir}/man1/lkbib.1
13320N/A%{_mandir}/man1/mmroff.1
13307N/A%{_mandir}/man1/pdfroff.1
13320N/A%{_mandir}/man1/pfbtops.1
13320N/A%{_mandir}/man1/pic2graph.1
13320N/A%{_mandir}/man1/tfmtodit.1
13307N/A%{_mandir}/man1/xtotroff.1
13307N/A%{_mandir}/man4/*
13085N/A%{_mandir}/man5/*
13085N/A
13085N/A%dir %attr (0755, root, bin) %{_prefix}/gnu
13062N/A%dir %attr (0755, root, bin) %{_prefix}/gnu/bin
13062N/A%defattr(0755, root, root)
13062N/A%{_prefix}/gnu/bin/grn
13001N/A%{_prefix}/gnu/bin/indxbib
13001N/A%{_prefix}/gnu/bin/refer
12783N/A%defattr(-, root, bin)
12783N/A
12783N/A%files core
12783N/A%defattr(-, root, bin)
12783N/A%doc(bzip2) COPYING ChangeLog
12704N/A%doc NEWS README
12704N/A%dir %attr (0755, root, bin) %{_bindir}
12704N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gdiffmk
12666N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/geqn
12666N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gpic
12666N/A%{_bindir}/groff
12666N/A%{_bindir}/grog
12611N/A%{_bindir}/grops
12611N/A%{_bindir}/grotty
12611N/A%{_bindir}/gtbl
12586N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gneqn
12586N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gnroff
12514N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gsoelim
12514N/A%{_bindir}/gtroff
12420N/A
12420N/A%dir %attr (0755, root, bin) %{_prefix}/gnu
12422N/A%dir %attr (0755, root, bin) %{_prefix}/gnu/bin
12400N/A%{_prefix}/gnu/bin/diffmk
12400N/A%{_prefix}/gnu/bin/eqn
12400N/A%{_prefix}/gnu/bin/pic
12400N/A%{_prefix}/gnu/bin/neqn
12400N/A%{_prefix}/gnu/bin/nroff
12400N/A%{_prefix}/gnu/bin/soelim
12400N/A
12400N/A%{_datadir}/groff/%{version}/eign
12374N/A%{_datadir}/groff/%{version}/font/devascii
12374N/A%{_datadir}/groff/%{version}/font/devlatin1
12374N/A%{_datadir}/groff/%{version}/font/devps
12374N/A%{_datadir}/groff/%{version}/font/devutf8
12374N/A%{_datadir}/groff/%{version}/tmac/an-old.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/andoc.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/composite.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/devtag.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/doc-old.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/doc.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/eqnrc
12373N/A%{_datadir}/groff/%{version}/tmac/gan.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/gm.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/gmm.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/gmmse.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/gmse.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/gs.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/hyphen.us
12373N/A%{_datadir}/groff/%{version}/tmac/hyphenex.us
12373N/A%{_datadir}/groff/%{version}/tmac/latin1.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/latin2.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/latin9.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/man.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/mandoc.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/mdoc.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/mdoc/doc-common
12373N/A%{_datadir}/groff/%{version}/tmac/mdoc/doc-ditroff
12373N/A%{_datadir}/groff/%{version}/tmac/mdoc/doc-nroff
12373N/A%{_datadir}/groff/%{version}/tmac/mdoc/doc-syms
12373N/A%{_datadir}/groff/%{version}/tmac/papersize.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/pic.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/europs.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/ps.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/psatk.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/psold.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/pspic.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/safer.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/troffrc
12373N/A%{_datadir}/groff/%{version}/tmac/troffrc-end
12373N/A%{_datadir}/groff/%{version}/tmac/tty-char.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/tty.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/unicode.tmac
12373N/A%{_datadir}/groff/%{version}/tmac/www.tmac
12373N/A%{_datadir}/groff/site-tmac/man.local
12373N/A%{_datadir}/groff/site-tmac/mdoc.local
12373N/A
12373N/A%{_mandir}/man1/gdiffmk.1
12373N/A%{_mandir}/man1/geqn.1
12373N/A%{_mandir}/man1/gneqn.1
12373N/A%{_mandir}/man1/gnroff.1
12373N/A%{_mandir}/man1/gpic.1
12373N/A%{_mandir}/man1/groff.1
12373N/A%{_mandir}/man1/grog.1
12373N/A%{_mandir}/man1/grops.1
12373N/A%{_mandir}/man1/grotty.1
12373N/A%{_mandir}/man1/gsoelim.1
12373N/A%{_mandir}/man1/gtbl.1
12373N/A%{_mandir}/man1/gtroff.1
12373N/A
12373N/A%dir %attr (0755, root, sys) %{_datadir}
12373N/A%dir %attr (0755, root, other) %{_datadir}/groff
12373N/A%dir %attr (0755, root, other) %{_datadir}/doc
12373N/A
12373N/A%actions core
12373N/Adepend fmri=pkg:/text/groff@%{version}-%{ips_vendor_version} type=incorporate
12373N/A
12373N/A%changelog
12373N/A* Thu Aug 25 2011 - padraig.obriain@oracle.com
12373N/A- Use -norunpath to fix CR 7076612
12373N/A* Tue Jun 28 2011 - padraig.obriain@oracle.com
12373N/A- Add patch 02-grog-fix for CR 6828304
12373N/A* Fri May 6 2011 - padraig.obriain@oracle.com
12373N/A- Change base to core based on David Comay's comments.
12373N/A* Thu Apr 28 2011 - laszlo.peter@oracle.com
12373N/A- updates based on Danek's comments:
12373N/A - no dependency on gnome-incorporation
- no dependencies on compatibility X package names
- incorporate dependency on groff in groff-base
- conditional dependency on groff in groff-base is libx11 is installed
- no original_name tags needed
* Thu Apr 21 2011 - padraig.obriain@oracle.com
- Split into two packages text/groff and text/groff-base (CR7010324)
* Mon Apr 4 2011 - padraig.obriain@oracle.com
- Instead of delivering a binary in /usr/bin and link in /usr/gnu/bin
- deliver binary in /usr/gnu/bin and link in /usr/bin; set facet on link.
* Wed Nov 10 2010 - padraig.obriain@oracle.com
- Add license tag.
* Wed May 25 2010 - brian.cameron@oracle.com
- Revert to 1.19.2 since 1.20.x is GPLv3.
* Tue May 25 2010 - brian.cameron@oracle.com
- Bump to 1.20.1.
* Fri Mar 19 2010 - christian.kelly@sun.com
- Add 'exit 1' to disable build, keeps getting stuck in a loop.
* Sun Sep 13 2009 - alan.coopersmith@sun.com
- Fix typo in summary (reported by timeless on #opensolaris irc)
* Wed Jul 08 2009 - christian.kelly@sun.com
- %{_datadir}/info/dir has changed from a dir to a file. Still check if it
exists and remove. It clashes with SUNWsfinf.
* Tue Mar 24 2009 - dave.lin@sun.com
- Check dir %{_datadir}/info/dir existence before remove it.
* Wed Mar 04 2009 - dave.lin@sun.com
- Removed empty dirs {_datadir}/info/dir, %{_datadir}/groff/site-font
* Wed Feb 25 2009 - matt.keenan@sun.com
- Add manpages patch for Attributes and ARC Comments
* Tue Feb 10 2009 - halton.huo@sun.com
- Add Requires to fix issue #4 for CR6753371
* Wed Sep 10 2008 - padraig.obriain@sun.com
- Add %doc to %files for copyright
* Fri Aug 08 2008 - damien.carbery@sun.com
- Remove reference to %SOURCE1 as it is not defined. Remove deletion of
%{_datadir}/info/dir because it is not installed.
* Wed Aug 05 2008 - padraig.obriain@sun.com
- Update following review
* Mon Jun 23 2008 - padraig.obriain@sun.com
- initial version