File dr_libs.spec of Package dr_libs

#
# spec file for package dr_libs
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#


%global dr_flac_version 0.12.41
%global dr_mp3_version 0.6.37
%global dr_wav_version 0.13.12
Name:           dr_libs
Version:        0
Release:        0
Summary:        Single-file audio decoding libraries for C/C++
License:        MIT-0
URL:            https://github.com/mackron/dr_libs
Source0:        %{name}-%{version}.tar.xz
BuildArch:      noarch

%description
Single-file audio decoding libraries for C/C++.

%package devel
Summary:        Development files for dr_libs
BuildArch:      noarch
Requires:       dr_flac-devel = %{dr_flac_version}
Requires:       dr_libs
Requires:       dr_mp3-devel = %{dr_mp3_version}
Requires:       dr_wav-devel = %{dr_wav_version}

%description devel
The dr_libs-devel package contains libraries and header files for developing
applications that use dr_libs.

This is a metapackage that requires the -devel packages for all dr_libs
libraries.

%package -n dr_flac-devel
Summary:        FLAC audio decoder
Version:        %{dr_flac_version}
BuildArch:      noarch

%description -n dr_flac-devel
FLAC audio decoder.

%package -n dr_mp3-devel
Summary:        MP3 audio decoder
Version:        %{dr_mp3_version}
BuildArch:      noarch

%description -n dr_mp3-devel
MP3 audio decoder. Based off minimp3 (https://github.com/lieff/minimp3).

%package -n dr_wav-devel
Summary:        WAV audio loader and writer
Version:        %{dr_wav_version}
BuildArch:      noarch

%description -n dr_wav-devel
WAV audio loader and writer.

%prep
%autosetup 

%build
%install
install -t '%{buildroot}%{_includedir}' -p -m 0644 -D dr_*.h

%files
%license LICENSE
%doc README.md

%files -n dr_flac-devel
%license LICENSE
%{_includedir}/dr_flac.h

%files -n dr_mp3-devel
%license LICENSE
%{_includedir}/dr_mp3.h

%files -n dr_wav-devel
%license LICENSE
%{_includedir}/dr_wav.h

%changelog
openSUSE Build Service is sponsored by