Name:		aamath
Version:	0.3
Release:	alt1
Summary:	ASCII art mathematics
Group:		Text tools
License:	GPLv2
URL:		http://fuse.superglue.se/aamath/
# http://fuse.superglue.se/aamath/aamath-%{version}.tar.gz
# https://github.com/gchudnov/aamath/archive/refs/tags/v%{version}.tar.gz
Source0:	%name-%version.tar
Patch1:		alt-correct-expr-h.patch
Patch2:		alt-correct-expr-c.patch
Patch3:		alt-correct-Makefile.patch
Packager:	Alexander Lubyagin <dfpl@altlinux.ru>
BuildRequires:	gcc-c++ gcc-c++-common bison flex
BuildRequires:	libreadline-devel

%description
aamath is a program that reads mathematical expressions in infix notation
and renders them as ASCII art. It may be useful to send mathematics through
text-only media, such as e-mail or newsgroups.

%prep
%setup
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
make

%install
mkdir -p %buildroot%_bindir
mkdir -p %buildroot%_docdir/aamath
cp aamath %buildroot%_bindir/aamath
cp COPYING ChangeLog README testcases %buildroot%_docdir/aamath/

%files
%_bindir/*
%_docdir/*

%changelog
* Tue Jul 23 2024 Alexander Lubyagin <dfpl@altlinux.org> 0.3-alt1
- First release
