246 lines
7.7 KiB
RPMSpec
246 lines
7.7 KiB
RPMSpec
#
|
|
# spec file for package sgmltool (Version 1.0.9)
|
|
#
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: sgmltool
|
|
BuildRequires: flex opensp
|
|
%define _name sgml-tools
|
|
License: Public Domain, Freeware
|
|
Group: Productivity/Publishing/SGML
|
|
Provides: sgml-tools
|
|
Requires: opensp perl
|
|
Conflicts: linuxdoc
|
|
AutoReqProv: on
|
|
Summary: SGML-Tools - a Text-Formatting Package
|
|
Version: 1.0.9
|
|
Release: 1018
|
|
Source: ftp://ftp.nllgg.nl/pub2/SGMLtools/v1.0/sgml-tools-%{version}.tar.gz
|
|
Source1: lnd-1.0.tar.bz2
|
|
Patch: sgml-tools-1.0.9.dif
|
|
Patch1: sgml-tools-temp-vuln-1.0.9.diff
|
|
Patch2: sgmltool-man-entities.diff
|
|
Patch3: sgmltool-1.0.9-expandsyntax.diff
|
|
Patch4: sgml-tools-1.0.9-destdir.diff
|
|
Patch5: sgml-tools-retval.diff
|
|
Patch6: cflags-sgml-tools-1.0.9.diff
|
|
Patch7: sgml-tools-1.0.9-sgmlpre.diff
|
|
Patch8: sgml-tools-1.0.9-strip.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
SGML-Tools is a text-formatting package based on SGML (Standard
|
|
Generalized Markup Language), which allows you to produce LaTeX, HTML,
|
|
GNU info, LyX, RTF, and plain ASCII documents (via groff) from a single
|
|
source.
|
|
|
|
This system is tailored for writing technical software documentation,
|
|
an example of which is the Linux HOWTO documents. It should be useful
|
|
for all kinds of printed and online documentation.
|
|
|
|
This package is the successor to the Linuxdoc package.
|
|
|
|
SGML-Tools cannot process arbitrary SGML documents. In such a case, try
|
|
jade_dsl and write your own DSSSL scripts (take the docbk30 package as
|
|
an example).
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Cees A. de Groot <cg@pobox.com>
|
|
Arun Sharma <asharma@sco.com>
|
|
Andre Schoorl <aschoorl@engr.UVic.CA>
|
|
Daniele Giacomini <daniele@tv.shineline.it>
|
|
Dave Love <d.love@dl.ac.uk>
|
|
Dave Platt <dplatt@iq.TVSoft.com>
|
|
Eric S. Raymond <esr@thyrsus.com>
|
|
Francisco J. Montilla <pacopepe@nova.es>
|
|
Fabrizio Polacco <fpolacco@megabaud.fi>
|
|
Frank Pavageau <pavageau@imaginet.fr>
|
|
Jan Echternach <echter@informatik.uni-rostock.de>
|
|
Henry S. Thompson <ht@cogsci.ed.ac.uk>
|
|
Karsten Tinnefeld <tinnefeld@irb.informatik.uni-dortmund.de>
|
|
Kees de Bruin <kees_de_bruin@tasking.nl>
|
|
Ken MacLeod <kmacleod@midamerican.com>
|
|
Lee Marzke <marzke_lee@si.com>
|
|
Marco Budde <Marco_Budde@hqsys.fido.de>
|
|
Mitchell Perilstein <mnp@compass-da.com>
|
|
Sven Rudolph <sr1@os.inf.tu-dresden.de>
|
|
Tommy Marcus McGuire <mcguire@cs.utexas.edu>
|
|
Ulrich Windl <ulrich.windl@rz.uni-regensburg.de>
|
|
|
|
%define INSTALL install -m755
|
|
%define INSTALL_DIR install -d -m755
|
|
%define INSTALL_DATA install -m644
|
|
%define GZIP gzip --best --force
|
|
|
|
%prep
|
|
%setup -q -n %{_name}-%{version} -a1
|
|
%patch
|
|
%patch1 -p 1
|
|
%patch2 -p 1
|
|
%patch3 -p 1
|
|
%patch4 -p 1
|
|
%patch5
|
|
%patch6 -p 1
|
|
%patch7 -p 1
|
|
%patch8
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
./configure --prefix=$RPM_BUILD_ROOT/usr \
|
|
--mandir=%{_mandir} \
|
|
--with-installed-nsgmls
|
|
make "CFLAGS=$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr \
|
|
mandir=%{_mandir}
|
|
(cd doc; PATH=$PATH:$RPM_BUILD_ROOT/%_bindir sh Makedoc.sh)
|
|
cp -p doc/README doc/README.doc
|
|
# the Makefiles are a bit garstig
|
|
make clean
|
|
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
|
./configure --prefix=/usr \
|
|
--mandir=%{_mandir} \
|
|
--with-installed-nsgmls
|
|
make "CFLAGS=$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
%install
|
|
: > doc/Makedoc.sh
|
|
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr \
|
|
mandir=%{_mandir}
|
|
rm -fr $RPM_BUILD_ROOT/usr/doc/sgml-tools
|
|
perlpath=`ls -1d /usr/lib/perl5/5.*/Text`
|
|
mkdir -p $RPM_BUILD_ROOT$perlpath
|
|
mv $RPM_BUILD_ROOT/usr/lib/perl5/Text/EntityMap.pm $RPM_BUILD_ROOT$perlpath/
|
|
|
|
%clean
|
|
rm -fr $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc lnd-1.0
|
|
%doc COPYING BUGS CHANGES CONTRIBUTORS README TODO
|
|
%doc doc/README.doc doc/example.sgml doc/guide.info doc/guide.lyx
|
|
%doc doc/guide.ps.gz doc/guide.sgml doc/guide.txt
|
|
%doc doc/html doc/rtf
|
|
/usr/bin/sgmlsasp
|
|
/usr/bin/rtf2rtf
|
|
/usr/bin/sgmltools.v1
|
|
/usr/bin/sgml2html
|
|
/usr/bin/sgml2info
|
|
/usr/bin/sgml2latex
|
|
/usr/bin/sgml2lyx
|
|
/usr/bin/sgml2rtf
|
|
/usr/bin/sgml2txt
|
|
/usr/bin/sgmlcheck
|
|
/usr/bin/sgmlpre
|
|
%dir /usr/lib/entity-map
|
|
/usr/lib/entity-map/0.1.0
|
|
/usr/lib/perl5/5.*/Text/EntityMap.pm
|
|
%dir /usr/lib/sgml
|
|
/usr/lib/sgml-tools
|
|
/usr/lib/sgml/iso-entities-8879.1986
|
|
%{_mandir}/man1/sgml2html.1.gz
|
|
%{_mandir}/man1/sgml2info.1.gz
|
|
%{_mandir}/man1/sgml2latex.1.gz
|
|
%{_mandir}/man1/sgml2lyx.1.gz
|
|
%{_mandir}/man1/sgml2rtf.1.gz
|
|
%{_mandir}/man1/sgml2txt.1.gz
|
|
%{_mandir}/man1/sgmlsasp.1.gz
|
|
%{_mandir}/man1/sgmlcheck.1.gz
|
|
%{_mandir}/man1/sgmltools.1.gz
|
|
|
|
%changelog
|
|
* Wed Apr 23 2008 ro@suse.de
|
|
- do not redefine "name" macro
|
|
* Thu Mar 29 2007 ke@suse.de
|
|
- Add BuildRequires: flex.
|
|
* Sun May 28 2006 schwab@suse.de
|
|
- Don't strip binaries.
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Mon Oct 10 2005 ke@suse.de
|
|
- Use -fno-strict-aliasing.
|
|
- Add missing return value; thanks for debugging to Richard Guenther.
|
|
* Fri Jun 17 2005 meissner@suse.de
|
|
- use RPM_OPT_FLAGS.
|
|
* Thu Apr 29 2004 ro@suse.de
|
|
- added missing return value (unreached code)
|
|
* Sun Jan 11 2004 adrian@suse.de
|
|
- add %%defattr
|
|
* Wed Apr 23 2003 coolo@suse.de
|
|
- use more of that DESTDIR
|
|
* Tue Apr 22 2003 coolo@suse.de
|
|
- don't mess with broken Makefiles -> empty it before execution
|
|
* Tue Apr 22 2003 coolo@suse.de
|
|
- generating docs through brute force
|
|
* Thu Apr 17 2003 coolo@suse.de
|
|
- use BuildRoot
|
|
* Mon Apr 07 2003 mmj@suse.de
|
|
- The expand syntax changed with new coreutils.
|
|
* Mon Nov 11 2002 ro@suse.de
|
|
- adapted requires
|
|
* Mon Nov 11 2002 ro@suse.de
|
|
- changed neededforbuild <sp> to <opensp>
|
|
- changed neededforbuild <sp-devel> to <>
|
|
* Thu Jun 20 2002 ke@suse.de
|
|
- sgmltool-man-entities.diff: Try to map entities also for manpage
|
|
output; reported by Michal Svec [# 16536].
|
|
- enable %%clean section.
|
|
* Fri Mar 08 2002 kukuk@suse.de
|
|
- Add /usr/lib/entity-map to filelist
|
|
* Mon Aug 13 2001 ro@suse.de
|
|
- changed neededforbuild <sp_libs> to <sp-devel>
|
|
* Thu Apr 26 2001 ke@suse.de
|
|
- Apply tools-temp-vuln-1.0.9.diff to fix a tmp file vulnerability
|
|
(patch provided by Sebastian Krahmer) [#6826].
|
|
* Thu Jan 27 2000 ke@suse.de
|
|
- add more documentation lnd-1.0.tar.bz2 (thanks to mike for hint).
|
|
- use macros: %%{name}, %%{version}, %%{_mandir}.
|
|
- ./configure -> %%build section.
|
|
- add group tag.
|
|
* Mon Sep 13 1999 bs@suse.de
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
|
* Fri Jul 09 1999 bs@suse.de
|
|
- fixed path for perl module
|
|
* Tue Jun 29 1999 ke@suse.de
|
|
- babel now will know the language as an option (werner).
|
|
* Tue Apr 27 1999 ro@suse.de
|
|
- compiler fix: stdout is non constant
|
|
* Thu Nov 26 1998 ke@suse.de
|
|
- update: version 1.0.9 (bugfix release).
|
|
- mv the perl module to the 5.00502 dir hierarchy (hack).
|
|
* Wed Nov 18 1998 ro@suse.de
|
|
- adapt path to perl 5.00502
|
|
* Mon Nov 09 1998 ro@suse.de
|
|
- added sp_libs to neededforbuild
|
|
* Fri Oct 16 1998 ke@suse.de
|
|
- update: version 1.0.8 (bugfix release).
|
|
* Sun Jun 28 1998 ke@suse.de
|
|
- update: version 1.0.7 (bugfix release).
|
|
- remove jade_dsl from neededforbuild.
|
|
* Mon Mar 23 1998 bs@suse.de
|
|
- added sp to neededforbuild
|
|
* Fri Mar 06 1998 ke@suse.de
|
|
- update: version 1.0.5.
|
|
* Sat Feb 28 1998 bs@suse.de
|
|
- deleted texhash stuff (done by tetex package now)
|
|
* Sun Feb 15 1998 ke@suse.de
|
|
- update: version 1.0.4.
|
|
- simplify file list.
|
|
* Tue Jan 13 1998 ke@suse.de
|
|
- update: version 1.0.3
|
|
* Wed Nov 19 1997 ke@suse.de
|
|
- provide %%post and %%postun script to maintain /var/texfonts/ls-R.
|
|
* Mon Nov 17 1997 ke@suse.de
|
|
- initial package: version 0.99.20.
|