SUNWgroff.spec revision 18861
#
# spec file for package SUNWgroff
#
# includes module(s): groff
#
# Copyright (c) 2010 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner padraig
#
%include Solaris.inc
%define OSR 9396:1.19.2
Name: SUNWgroff
IPS_package_name: text/groff
Meta(info.classification): %{classification_prefix}:System/Text Tools
License: GPL v2
Vendor: www.gnu.org/software/groff
Summary: GNU roff Text Formatting
# Do not bump to 1.20 since the license changed to GPLv3. Legal review is
# required before updating.
version: 1.19.2
Source: http://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
# date:2009-02-25 owner:mattman type:branding
Patch1: groff-01-manpages.diff
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: %{name}.copyright
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWlibC
Requires: SUNWlibmsr
Requires: SUNWxwrtl
Requires: SUNWxwplt
Requires: SUNWxwice
Requires: SUNWperl584core
Requires: SUNWesu
%if %build_l10n
%package l10n
Summary: %{summary} - l10n files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %{name}
%endif
%prep
%setup -q -n groff-%version
%patch1 -p1
%build
libtoolize --force
aclocal $ACLOCAL_FLAGS -I .
if (which autoconf-2.61 >/dev/null 2>&1); then
autoconf-2.61
else
autoconf
fi
if (which autoheader-2.61 >/dev/null 2>&1); then
autoheader-2.61
else
autoheader
fi
./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
cd $RPM_BUILD_ROOT%{_prefix}/gnu/bin
ln -s ../../bin/gdiffmk diffmk
ln -s ../../bin/geqn eqn
ln -s ../../bin/ggrn grn
ln -s ../../bin/gindxbib indxbib
ln -s ../../bin/gneqn neqn
ln -s ../../bin/gnroff nroff
ln -s ../../bin/gpic pic
ln -s ../../bin/grefer refer
ln -s ../../bin/gsoelim soelim
%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}/*
%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
* 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