SHA256
1
0
forked from pool/sgmltool

Accepting request 733707 from home:StefanBruens:branches:openSUSE:Factory

- Move sgml2latex to separate subpackage, avoid pulling in half
  of TeXLive when e.g. only sgml2html is required.
- Really remove sgmltool-flex.patch, was only applied for obsolete
  distribution versions.
- Stop distributing RTF and LyX versions of the guide; plaintext,
  HTML and Postscript should be sufficient.
- spec file cleanup:
  * drop defattr, use license, use buildroot instead of shell variable
  * remove long obsolete distro support

OBS-URL: https://build.opensuse.org/request/show/733707
OBS-URL: https://build.opensuse.org/package/show/Publishing/sgmltool?expand=0&rev=21
This commit is contained in:
Tomáš Chvátal 2019-09-30 09:57:37 +00:00 committed by Git OBS Bridge
parent ee5c6a6a06
commit c2d2840d7f
3 changed files with 53 additions and 64 deletions

View File

@ -1,13 +0,0 @@
Index: sgml-tools-1.0.9/rtf-fix/rtf2rtf.l
===================================================================
--- sgml-tools-1.0.9.orig/rtf-fix/rtf2rtf.l
+++ sgml-tools-1.0.9/rtf-fix/rtf2rtf.l
@@ -72,7 +72,7 @@ int current;
int skipnewline = 0;
extern char *yytext;
-extern int yyleng;
+extern size_t yyleng;
#define CHAPTER 1
#define SECTION 2

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Sep 27 15:54:47 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Move sgml2latex to separate subpackage, avoid pulling in half
of TeXLive when e.g. only sgml2html is required.
- Really remove sgmltool-flex.patch, was only applied for obsolete
distribution versions.
- Stop distributing RTF and LyX versions of the guide; plaintext,
HTML and Postscript should be sufficient.
- spec file cleanup:
* drop defattr, use license, use buildroot instead of shell variable
* remove long obsolete distro support
-------------------------------------------------------------------
Wed Feb 18 17:23:39 UTC 2015 - schwab@linux-m68k.org

View File

@ -1,7 +1,7 @@
#
# spec file for package sgmltool
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,32 +12,12 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{expand: %%global _texmfmaindir %(kpsewhich -expand-var='$TEXMFMAIN')}
Name: sgmltool
BuildRequires: flex
BuildRequires: groff
BuildRequires: opensp
%if 0%{suse_version} > 1220
BuildRequires: texlive-kpathsea
%endif
Provides: sgml-tools
Requires: opensp
Requires: perl = %perl_version
Requires: perl(Text::EntityMap)
%if 0%{suse_version} > 1220
Requires: texlive-epsf
Requires: texlive-latex
Requires: texlive-url
%{expand: %%global _texmfmaindir %(kpsewhich -expand-var='$TEXMFMAIN')}
Requires(post): coreutils
Requires(postun): coreutils
Requires(postun): texlive
Requires(posttrans): texlive
%endif
Conflicts: linuxdoc
Summary: SGML-Tools - a Text-Formatting Package
License: SUSE-Public-Domain
Group: Productivity/Publishing/SGML
@ -55,8 +35,15 @@ Patch6: cflags-sgml-tools-1.0.9.diff
Patch7: sgml-tools-1.0.9-sgmlpre.diff
Patch8: sgml-tools-1.0.9-strip.diff
Patch9: sgml-tools-1.0.9-latex.diff
Patch10: sgmltool-flex.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: flex
BuildRequires: groff
BuildRequires: texlive-kpathsea
BuildRequires: opensp
Provides: sgml-tools
Requires: opensp
Requires: perl = %perl_version
Requires: perl(Text::EntityMap)
Conflicts: linuxdoc
%description
SGML-Tools is a text-formatting package based on SGML (Standard
@ -74,10 +61,20 @@ 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).
%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%define GZIP gzip --best --force
%package latex
Summary: SGML-Tools - LaTeX generator
Requires: texlive-epsf
Requires: texlive-latex
Requires: texlive-url
Requires: sgmltool
Requires(post): coreutils
Requires(postun): coreutils
Requires(postun): texlive-kpathsea
Requires(posttrans): texlive-filesystem
Provides: sgmltool:%{_bindir}/sgml2latex
%description latex
This package contains the LaTeX generator (sgml2latex) from sgmltool.
%prep
%setup -q -n sgml-tools-%{version} -a1
@ -90,12 +87,7 @@ an example).
%patch6 -p 1
%patch7 -p 1
%patch8
%if 0%{suse_version} > 1220
%patch9
%if 0%{suse_version} <= 1320
%patch10 -p1
%endif
%endif
%build
export CFLAGS="%optflags -fno-strict-aliasing"
@ -114,17 +106,16 @@ make %{?_smp_mflags}
%install
> doc/Makedoc.sh
make install DESTDIR="%buildroot";
rm -fr $RPM_BUILD_ROOT/usr/doc/sgml-tools
rm -fr %{buildroot}/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/
mkdir -p %{buildroot}$perlpath
mv %{buildroot}/usr/lib/perl5/Text/EntityMap.pm %{buildroot}$perlpath/
%if 0%{suse_version} > 1220
%post
%post latex
mkdir -p /var/run/texlive
> /var/run/texlive/run-mktexlsr
%postun
%postun latex
if test $1 = 0; then
%{_bindir}/mktexlsr 2> /dev/null || :
exit 0
@ -132,23 +123,20 @@ fi
mkdir -p /var/run/texlive
> /var/run/texlive/run-mktexlsr
%posttrans
%posttrans latex
VERBOSE=false %{_texmfmaindir}/texconfig/update || :
%endif
%files
%defattr(-,root,root)
%license COPYING
%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 BUGS CHANGES CONTRIBUTORS README TODO
%doc doc/README.doc doc/example.sgml doc/html
%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
@ -160,12 +148,8 @@ VERBOSE=false %{_texmfmaindir}/texconfig/update || :
%dir /usr/lib/sgml
/usr/lib/sgml-tools
/usr/lib/sgml/iso-entities-8879.1986
%if 0%{suse_version} > 1220
%{_texmfmaindir}/tex/latex/sgml-tools
%endif
%{_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
@ -173,4 +157,9 @@ VERBOSE=false %{_texmfmaindir}/texconfig/update || :
%{_mandir}/man1/sgmlcheck.1.gz
%{_mandir}/man1/sgmltools.1.gz
%files latex
/usr/bin/sgml2latex
%{_texmfmaindir}/tex/latex/sgml-tools
%{_mandir}/man1/sgml2latex.1.gz
%changelog