Name: bwbasic Version: 3.20g Release: 1%{?dist} Summary: Bywater BASIC Interpreter # All files GPL-2.0-only except unixio.h which is public domain License: GPL-2.0-only AND LicenseRef-Fedora-Public-Domain URL: https://yeolpishack.net/repos/ChipMaster/bwBASIC Source0: %{url}/archive/v%{version}.tar.gz BuildRequires: desktop-file-utils BuildRequires: dos2unix BuildRequires: gcc BuildRequires: make %description The Bywater BASIC Interpreter (bwBASIC) implements a large superset of the ANSI Standard for Minimal BASIC (X3.60-1978), a significant subset of the ANSI Standard for Full BASIC (X3.113-1987), and many classic BASIC dialects in C. bwBASIC seeks to be as portable as possible. %package doc Summary: Documentation and examples for bwBASIC Requires: %{name}%{?_isa} = %{version}-%{release} BuildArch: noarch %description doc Documentation and code examples for use with the Bywater BASIC Interpreter. %prep %autosetup -n %{name} # Use Fedora build flags sed -i 's|^CFLAGS=-s -ansi|^CFLAGS=%{build_cflags} -pie -fpie|g' Makefile dos2unix DOCS/*.txt dos2unix README dos2unix BAS-EXAMPLES/*.bas %build %make_build %install mkdir -p %{buildroot}/%{_bindir} install bwbasic %{buildroot}/%{_bindir} install renum %{buildroot}/%{_bindir} install GUI/bwbasic.sh %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_docdir}/bwbasic cp -p -r BAS-EXAMPLES %{buildroot}/%{_docdir}/bwbasic cp -p -r DOCS %{buildroot}/%{_docdir}/bwbasic mkdir -p %{buildroot}/%{_datadir}/pixmaps cp -p GUI/bwbasic.png %{buildroot}/%{_datadir}/pixmaps/ mkdir -p %{buildroot}/%{_datadir}/applications desktop-file-install --dir=%{buildroot}/%{_datadir}/applications GUI/bwbasic.desktop %files %license COPYING %doc README %{_bindir}/bwbasic %{_bindir}/renum %{_bindir}/bwbasic.sh %{_datadir}/pixmaps/bwbasic.png %{_datadir}/applications/bwbasic.desktop %files doc %dir %{_docdir}/bwbasic %dir %{_docdir}/bwbasic/BAS-EXAMPLES %{_docdir}/bwbasic/BAS-EXAMPLES/*.bas %{_docdir}/bwbasic/BAS-EXAMPLES/*.inp %{_docdir}/bwbasic/BAS-EXAMPLES/*.pro %dir %{_docdir}/bwbasic/DOCS %{_docdir}/bwbasic/DOCS/*.txt %{_docdir}/bwbasic/DOCS/*.HTM %changelog * Sun Mar 24 2024 Benson Muite - 3.20g-1 - Initial packaging