File faun.spec of Package faun
#
# spec file for package faun
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%define sover 0
Name: faun
Version: 0.2.3
Release: 0
Summary: A high-level C audio library
License: MIT
Group: Development/Libraries/C and C++
URL: https://codeberg.org/wickedsmoke/faun
Source: https://codeberg.org/wickedsmoke/faun/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(flac)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(vorbis)
%description
Faun is a high-level C API for playback of sound & music in games & demos.
It is a modestly sized library designed to use pre-packaged audio and is
not intended for synthesizer or audio manipulation applications.
The shared library is about half the size the SDL 2 & Allegro 5 mixer libraries.
%package -n libfaun%{sover}
Summary: A high-level C audio library
%description -n libfaun%{sover}
Faun is a high-level C API for playback of sound & music in games & demos.
It is a modestly sized library designed to use pre-packaged audio and is
not intended for synthesizer or audio manipulation applications.
The shared library is about half the size the SDL 2 & Allegro 5 mixer libraries.
This package contains the shared library.
%package devel
Summary: Faun Library Development Package
Group: Development/Libraries/C and C++
Requires: libfaun%{sover} = %{version}
%description devel
This package contains the files needed to compile programs that use
the faun library.
%prep
%autosetup -n %{name}
%build
# non autotools style ./configure
./configure --prefix %{_prefix}
%make_build
%install
make install DESTDIR=%{buildroot}%{_prefix}
%ldconfig_scriptlets -n libfaun%{sover}
%files -n libfaun%{sover}
%license LICENSE
%doc README.md
%{_libdir}/libfaun.so.%{sover}*
%files devel
%{_includedir}/faun.h
%{_libdir}/libfaun.so
%changelog