2017-05-04 17:36:42 +02:00
|
|
|
#
|
2013-03-18 17:28:15 +01:00
|
|
|
# spec file for package alure
|
|
|
|
#
|
2021-04-22 17:36:20 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2013-03-18 17:28:15 +01:00
|
|
|
# Copyright (c) 2012 openSUSE_user1
|
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
|
|
|
|
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++
|
2021-04-22 17:36:20 +02:00
|
|
|
URL: https://github.com/kcat/alure
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
# PATCh-FIX-UPSTREAM alure-gcc47.patch -- patch for build with gcc47
|
2013-03-18 17:28:15 +01:00
|
|
|
Patch0: alure-gcc47.patch
|
2021-04-22 17:36:20 +02:00
|
|
|
# PATCH-FIX-UPSTREAM alure-lib-suffix.patch -- Enable installation in suffixed directory
|
2013-03-18 17:28:15 +01:00
|
|
|
Patch1: alure-lib-suffix.patch
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: flac-devel
|
|
|
|
BuildRequires: fluidsynth-devel
|
|
|
|
BuildRequires: gcc-c++
|
2017-05-04 17:36:42 +02:00
|
|
|
BuildRequires: libmodplug-devel
|
2013-03-18 17:28:15 +01:00
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
|
|
|
BuildRequires: openal-soft-devel
|
2019-08-29 09:21:20 +02:00
|
|
|
BuildRequires: pkgconfig
|
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.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2017-06-08 00:24:29 +02:00
|
|
|
# Devel doc includes some files under GPLv2+ from NaturalDocs
|
2019-08-29 09:21:20 +02:00
|
|
|
License: LGPL-2.0-or-later AND GPL-2.0-or-later
|
2013-03-18 17:28:15 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2017-06-08 00:24:29 +02:00
|
|
|
%package -n libalure1
|
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
|
|
|
|
|
|
|
|
%description -n libalure1
|
|
|
|
ALURE is a utility library to help manage common tasks with OpenAL
|
|
|
|
applications.
|
|
|
|
|
2013-03-18 17:28:15 +01:00
|
|
|
%prep
|
2021-04-22 17:36:20 +02:00
|
|
|
%autosetup -p0
|
2013-03-18 17:28:15 +01:00
|
|
|
|
|
|
|
%build
|
2021-04-22 17:36:20 +02:00
|
|
|
%cmake \
|
|
|
|
-DBUILD_STATIC=OFF \
|
|
|
|
-DMPG123=OFF \
|
|
|
|
-DMODPLUG=ON
|
|
|
|
%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
|
|
|
|
|
2017-06-08 00:24:29 +02:00
|
|
|
%post -n libalure1 -p /sbin/ldconfig
|
|
|
|
%postun -n libalure1 -p /sbin/ldconfig
|
2013-03-18 17:28:15 +01:00
|
|
|
|
|
|
|
%files
|
2019-08-29 09:21:20 +02:00
|
|
|
%license COPYING
|
2013-03-18 17:28:15 +01:00
|
|
|
%{_bindir}/alure*
|
|
|
|
|
2017-06-08 00:24:29 +02:00
|
|
|
%files -n libalure1
|
|
|
|
%{_libdir}/libalure.so.*
|
|
|
|
|
2013-03-18 17:28:15 +01:00
|
|
|
%files devel
|
|
|
|
%doc docs/html examples
|
|
|
|
%{_includedir}/AL/
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|