Package yodl: Specfile

%define _unpackaged_files_terminate_build 1

Name: yodl
Epoch: 1
Version: 4.03.00
Release: alt2
Summary: Yet oneOther Document Language
License: GPL
Group: Text tools
URL: https://gitlab.com/fbb-git/yodl

# https://gitlab.com/fbb-git/yodl.git
Source: yodl-%version.tar

Patch1: yodl-alt-build.patch

# Automatically added by buildreq on Sun Apr 13 2008
BuildRequires: flex groff-base netpbm python-modules
BuildRequires: gcc-c++
BuildRequires: boost-filesystem-devel

BuildPreReq: icmake texlive-collection-latexrecommended tex(epsf.sty) ghostscript-utils

%description
Yodl is a package that implements a pre-document language and tools to
process it.  The idea of Yodl is that you write up a document in a
pre-language, then use the tools (eg. yodl2html) to convert it to some
final document language.  Current converters are for HTML, ms, man, LaTeX
SGML and texinfo, plus a poor-man's text converter.  Main document types
are "article", "report", "book" and "manpage".  The Yodl document
language is designed to be easy to use and extensible.

%package docs
Summary: Documentation for Yodl
Group: Documentation
BuildArch: noarch

%description docs
Yodl is a package that implements a pre-document language and tools to
process it.  The idea of Yodl is that you write up a document in a
pre-language, then use the tools (eg. yodl2html) to convert it to some
final document language.  Current converters are for HTML, ms, man, LaTeX
SGML and texinfo, plus a poor-man's text converter.  Main document types
are "article", "report", "book" and "manpage".  The Yodl document
language is designed to be easy to use and extensible.

This package contais documentation for Yodl.

%prep
%setup
%patch1 -p2

%build
%add_optflags -std=c++17
export ac_cv_lib_intl_gettext=no
for i in programs macros man manual
do
	./build $i
done

%install
for i in programs macros man manual docs
do
	./build install $i %buildroot
done

%files
%_bindir/*
%_datadir/%name
%_mandir/man?/*

%files docs
%_docdir/%name
%_docdir/yodl-doc

%changelog
* Thu Oct 29 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 1:4.03.00-alt2
- Use boost::filesystem instead of std::filesystem for P9 compatibility.

* Wed Oct 28 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 1:4.03.00-alt1
- Updated to upstream version 4.03.00 (Fixes: CVE-2016-10375).

* Mon Mar 12 2018 Igor Vlasenko <viy@altlinux.ru> 1:3.00.0-alt1.qa2
- NMU: fixed BR: for texlive 2017

* Fri Apr 19 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 1:3.00.0-alt1.qa1
- NMU: rebuilt for updated dependencies.

* Sun Aug 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:3.00.0-alt1
- Version 3.00.0

* Wed Nov 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1:1.31.18-alt2.1.1
- Rebuilt with python 2.6

* Sun Jun 21 2009 Alexey Tourbin <at@altlinux.ru> 1:1.31.18-alt2.1
- rebuilt

* Sun Apr 13 2008 Alexey Tourbin <at@altlinux.ru> 1:1.31.18-alt2
- suse-python25.patch

* Fri Jan 25 2008 Grigory Batalov <bga@altlinux.ru> 1:1.31.18-alt1.1
- Rebuilt with python-2.5.

* Thu Jan 19 2006 Dmitry V. Levin <ldv@altlinux.org> 1:1.31.18-alt1
- Blindly fixed implicit declaration bugs to make this cruft work on x86_64.

* Mon Oct 21 2002 Dmitry V. Levin <ldv@altlinux.org> 1.31.18-ipl5mdk
- Merged patches from Debian:
  + Make startit() and endit() correctly generate <ul></ul>
    rather than <dl></dl>.
  + ' generates \&' rather than \' for groff -man output,
    as \' is an acute accent, not an apostrophe.
- Avoid linking with libintl.
- Rebuilt with new groff.

* Sat Sep 29 2001 Sergey Vlasov <vsu@altlinux.ru> 1.31.18-ipl4mdk
- Added patch to fix HTML footer generation.

* Sat Jul 14 2001 Sergey Budnevitch <svb@altlinux.ru> 1.31.18-ipl3mdk
- Fix bad datadir
- Automatically added BuildRequires

* Wed Jun 27 2001 Stanislav Ievlev <inger@altlinux.ru> 1.31.18-ipl2mdk
- Rebuilt with python-2.1

* Wed Jan 24 2001 Peter 'Nidd' Novodvorsky <petya@logic.ru> 1.31.18-ipl1mdk
- IPLabs Linux Team adaptations.

* Wed Jul 19 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.31.18-1mdk
- 1.32.18.
- BM.

* Tue Jun 20 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.31.17-4mdk
- Use makeinstall macros.

* Wed May 31 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.31.17-3mdk
- Clean up specs.

* Thu May 04 2000 Lenny Cartier <lenny@mandrakesoft.com> 1.31.17-2mdk
- fix group