- Add suplements for the sgml2latex to make sure it gets
autoinstalled if one has both latex and sgmltool OBS-URL: https://build.opensuse.org/package/show/Publishing/sgmltool?expand=0&rev=22
This commit is contained in:
parent
c2d2840d7f
commit
caa4d9d8bd
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 30 10:16:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Add suplements for the sgml2latex to make sure it gets
|
||||||
|
autoinstalled if one has both latex and sgmltool
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 27 15:54:47 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
Fri Sep 27 15:54:47 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
133
sgmltool.spec
133
sgmltool.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package sgmltool
|
# spec file for package sgmltool
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,17 +15,16 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
%{expand: %%global _texmfmaindir %(kpsewhich -expand-var='$TEXMFMAIN')}
|
|
||||||
|
|
||||||
Name: sgmltool
|
Name: sgmltool
|
||||||
|
Version: 1.0.9
|
||||||
|
Release: 0
|
||||||
Summary: SGML-Tools - a Text-Formatting Package
|
Summary: SGML-Tools - a Text-Formatting Package
|
||||||
License: SUSE-Public-Domain
|
License: SUSE-Public-Domain
|
||||||
Group: Productivity/Publishing/SGML
|
Group: Productivity/Publishing/SGML
|
||||||
Version: 1.0.9
|
|
||||||
Release: 0
|
|
||||||
Source: ftp://ftp.nllgg.nl/pub2/SGMLtools/v1.0/sgml-tools-%{version}.tar.bz2
|
Source: ftp://ftp.nllgg.nl/pub2/SGMLtools/v1.0/sgml-tools-%{version}.tar.bz2
|
||||||
Source1: lnd-1.0.tar.bz2
|
Source1: lnd-1.0.tar.bz2
|
||||||
Patch: sgml-tools-1.0.9.dif
|
Patch0: sgml-tools-1.0.9.dif
|
||||||
Patch1: sgml-tools-temp-vuln-1.0.9.diff
|
Patch1: sgml-tools-temp-vuln-1.0.9.diff
|
||||||
Patch2: sgmltool-man-entities.diff
|
Patch2: sgmltool-man-entities.diff
|
||||||
Patch3: sgmltool-1.0.9-expandsyntax.diff
|
Patch3: sgmltool-1.0.9-expandsyntax.diff
|
||||||
@ -37,13 +36,14 @@ Patch8: sgml-tools-1.0.9-strip.diff
|
|||||||
Patch9: sgml-tools-1.0.9-latex.diff
|
Patch9: sgml-tools-1.0.9-latex.diff
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: groff
|
BuildRequires: groff
|
||||||
BuildRequires: texlive-kpathsea
|
|
||||||
BuildRequires: opensp
|
BuildRequires: opensp
|
||||||
Provides: sgml-tools
|
BuildRequires: texlive-kpathsea
|
||||||
Requires: opensp
|
Requires: opensp
|
||||||
Requires: perl = %perl_version
|
Requires: perl = %{perl_version}
|
||||||
Requires: perl(Text::EntityMap)
|
Requires: perl(Text::EntityMap)
|
||||||
Conflicts: linuxdoc
|
Conflicts: linuxdoc
|
||||||
|
Provides: sgml-tools
|
||||||
|
%{expand: %%global _texmfmaindir %(kpsewhich -expand-var='$TEXMFMAIN')}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SGML-Tools is a text-formatting package based on SGML (Standard
|
SGML-Tools is a text-formatting package based on SGML (Standard
|
||||||
@ -62,66 +62,69 @@ jade_dsl and write your own DSSSL scripts (take the docbk30 package as
|
|||||||
an example).
|
an example).
|
||||||
|
|
||||||
%package latex
|
%package latex
|
||||||
Summary: SGML-Tools - LaTeX generator
|
Summary: SGML-Tools - LaTeX generator
|
||||||
Requires: texlive-epsf
|
Group: Productivity/Publishing/SGML
|
||||||
Requires: texlive-latex
|
Requires: sgmltool
|
||||||
Requires: texlive-url
|
Requires: texlive-epsf
|
||||||
Requires: sgmltool
|
Requires: texlive-latex
|
||||||
Requires(post): coreutils
|
Requires: texlive-url
|
||||||
Requires(postun): coreutils
|
Requires(post): coreutils
|
||||||
Requires(postun): texlive-kpathsea
|
|
||||||
Requires(posttrans): texlive-filesystem
|
Requires(posttrans): texlive-filesystem
|
||||||
Provides: sgmltool:%{_bindir}/sgml2latex
|
Requires(postun): coreutils
|
||||||
|
Requires(postun): texlive-kpathsea
|
||||||
|
Supplements: (sgmltool and texlive-filesystem)
|
||||||
|
Provides: sgmltool:%{_bindir}/sgml2latex
|
||||||
|
|
||||||
%description latex
|
%description latex
|
||||||
This package contains the LaTeX generator (sgml2latex) from sgmltool.
|
This package contains the LaTeX generator (sgml2latex) from sgmltool.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n sgml-tools-%{version} -a1
|
%setup -q -n sgml-tools-%{version} -a1
|
||||||
%patch
|
%patch0
|
||||||
%patch1 -p 1
|
%patch1 -p1
|
||||||
%patch2 -p 1
|
%patch2 -p1
|
||||||
%patch3 -p 1
|
%patch3 -p1
|
||||||
%patch4 -p 1
|
%patch4 -p1
|
||||||
%patch5
|
%patch5
|
||||||
%patch6 -p 1
|
%patch6 -p1
|
||||||
%patch7 -p 1
|
%patch7 -p1
|
||||||
%patch8
|
%patch8
|
||||||
%patch9
|
%patch9
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%optflags -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
%configure --prefix="%buildroot/%_prefix" \
|
%configure \
|
||||||
--with-installed-nsgmls
|
--prefix="%{buildroot}/%{_prefix}" \
|
||||||
|
--with-installed-nsgmls
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
make install DESTDIR="%buildroot" prefix="%_prefix"
|
make %{?_smp_mflags} install DESTDIR=%{buildroot} prefix="%{_prefix}"
|
||||||
(cd doc; PATH="$PATH:%buildroot/%_bindir" sh Makedoc.sh)
|
(cd doc; PATH="$PATH:%buildroot/%{_bindir}" sh Makedoc.sh)
|
||||||
cp -p doc/README doc/README.doc
|
cp -p doc/README doc/README.doc
|
||||||
# the Makefiles are a bit nasty
|
# the Makefiles are a bit nasty
|
||||||
make clean
|
make %{?_smp_mflags} clean
|
||||||
%configure \
|
%configure \
|
||||||
--with-installed-nsgmls
|
--with-installed-nsgmls
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
> doc/Makedoc.sh
|
> doc/Makedoc.sh
|
||||||
make install DESTDIR="%buildroot";
|
make install DESTDIR="%{buildroot}";
|
||||||
rm -fr %{buildroot}/usr/doc/sgml-tools
|
rm -fr %{buildroot}%{_prefix}/doc/sgml-tools
|
||||||
perlpath=`ls -1d /usr/lib/perl5/5.*/Text`
|
perlpath=`ls -1d %{_prefix}/lib/perl5/5.*/Text`
|
||||||
mkdir -p %{buildroot}$perlpath
|
mkdir -p %{buildroot}$perlpath
|
||||||
mv %{buildroot}/usr/lib/perl5/Text/EntityMap.pm %{buildroot}$perlpath/
|
mv %{buildroot}%{_prefix}/lib/perl5/Text/EntityMap.pm %{buildroot}$perlpath/
|
||||||
|
|
||||||
%post latex
|
%post latex
|
||||||
mkdir -p /var/run/texlive
|
mkdir -p %{_localstatedir}/run/texlive
|
||||||
> /var/run/texlive/run-mktexlsr
|
> %{_localstatedir}/run/texlive/run-mktexlsr
|
||||||
|
|
||||||
%postun latex
|
%postun latex
|
||||||
if test $1 = 0; then
|
if test $1 = 0; then
|
||||||
%{_bindir}/mktexlsr 2> /dev/null || :
|
%{_bindir}/mktexlsr 2> /dev/null || :
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
mkdir -p /var/run/texlive
|
mkdir -p %{_localstatedir}/run/texlive
|
||||||
> /var/run/texlive/run-mktexlsr
|
> %{_localstatedir}/run/texlive/run-mktexlsr
|
||||||
|
|
||||||
%posttrans latex
|
%posttrans latex
|
||||||
VERBOSE=false %{_texmfmaindir}/texconfig/update || :
|
VERBOSE=false %{_texmfmaindir}/texconfig/update || :
|
||||||
@ -132,34 +135,34 @@ VERBOSE=false %{_texmfmaindir}/texconfig/update || :
|
|||||||
%doc BUGS CHANGES CONTRIBUTORS README TODO
|
%doc BUGS CHANGES CONTRIBUTORS README TODO
|
||||||
%doc doc/README.doc doc/example.sgml doc/html
|
%doc doc/README.doc doc/example.sgml doc/html
|
||||||
%doc doc/guide.ps.gz doc/guide.sgml doc/guide.txt
|
%doc doc/guide.ps.gz doc/guide.sgml doc/guide.txt
|
||||||
/usr/bin/sgmlsasp
|
%{_bindir}/sgmlsasp
|
||||||
/usr/bin/rtf2rtf
|
%{_bindir}/rtf2rtf
|
||||||
/usr/bin/sgmltools.v1
|
%{_bindir}/sgmltools.v1
|
||||||
/usr/bin/sgml2html
|
%{_bindir}/sgml2html
|
||||||
/usr/bin/sgml2info
|
%{_bindir}/sgml2info
|
||||||
/usr/bin/sgml2lyx
|
%{_bindir}/sgml2lyx
|
||||||
/usr/bin/sgml2rtf
|
%{_bindir}/sgml2rtf
|
||||||
/usr/bin/sgml2txt
|
%{_bindir}/sgml2txt
|
||||||
/usr/bin/sgmlcheck
|
%{_bindir}/sgmlcheck
|
||||||
/usr/bin/sgmlpre
|
%{_bindir}/sgmlpre
|
||||||
%dir /usr/lib/entity-map
|
%dir %{_prefix}/lib/entity-map
|
||||||
/usr/lib/entity-map/0.1.0
|
%{_prefix}/lib/entity-map/0.1.0
|
||||||
/usr/lib/perl5/5.*/Text/EntityMap.pm
|
%{_prefix}/lib/perl5/5.*/Text/EntityMap.pm
|
||||||
%dir /usr/lib/sgml
|
%dir %{_prefix}/lib/sgml
|
||||||
/usr/lib/sgml-tools
|
%{_prefix}/lib/sgml-tools
|
||||||
/usr/lib/sgml/iso-entities-8879.1986
|
%{_prefix}/lib/sgml/iso-entities-8879.1986
|
||||||
%{_mandir}/man1/sgml2html.1.gz
|
%{_mandir}/man1/sgml2html.1%{?ext_man}
|
||||||
%{_mandir}/man1/sgml2info.1.gz
|
%{_mandir}/man1/sgml2info.1%{?ext_man}
|
||||||
%{_mandir}/man1/sgml2lyx.1.gz
|
%{_mandir}/man1/sgml2lyx.1%{?ext_man}
|
||||||
%{_mandir}/man1/sgml2rtf.1.gz
|
%{_mandir}/man1/sgml2rtf.1%{?ext_man}
|
||||||
%{_mandir}/man1/sgml2txt.1.gz
|
%{_mandir}/man1/sgml2txt.1%{?ext_man}
|
||||||
%{_mandir}/man1/sgmlsasp.1.gz
|
%{_mandir}/man1/sgmlsasp.1%{?ext_man}
|
||||||
%{_mandir}/man1/sgmlcheck.1.gz
|
%{_mandir}/man1/sgmlcheck.1%{?ext_man}
|
||||||
%{_mandir}/man1/sgmltools.1.gz
|
%{_mandir}/man1/sgmltools.1%{?ext_man}
|
||||||
|
|
||||||
%files latex
|
%files latex
|
||||||
/usr/bin/sgml2latex
|
%{_bindir}/sgml2latex
|
||||||
%{_texmfmaindir}/tex/latex/sgml-tools
|
%{_texmfmaindir}/tex/latex/sgml-tools
|
||||||
%{_mandir}/man1/sgml2latex.1.gz
|
%{_mandir}/man1/sgml2latex.1%{?ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user