File bwbasic.spec of Package bwbasic

# spec file for package bwbasic
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           bwbasic
Version:        3.20
Release:        0
Summary:        A Basic interpreter
License:        GPL-2.0-or-later
Group:          Development/Languages/Other
Source1:        %{name}.desktop
Source2:        %{name}.png
# PATCH-FIX-UPSTREAM - bwbasic-3.20-optflags.patch
Patch2:         bwbasic-3.20-optflags.patch
# PATCH-FIX-UPSTREAM - bwbasic-3.20-docu.patch
Patch7:         bwbasic-3.20-docu.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  dos2unix
BuildRequires:  unzip

The Bywater BASIC Interpreter (bwBASIC) implements a large superset of the ANSI
Standard for Minimal BASIC (X3.60-1978) and a significant subset of the ANSI
Standard for Full BASIC (X3.113-1987) in C.

It also offers shell programming facilities as an extension of BASIC. bwBASIC
seeks to be as portable as possible.

%setup -q -T -c %{name} -a0
%patch2 -p1
%patch7 -p1
chmod +x configure
dos2unix README bwbasic.doc COPYING

cp -a %{_datadir}/automake*/install-sh .
autoreconf -fiv
make %{?_smp_mflags} CFLAGS="%{optflags}"

install -Dm755 bwbasic %{buildroot}%{_bindir}/bwbasic
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png

%license COPYING
%doc README* bwbasic.doc

openSUSE Build Service is sponsored by