SHA256
1
0
forked from pool/alure

Accepting request 159602 from home:Mailaender:branches:games

required for springlobby

OBS-URL: https://build.opensuse.org/request/show/159602
OBS-URL: https://build.opensuse.org/package/show/games/alure?expand=0&rev=1
This commit is contained in:
Dirk Stoecker 2013-03-18 16:28:15 +00:00 committed by Git OBS Bridge
commit 6c8eb97f80
7 changed files with 158 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
alure-1.2.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:465e6adae68927be3a023903764662d64404e40c4c152d160e3a8838b1d70f71
size 65210

11
alure-gcc47.patch Normal file
View File

@ -0,0 +1,11 @@
--- include/main.h.orig 2012-01-30 23:27:53.230334632 -0600
+++ include/main.h 2012-01-30 23:28:26.241530184 -0600
@@ -4,6 +4,8 @@
#include "AL/alure.h"
#include "alext.h"
+#include <unistd.h>
+
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

17
alure-lib-suffix.patch Normal file
View File

@ -0,0 +1,17 @@
--- CMakeLists.txt.orig 2012-07-15 04:16:33.395014404 +0300
+++ CMakeLists.txt 2012-07-15 04:21:37.780014550 +0300
@@ -30,6 +30,14 @@
SET(LIB_MINOR_VERSION "2")
SET(LIB_VERSION "${LIB_MAJOR_VERSION}.${LIB_MINOR_VERSION}")
+IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
+ SET(LIB_SUFFIX "")
+ SET(PACK_ARCH "")
+ELSE(CMAKE_SIZEOF_VOID_P EQUAL 4)
+ SET(LIB_SUFFIX 64)
+ SET(PACK_ARCH .x86_64)
+ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 4)
+
INCLUDE_DIRECTORIES(include "${ALURE_BINARY_DIR}")

5
alure.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sat Jul 14 22:00:59 UTC 2012 - devel.openSUSE.org@gmail.com
- Initial package creation - version 1.2
- added alure-lib-suffix.patch

98
alure.spec Normal file
View File

@ -0,0 +1,98 @@
# spec file for package alure
#
# Copyright (c) 2012 openSUSE_user1
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: alure
Version: 1.2
Release: 1
# ALURE code is LGPL-2.0+; note -devel subpackage has its own license tag
License: LGPL-2.0+
Summary: Audio Library Tools REloaded
Url: http://kcat.strangesoft.net/alure.html
Group: System/Libraries
Source0: http://kcat.strangesoft.net/%{name}-releases/%{name}-%{version}.tar.bz2
# patch for build with gcc47
Patch0: alure-gcc47.patch
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1: alure-lib-suffix.patch
BuildRequires: cmake
BuildRequires: flac-devel
BuildRequires: fluidsynth-devel
BuildRequires: gcc-c++
BuildRequires: libdumb-devel
BuildRequires: libsndfile-devel
BuildRequires: libvorbis-devel
BuildRequires: openal-soft-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
# Devel doc includes some files under GPLv2+ from NaturalDocs
License: LGPL-2.0+ and GPL-2.0+
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
#Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%patch0
%patch1
%build
#sed -i 's|SET(libdir "\\${exec_prefix}/lib${LIB_SUFFIX}")|SET(libdir $LIB_INSTALL_DIR)|' CMakeLists.txt
cmake . -DBUILD_STATIC=OFF -DMPG123=OFF -DCMAKE_INSTALL_PREFIX=%{_prefix}
#-DLIB_INSTALL_DIR=%%{_libdir}
make VERBOSE=1 %{?_smp_mflags}
%install
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
# 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
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/*.so.*
%{_bindir}/alure*
%files devel
%defattr(-,root,root,-)
%doc docs/html examples
%{_includedir}/AL/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog