2006-12-19 00:16:43 +01:00
|
|
|
#
|
2011-03-15 10:19:26 +01:00
|
|
|
# spec file for package groff
|
2006-12-19 00:16:43 +01:00
|
|
|
#
|
2011-03-15 10:19:26 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:16:43 +01:00
|
|
|
#
|
2008-10-07 11:23:35 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:16:43 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2007-01-10 01:55:44 +01:00
|
|
|
# norootforbuild
|
2006-12-19 00:16:43 +01:00
|
|
|
|
2010-10-08 00:24:01 +02:00
|
|
|
|
2006-12-19 00:16:43 +01:00
|
|
|
Name: groff
|
2011-03-15 09:36:36 +01:00
|
|
|
License: BSD3c(or similar) ; GPLv2+
|
2006-12-19 00:16:43 +01:00
|
|
|
Group: Productivity/Publishing/Troff
|
2011-03-15 09:36:36 +01:00
|
|
|
Version: 1.20.1
|
2011-03-15 10:19:26 +01:00
|
|
|
Release: 5
|
2006-12-19 00:16:43 +01:00
|
|
|
Summary: GNU troff Document Formatting System
|
2007-11-08 23:28:42 +01:00
|
|
|
Url: http://www.gnu.org/software/groff/groff.html
|
2011-03-15 09:36:36 +01:00
|
|
|
Source0: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.bz2
|
2006-12-19 00:16:43 +01:00
|
|
|
Source1: SuSEconfig.groff
|
|
|
|
Source2: sysconfig.suseconfig-groff
|
2008-11-28 15:07:38 +01:00
|
|
|
Source3: zzz-groff.sh
|
|
|
|
Source4: zzz-groff.csh
|
2011-03-15 09:36:36 +01:00
|
|
|
# for file in `cat series | grep -v '^#' | grep '^[a-z]' ` do
|
|
|
|
# cat $file >> groff_1.20.1-10.debian.diff
|
|
|
|
# done
|
|
|
|
Patch0: groff_1.20.1-10.debian.diff
|
|
|
|
Patch1: groff-1.20.1-destbufferoverflow.patch
|
|
|
|
Patch2: groff-1.20.1-nroff-empty-LANGUAGE.patch
|
|
|
|
Patch3: groff-1.20.1-groffer-libexecdir.patch
|
2011-04-28 16:40:40 +02:00
|
|
|
Patch4: groff-1.20.1-deunicode.patch
|
|
|
|
|
2006-12-19 00:16:43 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-03-15 09:36:36 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
Provides: normal-groff = %{version}-%{release}
|
|
|
|
Provides: jgroff = %{version}-%{release}
|
|
|
|
Obsoletes: jgroff < %{version}
|
|
|
|
Requires(pre): %fillup_prereq
|
|
|
|
Requires(pre): %install_info_prereq
|
|
|
|
AutoReqProv: on
|
|
|
|
# for pre-grohtml and pdfroff
|
|
|
|
Recommends: netpbm
|
|
|
|
Recommends: ghostscript-library
|
|
|
|
Recommends: pssutils
|
2006-12-19 00:16:43 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The groff package provides compatible versions of troff, nroff, eqn,
|
|
|
|
tbl, and other Unix text formatting utilities.
|
|
|
|
|
|
|
|
Groff is used to "compile" man pages stored in groff or nroff format
|
|
|
|
for different output devices, for example, displaying to a screen or in
|
|
|
|
PostScript(tm) format for printing on a PostScript(tm) printer. Most
|
|
|
|
programs store their man pages in either /usr/share/man/ or
|
|
|
|
/usr/X11R6/man/.
|
|
|
|
|
2011-03-15 09:36:36 +01:00
|
|
|
%package doc
|
|
|
|
License: BSD3c(or similar) ; GPLv2+
|
|
|
|
Group: Productivity/Publishing/Troff
|
|
|
|
Summary: HTML documentation and examples for groff
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
The groff package provides compatible versions of troff, nroff, eqn,
|
|
|
|
tbl, and other Unix text formatting utilities.
|
|
|
|
|
|
|
|
Groff is used to "compile" man pages stored in groff or nroff format
|
|
|
|
for different output devices, for example, displaying to a screen or in
|
|
|
|
PostScript(tm) format for printing on a PostScript(tm) printer. Most
|
|
|
|
programs store their man pages in either /usr/share/man/ or
|
|
|
|
/usr/X11R6/man/.
|
2006-12-19 00:16:43 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n groff-%{version}
|
|
|
|
%patch0 -p1 -b .debian
|
2011-03-15 09:36:36 +01:00
|
|
|
%patch1
|
|
|
|
%patch2 -p1 -b .bnc540600
|
|
|
|
%patch3 -p1 -b .groffer-libexecdir
|
2011-04-28 16:40:40 +02:00
|
|
|
%patch4 -p1 -b .deunicode
|
2006-12-19 00:16:43 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
PATH=$PWD/src/roff/troff:$PWD/src/preproc/pic:$PWD/src/preproc/eqn:$PWD/src/preproc/tbl:$PWDsrc/preproc/refer:$PWD/src/preproc/soelim:$PATH
|
|
|
|
PATH=$PWD/src/roff/grog:$PWD/src/roff/groff:$PWD/src/devices/grops:$PWD/src/devices/grotty:$PWD/src/devices/grodvi:$PWD/src/devices/grohtml:$PATH
|
|
|
|
GROFF_COMMAND_PREFIX=
|
|
|
|
GROFF_FONT_PATH=$PWD
|
|
|
|
GROFF_TMAC_PATH=$PWD/tmac:$PWD/src/roff/troff
|
|
|
|
export PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
|
|
|
|
#
|
|
|
|
#libtoolize --force
|
|
|
|
#autoreconf --force --install
|
2011-03-15 09:36:36 +01:00
|
|
|
export CFLAGS="-fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="-fno-strict-aliasing"
|
|
|
|
%{configure}
|
|
|
|
%{__make}
|
2006-12-19 00:16:43 +01:00
|
|
|
pushd doc
|
2011-03-15 09:36:36 +01:00
|
|
|
%{__make}
|
2006-12-19 00:16:43 +01:00
|
|
|
makeinfo groff.texinfo
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
2011-03-15 09:36:36 +01:00
|
|
|
%{makeinstall} docdir=%{_defaultdocdir}/%{name}
|
2011-04-28 16:40:40 +02:00
|
|
|
|
2011-03-15 09:36:36 +01:00
|
|
|
%{__rm} -f %{buildroot}%{_infodir}/dir
|
|
|
|
|
|
|
|
# documentation
|
|
|
|
%{__cp} -pr BUG-REPORT ChangeLog* COPYING FDL LICENSES MANIFEST MORE.STUFF NEWS PROBLEMS PROJECTS README README.MinGW REVISION VERSION doc/*ps \
|
|
|
|
%{buildroot}/%{_defaultdocdir}/%{name}/
|
|
|
|
|
|
|
|
# compat symlinks
|
|
|
|
%{__ln_s} -f eqn %{buildroot}%{_bindir}/geqn
|
|
|
|
%{__ln_s} -f tbl %{buildroot}%{_bindir}/gtbl
|
|
|
|
|
|
|
|
# SUSEconfig stuff
|
|
|
|
%{__install} -d -m 0755 %{buildroot}/sbin/conf.d
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_localstatedir}/adm/fillup-templates
|
|
|
|
%{__install} -m 0755 %{SOURCE1} %{buildroot}/sbin/conf.d/
|
|
|
|
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_localstatedir}/adm/fillup-templates/
|
|
|
|
|
|
|
|
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}
|
|
|
|
echo "a4" > %{buildroot}%{_sysconfdir}/papersize
|
|
|
|
%{__chmod} 0644 %{buildroot}%{_sysconfdir}/papersize
|
|
|
|
|
2006-12-19 00:16:43 +01:00
|
|
|
# install profiles to disable the use of ANSI colour sequences by default:
|
2011-03-15 09:36:36 +01:00
|
|
|
%{__install} -d -m 0755 %{buildroot}/%{_sysconfdir}/profile.d
|
|
|
|
%{__install} -m 644 %{SOURCE3} %{SOURCE4} %{buildroot}/%{_sysconfdir}/profile.d/
|
|
|
|
|
|
|
|
%fdupes -s %{buildroot}
|
2006-12-19 00:16:43 +01:00
|
|
|
|
|
|
|
%clean
|
2011-03-15 09:36:36 +01:00
|
|
|
rm -rf %{buildroot}
|
2006-12-19 00:16:43 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -an suseconfig}
|
2011-03-15 09:36:36 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
2006-12-19 00:16:43 +01:00
|
|
|
|
|
|
|
%postun
|
2011-03-15 09:36:36 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
2006-12-19 00:16:43 +01:00
|
|
|
|
|
|
|
%files
|
2007-01-10 01:55:44 +01:00
|
|
|
%defattr(-, root, root)
|
2006-12-19 00:16:43 +01:00
|
|
|
%dir %{_defaultdocdir}/groff
|
2011-03-15 09:36:36 +01:00
|
|
|
%doc %{_defaultdocdir}/groff/
|
|
|
|
%exclude %{_defaultdocdir}/groff/html
|
|
|
|
%exclude %{_defaultdocdir}/groff/examples
|
2006-12-19 00:16:43 +01:00
|
|
|
%doc %{_infodir}/groff*
|
|
|
|
%doc %{_mandir}/man?/*
|
2011-03-15 09:36:36 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/papersize
|
|
|
|
%config %{_sysconfdir}/profile.d/zzz-%{name}.*sh
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}
|
|
|
|
/sbin/conf.d/SuSEconfig.%{name}
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.suseconfig-%{name}
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_defaultdocdir}/groff
|
|
|
|
%doc %{_defaultdocdir}/groff/html
|
|
|
|
%doc %{_defaultdocdir}/groff/examples
|
2008-03-26 16:13:23 +01:00
|
|
|
|
2007-03-27 01:31:43 +02:00
|
|
|
%changelog
|