SUNWgroff.spec revision 20165
6260N/A#
6260N/A# spec file for package SUNWgroff
6260N/A#
6260N/A# includes module(s): groff
6260N/A#
6260N/A# Copyright (c) 2010 Sun Microsystems, Inc.
6260N/A# This file and all modifications and additions to the pristine
6260N/A# package are under the same license as the package itself.
6260N/A#
6260N/A%define owner padraig
6260N/A#
6260N/A%include Solaris.inc
6260N/A
6260N/A%define OSR 9396:1.19.2
6260N/A
6260N/AName: SUNWgroff
6260N/AIPS_package_name: text/groff
6260N/AMeta(info.classification): %{classification_prefix}:System/Text Tools
6260N/ALicense: GPL v2
6260N/AVendor: www.gnu.org/software/groff
6260N/ASummary: GNU roff Text Formatting
6260N/A# Do not bump to 1.20 since the license changed to GPLv3. Legal review is
6260N/A# required before updating.
6260N/Aversion: 1.19.2
6260N/ASource: http://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
6260N/A# date:2009-02-25 owner:mattman type:branding
6260N/APatch1: groff-01-manpages.diff
6260N/ASUNW_BaseDir: %{_basedir}
6260N/ASUNW_Copyright: %{name}.copyright
6260N/ALicense: GPL v2
6260N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
6260N/A
6260N/A%include default-depend.inc
6260N/A%include gnome-consolidation.inc
6260N/ARequires: SUNWlibC
6260N/ARequires: SUNWlibmsr
6260N/ARequires: SUNWxwrtl
6260N/ARequires: SUNWxwplt
6260N/ARequires: SUNWxwice
6260N/ARequires: SUNWperl584core
6260N/ARequires: SUNWesu
6260N/ARequires: SUNWdbus
6260N/ARequires: SUNWdbus-glib
6260N/ARequires: SUNWflexruntime
6260N/ARequires: SUNWfontconfig
6260N/ARequires: SUNWfreetype2
6260N/ARequires: SUNWgccruntime
6260N/ARequires: SUNWlibgcrypt
6260N/ABuildRequires: SUNWgtk2
6260N/ABuildRequires: SUNWglib2
6260N/ABuildRequires: SUNWghostscriptr
6260N/ABuildRequires: SUNWgsed
6260N/ABuildRequires: SUNWpsutils
6260N/A
6260N/A#%if %build_l10n
6260N/A#%package l10n
6260N/A#Summary: %{summary} - l10n files
6260N/A#SUNW_BaseDir: %{_basedir}
6260N/A#%include default-depend.inc
6260N/A#%include gnome-consolidation.inc
6260N/A#Requires: %{name}
6260N/A#%endif
6260N/A
6260N/A%prep
6260N/A%setup -q -n groff-%version
6260N/A%patch1 -p1
6260N/A
6260N/A%build
6260N/Alibtoolize --force
6260N/Aaclocal $ACLOCAL_FLAGS -I .
6260N/Aif (which autoconf-2.61 >/dev/null 2>&1); then
6260N/A autoconf-2.61
6260N/Aelse
6260N/A autoconf
fi
if (which autoheader-2.61 >/dev/null 2>&1); then
autoheader-2.61
else
autoheader
fi
bash ./configure --prefix=%{_prefix} \
--datadir=%{_datadir} \
--with-appresdir=%{_prefix}/X11/lib/X11/app-defaults \
--sysconfdir=%{_sysconfdir}
make
%install
rm -rf $RPM_BUILD_ROOT%{_prefix}
mkdir -p $RPM_BUILD_ROOT%{_prefix}
make 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
test -f $RPM_BUILD_ROOT/%{_datadir}/info/dir && \
rm $RPM_BUILD_ROOT/%{_datadir}/info/dir
# remove a man page groff_out.n which is handled poorly by catman(1) see 6768097
rm $RPM_BUILD_ROOT/%{_datadir}/man/man4/groff_out.4
mkdir -p $RPM_BUILD_ROOT%{_prefix}/gnu/bin
rmdir $RPM_BUILD_ROOT%{_datadir}/groff/site-font
BINARIES="diffmk eqn grn indxbib neqn nroff pic refer soelim"
cd $RPM_BUILD_ROOT%{_bindir}
for file in $BINARIES ; do
cp g$file ../gnu/bin/$file
rm g$file
ln -s ../gnu/bin/$file g$file
done
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc(bzip2) COPYING ChangeLog
%doc NEWS README
%defattr(-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/addftinfo
%{_bindir}/afmtodit
%{_bindir}/eqn2graph
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gdiffmk
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/geqn
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/ggrn
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gindxbib
%{_bindir}/glookbib
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gneqn
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gnroff
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gpic
%{_bindir}/grap2graph
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/grefer
%{_bindir}/grodvi
%{_bindir}/groff
%{_bindir}/groffer
%{_bindir}/grog
%{_bindir}/grolbp
%{_bindir}/grolj4
%{_bindir}/grops
%{_bindir}/grotty
%ips_tag(facet.compat.gnulinks=true) %{_bindir}/gsoelim
%{_bindir}/gtbl
%{_bindir}/gtroff
%{_bindir}/gxditview
%{_bindir}/hpftodit
%{_bindir}/lkbib
%{_bindir}/mmroff
%{_bindir}/pdfroff
%{_bindir}/pfbtops
%{_bindir}/pic2graph
%{_bindir}/post-grohtml
%{_bindir}/pre-grohtml
%{_bindir}/tfmtodit
%{_bindir}/xtotroff
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/groff
%dir %attr (0755, root, other) %{_datadir}/doc
%{_datadir}/groff/*
%{_datadir}/info/groff*
%{_datadir}/doc/groff*
%{_prefix}/X11/lib/X11/app-defaults/*
%{_libdir}/groff/*
%{_mandir}/*/*
%dir %attr (0755, root, bin) %{_prefix}/gnu
%dir %attr (0755, root, bin) %{_prefix}/gnu/bin
%defattr(0777, root, root)
%{_prefix}/gnu/bin/*
%defattr(-, root, bin)
#%if %build_l10n
#%files l10n
##%defattr (-, root, bin)
#%dir %attr (0755, root, sys) %{_datadir}
###%attr (-, root, other) %{_datadir}/locale
#%{_datadir}/groff/%version/*
#%endif
%changelog
* 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