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 https://bugs.opensuse.org/
#


Name:           bwbasic
Version:        3.20
Release:        0
Summary:        A Basic interpreter
License:        GPL-2.0-or-later
URL:            https://sourceforge.net/projects/bwbasic/
Group:          Development/Languages/Other
Source0:        https://sourceforge.net/projects/bwbasic/files/bwbasic/version%20%{version}/%{name}-%{version}.zip
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

%description
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.

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

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

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

%files
%license COPYING
%doc README* bwbasic.doc
%{_bindir}/bwbasic
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
openSUSE Build Service is sponsored by