SUNWgroff.spec revision 20238
10139N/A#
10139N/A# spec file for package SUNWgroff
10139N/A#
10139N/A# includes module(s): groff
10139N/A#
10139N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
10139N/A# This file and all modifications and additions to the pristine
17185N/A# package are under the same license as the package itself.
10139N/A#
17181N/A%define owner padraig
18603N/A#
17181N/A%include Solaris.inc
10139N/A
19112N/A%define OSR 9396:1.19.2
10139N/A
16175N/AName: SUNWgroff
10139N/AIPS_package_name: text/groff
10139N/AMeta(info.classification): %{classification_prefix}:System/Text Tools
18616N/ALicense: GPL v2
10139N/AVendor: www.gnu.org/software/groff
10139N/ASummary: GNU roff Text Formatting
10139N/A# Do not bump to 1.20 since the license changed to GPLv3. Legal review is
10139N/A# required before updating.
10139N/Aversion: 1.19.2
10139N/ASource: http://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
10139N/A# date:2009-02-25 owner:mattman type:branding
10139N/APatch1: groff-01-manpages.diff
10139N/ASUNW_BaseDir: %{_basedir}
10139N/ASUNW_Copyright: %{name}.copyright
10139N/ALicense: GPL v2
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A# This is needed because we do not include gnome-consolidation.inc
10139N/A# And that is because we do not want this package to depend on
10139N/A# gnome-incorporation
10139N/AMeta(org.opensolaris.consolidation): gnome
10139N/A
10139N/A%include default-depend.inc
10139N/ARequires: SUNWlibC
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWperl584core
10139N/ARequires: SUNWesu
10139N/ARequires: SUNWdbus
10139N/ARequires: SUNWdbus-glib
10139N/ARequires: SUNWflexruntime
10139N/ARequires: SUNWfontconfig
10139N/ARequires: SUNWfreetype2
10139N/ARequires: SUNWgccruntime
10139N/ARequires: SUNWlibgcrypt
10139N/ARequires: SUNWgroff-base
10139N/ABuildRequires: SUNWxwrtl
10139N/ABuildRequires: SUNWxwplt
10139N/ABuildRequires: SUNWxwice
10139N/ABuildRequires: SUNWgtk2
10139N/ABuildRequires: SUNWglib2
10139N/ABuildRequires: SUNWghostscriptr
10139N/ABuildRequires: SUNWgsed
10139N/ABuildRequires: SUNWpsutils
10139N/A
10139N/A%package -n SUNWgroff-base
10139N/AIPS_package_name: text/groff-base
10139N/AMeta(info.classification): %{classification_prefix}:System/Text Tools
10139N/ASummary: GNU roff Text Formatting (base system components)
10139N/AIPS_legacy: false
10139N/A%include default-depend.inc
10139N/A%include gnome-consolidation.inc
10139N/A
10139N/A#%if %build_l10n
10139N/A#%package l10n
10139N/A#Summary: %{summary} - l10n files
10139N/A#SUNW_BaseDir: %{_basedir}
10139N/A#%include default-depend.inc
10139N/A#%include gnome-consolidation.inc
10139N/A#Requires: %{name}
10139N/A#%endif
10139N/A
10318N/A%prep
10318N/A%setup -q -n groff-%version
10318N/A%patch1 -p1
10139N/A
10318N/A%build
10318N/Alibtoolize --force
10139N/Aaclocal $ACLOCAL_FLAGS -I .
10139N/Aif (which autoconf-2.61 >/dev/null 2>&1); then
10139N/A autoconf-2.61
10139N/Aelse
10139N/A autoconf
10139N/Afi
10139N/Aif (which autoheader-2.61 >/dev/null 2>&1); then
10139N/A autoheader-2.61
10139N/Aelse
10139N/A autoheader
10139N/Afi
10139N/Abash ./configure --prefix=%{_prefix} \
10139N/A --datadir=%{_datadir} \
10139N/A --with-appresdir=%{_prefix}/X11/lib/X11/app-defaults \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake
10139N/A
10139N/A%install
10139N/Arm -rf $RPM_BUILD_ROOT%{_prefix}
10139N/Amkdir -p $RPM_BUILD_ROOT%{_prefix}
10139N/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
10139N/A
10139N/Atest -f $RPM_BUILD_ROOT/%{_datadir}/info/dir && \
10139N/A rm $RPM_BUILD_ROOT/%{_datadir}/info/dir
10139N/A# remove a man page groff_out.n which is handled poorly by catman(1) see 6768097
10139N/Arm $RPM_BUILD_ROOT/%{_datadir}/man/man4/groff_out.4
10139N/A
10139N/Amkdir -p $RPM_BUILD_ROOT%{_prefix}/gnu/bin
10139N/Armdir $RPM_BUILD_ROOT%{_datadir}/groff/site-font
10139N/A
10139N/ABINARIES="diffmk eqn grn indxbib neqn nroff pic refer soelim"
16175N/Acd $RPM_BUILD_ROOT%{_bindir}
16175N/A
13970N/Afor file in $BINARIES ; do
13970N/A cp g$file ../gnu/bin/$file
10980N/A rm g$file
10980N/A ln -s ../gnu/bin/$file g$file
10951N/Adone
10951N/A
10818N/A%if %build_l10n
10818N/A%else
10318N/A# REMOVE l10n FILES
10318N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
10307N/A%endif
10307N/A
10139N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr(-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%dir %attr (0755, root, bin) %{_bindir}
10139N/A%{_bindir}/addftinfo
10139N/A%{_bindir}/afmtodit
10139N/A%{_bindir}/eqn2graph
10139N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/ggrn
10139N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gindxbib
10139N/A%{_bindir}/glookbib
10139N/A%{_bindir}/grap2graph
10139N/A%ips_tag(facet.compat.gnulinks=true) %{_bindir}/grefer
10139N/A%{_bindir}/grodvi
10139N/A%{_bindir}/groffer
10139N/A%{_bindir}/grolbp
10139N/A%{_bindir}/grolj4
10139N/A%{_bindir}/gxditview
10139N/A%{_bindir}/hpftodit
10139N/A%{_bindir}/lkbib
10139N/A%{_bindir}/mmroff
10139N/A%{_bindir}/pdfroff
10139N/A%{_bindir}/pfbtops
10139N/A%{_bindir}/pic2graph
10139N/A%{_bindir}/post-grohtml
10139N/A%{_bindir}/pre-grohtml
10139N/A%{_bindir}/tfmtodit
10139N/A%{_bindir}/xtotroff
10139N/A
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%dir %attr (0755, root, other) %{_datadir}/groff
10139N/A%dir %attr (0755, root, other) %{_datadir}/doc
10139N/A%{_datadir}/groff/%{version}/font/devX100-12/*
10139N/A%{_datadir}/groff/%{version}/font/devX100/*
%{_datadir}/groff/%{version}/font/devX75-12/*
%{_datadir}/groff/%{version}/font/devX75/*
%{_datadir}/groff/%{version}/font/devdvi/*
%{_datadir}/groff/%{version}/font/devhtml/*
%{_datadir}/groff/%{version}/font/devlbp/*
%{_datadir}/groff/%{version}/font/devlj4/*
%{_datadir}/groff/%{version}/tmac/X.tmac
%{_datadir}/groff/%{version}/tmac/Xps.tmac
%{_datadir}/groff/%{version}/tmac/a4.tmac
%{_datadir}/groff/%{version}/tmac/cp1047.tmac
%{_datadir}/groff/%{version}/tmac/dvi.tmac
%{_datadir}/groff/%{version}/tmac/e.tmac
%{_datadir}/groff/%{version}/tmac/ec.tmac
%{_datadir}/groff/%{version}/tmac/html.tmac
%{_datadir}/groff/%{version}/tmac/html-end.tmac
%{_datadir}/groff/%{version}/tmac/lbp.tmac
%{_datadir}/groff/%{version}/tmac/lj4.tmac
%{_datadir}/groff/%{version}/tmac/me.tmac
%{_datadir}/groff/%{version}/tmac/mm/*
%{_datadir}/groff/%{version}/tmac/mom.tmac
%{_datadir}/groff/%{version}/tmac/ms.tmac
%{_datadir}/groff/%{version}/tmac/om.tmac
%{_datadir}/groff/%{version}/tmac/pdfmark.tmac
%{_datadir}/groff/%{version}/tmac/spdf.tmac
%{_datadir}/groff/%{version}/tmac/trace.tmac
%{_datadir}/info/groff*
%{_datadir}/doc/groff*
%{_prefix}/X11/lib/X11/app-defaults/*
%{_libdir}/groff/*
%{_mandir}/man1/addftinfo.1
%{_mandir}/man1/afmtodit.1
%{_mandir}/man1/eqn2graph.1
%{_mandir}/man1/ggrn.1
%{_mandir}/man1/gindxbib.1
%{_mandir}/man1/glookbib.1
%{_mandir}/man1/grap2graph.1
%{_mandir}/man1/grefer.1
%{_mandir}/man1/grodvi.1
%{_mandir}/man1/groffer.1
%{_mandir}/man1/grohtml.1
%{_mandir}/man1/grolbp.1
%{_mandir}/man1/grolj4.1
%{_mandir}/man1/gxditview.1
%{_mandir}/man1/hpftodit.1
%{_mandir}/man1/lkbib.1
%{_mandir}/man1/mmroff.1
%{_mandir}/man1/pdfroff.1
%{_mandir}/man1/pfbtops.1
%{_mandir}/man1/pic2graph.1
%{_mandir}/man1/tfmtodit.1
%{_mandir}/man1/xtotroff.1
%{_mandir}/man4/*
%{_mandir}/man5/*
%dir %attr (0755, root, bin) %{_prefix}/gnu
%dir %attr (0755, root, bin) %{_prefix}/gnu/bin
%defattr(0777, root, root)
%{_prefix}/gnu/bin/grn
%{_prefix}/gnu/bin/indxbib
%{_prefix}/gnu/bin/refer
%defattr(-, root, bin)
%files base
%defattr(-, root, bin)
%doc(bzip2) COPYING ChangeLog
%doc NEWS README
%dir %attr (0755, root, bin) %{_bindir}
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gdiffmk
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/geqn
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gpic
%{_bindir}/groff
%{_bindir}/grog
%{_bindir}/grops
%{_bindir}/grotty
%{_bindir}/gtbl
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gneqn
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gnroff
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gsoelim
%{_bindir}/gtroff
%dir %attr (0755, root, bin) %{_prefix}/gnu
%dir %attr (0755, root, bin) %{_prefix}/gnu/bin
%{_prefix}/gnu/bin/diffmk
%{_prefix}/gnu/bin/eqn
%{_prefix}/gnu/bin/pic
%{_prefix}/gnu/bin/neqn
%{_prefix}/gnu/bin/nroff
%{_prefix}/gnu/bin/soelim
%{_datadir}/groff/%{version}/eign
%{_datadir}/groff/%{version}/font/devascii
%{_datadir}/groff/%{version}/font/devlatin1
%{_datadir}/groff/%{version}/font/devps
%{_datadir}/groff/%{version}/font/devutf8
%{_datadir}/groff/%{version}/tmac/an-old.tmac
%{_datadir}/groff/%{version}/tmac/andoc.tmac
%{_datadir}/groff/%{version}/tmac/composite.tmac
%{_datadir}/groff/%{version}/tmac/devtag.tmac
%{_datadir}/groff/%{version}/tmac/doc-old.tmac
%{_datadir}/groff/%{version}/tmac/doc.tmac
%{_datadir}/groff/%{version}/tmac/eqnrc
%{_datadir}/groff/%{version}/tmac/gan.tmac
%{_datadir}/groff/%{version}/tmac/gm.tmac
%{_datadir}/groff/%{version}/tmac/gmm.tmac
%{_datadir}/groff/%{version}/tmac/gmmse.tmac
%{_datadir}/groff/%{version}/tmac/gmse.tmac
%{_datadir}/groff/%{version}/tmac/gs.tmac
%{_datadir}/groff/%{version}/tmac/hyphen.us
%{_datadir}/groff/%{version}/tmac/hyphenex.us
%{_datadir}/groff/%{version}/tmac/latin1.tmac
%{_datadir}/groff/%{version}/tmac/latin2.tmac
%{_datadir}/groff/%{version}/tmac/latin9.tmac
%{_datadir}/groff/%{version}/tmac/man.tmac
%{_datadir}/groff/%{version}/tmac/mandoc.tmac
%{_datadir}/groff/%{version}/tmac/mdoc.tmac
%{_datadir}/groff/%{version}/tmac/mdoc/doc-common
%{_datadir}/groff/%{version}/tmac/mdoc/doc-ditroff
%{_datadir}/groff/%{version}/tmac/mdoc/doc-nroff
%{_datadir}/groff/%{version}/tmac/mdoc/doc-syms
%{_datadir}/groff/%{version}/tmac/papersize.tmac
%{_datadir}/groff/%{version}/tmac/pic.tmac
%{_datadir}/groff/%{version}/tmac/europs.tmac
%{_datadir}/groff/%{version}/tmac/ps.tmac
%{_datadir}/groff/%{version}/tmac/psatk.tmac
%{_datadir}/groff/%{version}/tmac/psold.tmac
%{_datadir}/groff/%{version}/tmac/pspic.tmac
%{_datadir}/groff/%{version}/tmac/safer.tmac
%{_datadir}/groff/%{version}/tmac/troffrc
%{_datadir}/groff/%{version}/tmac/troffrc-end
%{_datadir}/groff/%{version}/tmac/tty-char.tmac
%{_datadir}/groff/%{version}/tmac/tty.tmac
%{_datadir}/groff/%{version}/tmac/unicode.tmac
%{_datadir}/groff/%{version}/tmac/www.tmac
%{_datadir}/groff/site-tmac/man.local
%{_datadir}/groff/site-tmac/mdoc.local
%{_mandir}/man1/gdiffmk.1
%{_mandir}/man1/geqn.1
%{_mandir}/man1/gneqn.1
%{_mandir}/man1/gnroff.1
%{_mandir}/man1/gpic.1
%{_mandir}/man1/groff.1
%{_mandir}/man1/grog.1
%{_mandir}/man1/grops.1
%{_mandir}/man1/grotty.1
%{_mandir}/man1/gsoelim.1
%{_mandir}/man1/gtbl.1
%{_mandir}/man1/gtroff.1
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/groff
%dir %attr (0755, root, other) %{_datadir}/doc
#%if %build_l10n
#%files l10n
##%defattr (-, root, bin)
#%dir %attr (0755, root, sys) %{_datadir}
###%attr (-, root, other) %{_datadir}/locale
#%{_datadir}/groff/%version/*
#%endif
%actions base
depend fmri=pkg:/text/groff@%{version}-0.%{desktop_build} type=incorporate
depend fmri=pkg:/text/groff@%{version}-0.%{desktop_build} type=conditional predicate=pkg:/x11/library/libx11
%changelog
* Thu Apr 28 2011 - laszlo.peter@oracle.com
- updates based on Danek's comments:
- 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