File sfxr.spec of Package sfxr
#
# spec file for package sfxr
#
# Copyright (c) 2020 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 http://bugs.opensuse.org/
#
Name: sfxr
Version: 1.2.1
Release: 0
Summary: 8-bit sound effect generator
License: MIT
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: https://www.drpetter.se/project_sfxr.html
Source0: https://www.drpetter.se/files/%{name}-sdl-%{version}.tar.gz
Source1: sfxr.png
Patch0: fix-no-return-in-nonvoid-function.patch
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: libSDL-devel
BuildRequires: gtk3-devel
BuildRequires: desktop-file-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
sfxr’s original purpose was to provide a simple means of getting basic sound
effects into a game for those people who were working hard to get their entries
in the Ludum Dare 48-hour competition done within the 48 hours and didn't have
time to spend looking for suitable ways of doing this.
The idea was that they could just hit a few buttons in this application and get
some largely randomized effects that were custom in the sense that the user
could accept/reject each proposed sound.
It turned out to work rather well and anyone else in the same situation — need
some basic sound effects, don't really care about top quality, have no idea
where to get them — should find it pretty useful, if nothing else then just as
placeholder sounds to kill the silence until final content has been produced.
%prep
%setup -q -n %{name}-sdl-%{version}
%patch0 -p1
cp %{S:1} sfxr.png
%build
make %{?_smp_mflags} CFLAGS="${CFLAGS:-%optflags}"
%install
%make_install
%files
%defattr(-,root,root)
%doc ChangeLog readme.txt
%dir %{_datadir}/sfxr
%{_bindir}/sfxr
%{_datadir}/applications/sfxr.desktop
%{_datadir}/icons/hicolor/48x48/apps/sfxr.png
%{_datadir}/sfxr/font.tga
%{_datadir}/sfxr/ld48.tga
%{_datadir}/sfxr/sfxr.bmp
%changelog