File saugns.spec of Package saugns
# spec file for package saugns
#
# Copyright (c) 2023 Fabio Pesari
#
# 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 http://bugs.opensuse.org/
Name: saugns
Version: 0.4.2c
Release: 0
Summary: Scriptable AUdio GeNeration System
License: LGPL-3.0-or-later
Group: Productivity/Multimedia/Sound/Utilities
URL: https://sau.frama.io/
Source0: %{name}-v%{version}.tar.gz
BuildRequires: gcc gcc-c++
BuildRequires: alsa-devel
%description
saugns is the Scriptable AUdio GeNeration System, the implementation of the SAU
language (Scriptable AUdio). The project website has more on them.
SAU is a simple language for mathematical audio synthesis, without support for
using pre-recorded samples. See the README.SAU for the current details, or a
more how-to language web page covering the main features. Example scripts under
examples/ also use most of the features.
While the language is still primitive relative to the goal (a useful language
for writing electronic music), it makes it simple to experiment with sounds. A
collection of basic wave types are supported, as well as AM/RM, FM, and PM (the
"FM" of most commercial synthesizers). An arbitrary number of oscillators can
be used.
The program reads SAU (Scriptable AUdio) files or strings, and can output to
system audio, a 16-bit PCM WAV file, and/or stdout (raw or AU, for interfacing
with other programs). Basic usage information is provided with the -h option.
More can be found in the man page and on the usage web page.
%prep
%setup -q -n saugns
sed -i s:/usr/local:/usr: Makefile
%build
%make_build
%install
%make_install
rm -rf %{buildroot}%{_datadir}/doc
%files
%doc README.md sau/doc/README.SAU
%license COPYING
%{_bindir}/*
%{_datadir}/saugns
%{_mandir}/man1/*
%changelog