2017-05-04 17:36:42 +02:00
|
|
|
#
|
2013-03-18 17:28:15 +01:00
|
|
|
# spec file for package alure
|
|
|
|
#
|
2024-02-15 19:11:06 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-05-04 17:36:42 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2013-03-18 17:28:15 +01:00
|
|
|
|
2021-04-22 17:36:20 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-03-18 17:28:15 +01:00
|
|
|
#
|
|
|
|
|
2017-05-04 17:36:42 +02:00
|
|
|
|
2022-02-18 16:55:57 +01:00
|
|
|
%define sover 1
|
|
|
|
|
2013-03-18 17:28:15 +01:00
|
|
|
Name: alure
|
|
|
|
Version: 1.2
|
2017-05-04 17:36:42 +02:00
|
|
|
Release: 0
|
2013-03-18 17:28:15 +01:00
|
|
|
Summary: Audio Library Tools REloaded
|
2017-06-08 00:24:29 +02:00
|
|
|
# ALURE code is LGPL-2.0+; note -devel subpackage has its own license tag
|
2019-08-29 09:21:20 +02:00
|
|
|
License: LGPL-2.0-or-later
|
2017-07-01 13:43:09 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-09-12 09:55:26 +02:00
|
|
|
URL: https://kcat.tomasu.net/alure.html
|
|
|
|
Source0: https://kcat.tomasu.net/alure-releases/%{name}-%{version}.tar.bz2
|
2022-02-18 16:55:57 +01:00
|
|
|
Patch0: fix-cmake_minimum_required.patch
|
|
|
|
Patch1: fix-missing-include.patch
|
|
|
|
Patch2: fix-lib-suffix.patch
|
|
|
|
Patch3: fix-link-flac.patch
|
|
|
|
Patch4: fix-FLUIDSYNTH_CFLAGS.patch
|
2022-09-12 09:55:26 +02:00
|
|
|
Patch5: fix-dumb2.patch
|
2024-02-15 19:11:06 +01:00
|
|
|
Patch6: alure-cmake-3.28.patch
|
2013-03-18 17:28:15 +01:00
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
2022-02-18 16:55:57 +01:00
|
|
|
BuildRequires: ninja
|
2019-08-29 09:21:20 +02:00
|
|
|
BuildRequires: pkgconfig
|
2022-02-18 16:55:57 +01:00
|
|
|
BuildRequires: pkgconfig(dumb)
|
|
|
|
BuildRequires: pkgconfig(flac)
|
|
|
|
BuildRequires: pkgconfig(fluidsynth)
|
|
|
|
BuildRequires: pkgconfig(libmodplug)
|
|
|
|
BuildRequires: pkgconfig(libmpg123)
|
|
|
|
BuildRequires: pkgconfig(openal)
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: pkgconfig(vorbis)
|
2013-03-18 17:28:15 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
ALURE is a utility library to help manage common tasks with OpenAL
|
|
|
|
applications. This includes device enumeration and initialization,
|
|
|
|
file loading, and streaming.
|
|
|
|
|
2022-02-18 16:55:57 +01:00
|
|
|
%package -n lib%{name}%{sover}
|
2017-07-01 13:43:09 +02:00
|
|
|
Summary: Utility library around OpenAL
|
2019-08-29 09:21:20 +02:00
|
|
|
License: LGPL-2.0-or-later
|
2017-06-08 00:24:29 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2022-02-18 16:55:57 +01:00
|
|
|
%description -n lib%{name}%{sover}
|
2017-06-08 00:24:29 +02:00
|
|
|
ALURE is a utility library to help manage common tasks with OpenAL
|
|
|
|
applications.
|
|
|
|
|
2022-02-18 16:55:57 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
# Devel doc includes some files under GPLv2+ from NaturalDocs
|
|
|
|
License: GPL-2.0-or-later AND LGPL-2.0-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: lib%{name}%{sover} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2013-03-18 17:28:15 +01:00
|
|
|
%prep
|
2022-02-18 16:55:57 +01:00
|
|
|
%autosetup -p1
|
2013-03-18 17:28:15 +01:00
|
|
|
|
|
|
|
%build
|
2022-02-18 16:55:57 +01:00
|
|
|
%define __builder ninja
|
2021-04-22 17:36:20 +02:00
|
|
|
%cmake \
|
2022-02-18 16:55:57 +01:00
|
|
|
-DBUILD_STATIC=OFF \
|
|
|
|
-DDYNLOAD=OFF \
|
|
|
|
-DMPG123=ON \
|
|
|
|
-DMODPLUG=ON
|
2021-04-22 17:36:20 +02:00
|
|
|
%cmake_build
|
2013-03-18 17:28:15 +01:00
|
|
|
|
|
|
|
%install
|
2021-04-22 17:36:20 +02:00
|
|
|
%cmake_install
|
|
|
|
|
2019-08-29 09:21:20 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2021-04-22 17:36:20 +02:00
|
|
|
|
2013-03-18 17:28:15 +01:00
|
|
|
# remove installed html doc
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}/html
|
|
|
|
# fix encoding
|
|
|
|
sed -i 's/\r$//' docs/html/javascript/main.js docs/html/styles/1.css
|
|
|
|
|
2022-02-18 16:55:57 +01:00
|
|
|
%post -n lib%{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
|
2013-03-18 17:28:15 +01:00
|
|
|
|
|
|
|
%files
|
2019-08-29 09:21:20 +02:00
|
|
|
%license COPYING
|
2022-02-18 16:55:57 +01:00
|
|
|
%{_bindir}/alure{cdplay,play,stream}
|
2013-03-18 17:28:15 +01:00
|
|
|
|
2022-02-18 16:55:57 +01:00
|
|
|
%files -n lib%{name}%{sover}
|
|
|
|
%{_libdir}/lib%{name}.so.*
|
2017-06-08 00:24:29 +02:00
|
|
|
|
2013-03-18 17:28:15 +01:00
|
|
|
%files devel
|
|
|
|
%doc docs/html examples
|
2022-02-18 16:55:57 +01:00
|
|
|
%{_includedir}/AL
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2013-03-18 17:28:15 +01:00
|
|
|
|
|
|
|
%changelog
|