forked from pool/alure
Accepting request 886359 from home:susnux:branches:games
- Updated SPEC file * Use working upstream URL * Use cmake macro, now builds with optflags * Some general cleanup OBS-URL: https://build.opensuse.org/request/show/886359 OBS-URL: https://build.opensuse.org/package/show/games/alure?expand=0&rev=7
This commit is contained in:
parent
f5e5a1a716
commit
be3d1e77b7
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 17 18:14:57 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||||
|
|
||||||
|
- Updated SPEC file
|
||||||
|
* Use working upstream URL
|
||||||
|
* Use cmake macro, now builds with optflags
|
||||||
|
* Some general cleanup
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 29 07:19:44 UTC 2019 - mvetter@suse.com
|
Thu Aug 29 07:19:44 UTC 2019 - mvetter@suse.com
|
||||||
|
|
||||||
|
30
alure.spec
30
alure.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package alure
|
# spec file for package alure
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2021 SUSE LLC
|
||||||
# Copyright (c) 2012 openSUSE_user1
|
# Copyright (c) 2012 openSUSE_user1
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@ -13,7 +13,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -24,11 +24,11 @@ Summary: Audio Library Tools REloaded
|
|||||||
# ALURE code is LGPL-2.0+; note -devel subpackage has its own license tag
|
# ALURE code is LGPL-2.0+; note -devel subpackage has its own license tag
|
||||||
License: LGPL-2.0-or-later
|
License: LGPL-2.0-or-later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
URL: http://kcat.strangesoft.net/alure.html
|
URL: https://github.com/kcat/alure
|
||||||
Source0: http://kcat.strangesoft.net/%{name}-releases/%{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
# patch for build with gcc47
|
# PATCh-FIX-UPSTREAM alure-gcc47.patch -- patch for build with gcc47
|
||||||
Patch0: alure-gcc47.patch
|
Patch0: alure-gcc47.patch
|
||||||
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
# PATCH-FIX-UPSTREAM alure-lib-suffix.patch -- Enable installation in suffixed directory
|
||||||
Patch1: alure-lib-suffix.patch
|
Patch1: alure-lib-suffix.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: flac-devel
|
BuildRequires: flac-devel
|
||||||
@ -66,22 +66,22 @@ ALURE is a utility library to help manage common tasks with OpenAL
|
|||||||
applications.
|
applications.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p0
|
||||||
%patch0
|
|
||||||
%patch1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#sed -i 's|SET(libdir "\\${exec_prefix}/lib${LIB_SUFFIX}")|SET(libdir $LIB_INSTALL_DIR)|' CMakeLists.txt
|
%cmake \
|
||||||
cmake . -DBUILD_STATIC=OFF -DMPG123=OFF -DMODPLUG=ON -DCMAKE_INSTALL_PREFIX=%{_prefix}
|
-DBUILD_STATIC=OFF \
|
||||||
#-DLIB_INSTALL_DIR=%%{_libdir}
|
-DMPG123=OFF \
|
||||||
make VERBOSE=1 %{?_smp_mflags}
|
-DMODPLUG=ON
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%cmake_install
|
||||||
|
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
# remove installed html doc
|
# remove installed html doc
|
||||||
rm -rf %{buildroot}%{_datadir}/doc/%{name}/html
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}/html
|
||||||
|
|
||||||
# fix encoding
|
# fix encoding
|
||||||
sed -i 's/\r$//' docs/html/javascript/main.js docs/html/styles/1.css
|
sed -i 's/\r$//' docs/html/javascript/main.js docs/html/styles/1.css
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user