update to 0.9.82 [release 0.9.82-1mamba;Fri Dec 18 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 06:23:39 +01:00
parent 16f58f638e
commit 34da58935f

View File

@ -1,7 +1,7 @@
%{expand:%%define TeXdir %(kpsewhich -expand-var '$TEXMFMAIN')} %{expand:%%define TeXdir %(kpsewhich -expand-var '$TEXMFMAIN')}
Name: linuxdoc-tools Name: linuxdoc-tools
Version: 0.9.69 Version: 0.9.82
Release: 1mamba Release: 1mamba
Summary: A toolset for processing LinuxDoc DTD SGML files Summary: A toolset for processing LinuxDoc DTD SGML files
Group: Applications/Publishing Group: Applications/Publishing
@ -16,19 +16,18 @@ Requires: groff, texinfo, openjade >= 1.3.2
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libfl-devel
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: groff BuildRequires: groff
BuildRequires: openjade BuildRequires: openjade
BuildRequires: perl-devel
BuildRequires: tetex-latex BuildRequires: tetex-latex
BuildRequires: texinfo BuildRequires: texinfo
## AUTOBUILDREQ-END
BuildRequires: flex BuildRequires: flex
BuildRequires: OpenSP BuildRequires: OpenSP
Requires: sgml-common
# FIXME : linuxdoc-tools-0.9.21/doc/Makedoc.sh
# Processing file ./guide
# sh: line 1: -D: command not found
# (see doc/Makedoc.sh, row 74)
%description %description
Linuxdoc-tools is a toolset for processing LinuxDoc DTD SGML files. Linuxdoc-tools is a toolset for processing LinuxDoc DTD SGML files.
@ -37,41 +36,49 @@ This package allows you to produce HTML, GNU info, LyX, RTF, plain text (via gro
%package latex %package latex
Summary: A toolset for processing LinuxDoc DTD SGML files and produce LaTeX documents Summary: A toolset for processing LinuxDoc DTD SGML files and produce LaTeX documents
Group: Applications/Publishing Group: Applications/Publishing
Requires: %{name} = %{version} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: tetex-latex Requires: tetex-latex
%description latex %description latex
Linuxdoc-tools is a toolset for processing LinuxDoc DTD SGML files. Linuxdoc-tools is a toolset for processing LinuxDoc DTD SGML files.
This package allows you to produce LaTeX documents from a single SGML source. This package allows you to produce LaTeX documents from a single SGML source.
%debug_package
%prep %prep
%setup -q %setup -q
#%patch1 -p1 #%patch1 -p1
sed -i '/extern int yyleng;/d' rtf-fix/rtf2rtf.l
%build %build
#need to get config.{sub,guess} in, something is broken in the build
autoreconf -i
%configure \ %configure \
--with-installed-nsgmls \
--with-installed-iso-entities \
--with-perllibdir=%{perl_sitelib} \ --with-perllibdir=%{perl_sitelib} \
--with-texdir=%{TeXdir}/tex/latex/misc --with-texdir=%{TeXdir}/tex/latex/misc \
--disable-docs
# Packaging brain-damage
pushd entity-map
autoconf
%configure --enable-docs pdf
popd
%make OPTIMIZE="%{optflags}" %make OPTIMIZE="%{optflags}"
# use sgml entities from sgml-common
perl -pi -e 's,\$main::prefix/share/sgml/iso-entities-8879.1986/iso-entities.cat,/usr/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
perl5lib/LinuxDocTools.pm
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall %makeinstall
#install -d %{buildroot}%{TeXdir}/tex/latex/misc # use sgml entities from sgml-common
#mv %{buildroot}/usr/share/linuxdoc-tools/*.sty \ perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
# %{buildroot}%{TeXdir}/tex/latex/misc %{buildroot}%{perl_sitelib}/LinuxDocTools.pm%
mv %{buildroot}%{_datadir}/doc/%{name} \
%{buildroot}%{_defaultdocdir}/%{name}-%{version}
#cp ChangeLog COPYING README \
cp COPYING \
%{buildroot}%{_defaultdocdir}/%{name}-%{version}
find %{buildroot}%{_defaultdocdir}/%{name}-%{version} -name Makefile | \
xargs rm -f
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
@ -89,8 +96,7 @@ exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/* %{_bindir}/*
%{_datadir}/sgml/* #%{_datadir}/sgml/*
%{_mandir}/man1/*
%dir %{_datadir}/linuxdoc-tools %dir %{_datadir}/linuxdoc-tools
%{_datadir}/linuxdoc-tools/* %{_datadir}/linuxdoc-tools/*
%{_datadir}/entity-map/* %{_datadir}/entity-map/*
@ -98,14 +104,21 @@ exit 0
%{perl_sitelib}/LinuxDocTools.pm %{perl_sitelib}/LinuxDocTools.pm
%dir %{perl_sitelib}/LinuxDocTools %dir %{perl_sitelib}/LinuxDocTools
%{perl_sitelib}/LinuxDocTools/*.pm %{perl_sitelib}/LinuxDocTools/*.pm
%dir %{_defaultdocdir}/%{name}-%{version} %dir %{perl_sitelib}/LinuxDocTools/Data
%{_defaultdocdir}/%{name}-%{version}/* %{perl_sitelib}/LinuxDocTools/Data/*.pm
#%dir %{_defaultdocdir}/%{name}-%{version}
#%{_defaultdocdir}/%{name}-%{version}/*
%{_mandir}/man1/*
%doc COPYING
%files latex %files latex
%defattr(-,root,root) %defattr(-,root,root)
%{TeXdir}/tex/latex/misc/*.sty %{TeXdir}/tex/latex/misc/*.sty
%changelog %changelog
* Fri Dec 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.82-1mamba
- update to 0.9.82
* Tue Aug 20 2013 Automatic Build System <autodist@mambasoft.it> 0.9.68-1mamba * Tue Aug 20 2013 Automatic Build System <autodist@mambasoft.it> 0.9.68-1mamba
- automatic version update by autodist - automatic version update by autodist