Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
openal-soft
openal-soft.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openal-soft.spec of Package openal-soft
# # spec file for package openal-soft # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %if 0%{?suse_version} > 1030 %bcond_without pulseaudio %else %if 0%{?fedora_version} > 9 %bcond_without pulseaudio %else %if 0%{?mandriva_version} >= 2009 %bcond_without pulseaudio %else %bcond_with pulseaudio %endif %endif %endif Name: openal-soft Version: 1.14 Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake >= 2.4.4 Icon: openal.xpm Source0: http://kcat.strangesoft.net/openal-releases/openal-soft-%{version}.tar.bz2 Source1: libopenalcompat.c Source3: baselibs.conf Patch0: openal-soft-1.14-x86.patch Summary: OpenAL Soft License: LGPL-2.0+ Group: System/Libraries Url: http://kcat.strangesoft.net/openal.html Conflicts: openal <= 0.0.8 Provides: openal = 0.0.9 %if 0%{?mandriva_version} >= 2006 BuildRequires: -alsa-plugins BuildRequires: libalsa-devel %else BuildRequires: alsa-devel %endif %if %{with pulseaudio} BuildRequires: pulseaudio-devel %endif %description OpenAL is an audio library designed in the spirit of OpenGL--machine independent, cross platform, and data format neutral with a clean, simple C-based API. OpenAL Soft is an alternative software implementation with a shared and a cleaned up codebase, based on the windows reference implementation. Authors: -------- Chris Robinson %package devel Summary: OpenAL Soft Group: Development/Languages/C and C++ Requires: %{name} = %{version} Requires: glibc-devel Provides: openal-devel = 0.0.9 Conflicts: openal-devel <= 0.0.8 %description devel OpenAL is an audio library designed in the spirit of OpenGL--machine independent, cross platform, and data format neutral with a clean, simple C-based API. OpenAL Soft is an alternative software implementation with a shared and a cleaned up codebase, based on the windows reference implementation. Authors: -------- Chris Robinson %package -n libopenal0-soft Summary: OpenAL Soft Group: System/Libraries Provides: libopenal0 = %version-%release %if 0%{?suse_version} > 1010 Recommends: openal-soft %endif %description -n libopenal0-soft OpenAL is an audio library designed in the spirit of OpenGL--machine independent, cross platform, and data format neutral with a clean, simple C-based API. OpenAL Soft is an alternative software implementation with a shared and a cleaned up codebase, based on the windows reference implementation. Authors: -------- Chris Robinson %package -n libopenal1-soft Summary: OpenAL Soft Group: System/Libraries Provides: libopenal1 = %version-%release %if 0%{?suse_version} > 1010 Recommends: openal-soft %endif %description -n libopenal1-soft OpenAL is an audio library designed in the spirit of OpenGL--machine independent, cross platform, and data format neutral with a clean, simple C-based API. OpenAL Soft is an alternative software implementation with a shared and a cleaned up codebase, based on the windows reference implementation. Authors: -------- Chris Robinson %prep %setup -q %patch0 -p1 %build cd build || cd CMakeConf OPTIONS= %if %{with pulseaudio} if ! pkg-config --atleast-version=0.9.15 libpulse; then echo "Warning: pulseaudio too old, disabled" OPTIONS="-DPULSEAUDIO=OFF" fi %endif cmake \ %if %{_lib} == lib64 -D LIB_SUFFIX=64 \ %endif -D CMAKE_INSTALL_PREFIX=%{_prefix} \ -D CMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \ -D ALSOFT_CONFIG=ON \ $OPTIONS \ .. make VERBOSE=1 %{?jobs:-j %jobs} # dummy library for compatibility #doesnt work #gcc -Wall $RPM_OPT_FLAGS -Wl,-soname,libopenal.so.0 -shared -Wl,-f,libopenal.so.1 -o libopenal.so.0 %SOURCE1 gcc -Wall $RPM_OPT_FLAGS -fPIC -DPIC -Wl,-soname,libopenal.so.0 -shared -Wl,--no-as-needed -L. -lopenal -o libopenal.so.0 %SOURCE1 %install cd build || cd CMakeConf make DESTDIR=$RPM_BUILD_ROOT install install -d %buildroot/etc/openal install -m644 libopenal.so.0 %buildroot%{_libdir} %post -n libopenal0-soft -p /sbin/ldconfig %postun -n libopenal0-soft -p /sbin/ldconfig %post -n libopenal1-soft -p /sbin/ldconfig %postun -n libopenal1-soft -p /sbin/ldconfig %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %doc COPYING %dir /etc/openal %config(noreplace) %attr(0644,root,root) /etc/openal/alsoft.conf %{_bindir}/openal-info %files -n libopenal1-soft %defattr(-,root,root) %{_libdir}/libopenal.so.1 %{_libdir}/libopenal.so.1.* %files -n libopenal0-soft %defattr(-,root,root) %{_libdir}/libopenal.so.0 %files devel %defattr(-,root,root) %{_bindir}/makehrtf %{_libdir}/libopenal.so %{_libdir}/pkgconfig/openal.pc %dir %{_includedir}/AL %{_includedir}/AL/al.h %{_includedir}/AL/alc.h %{_includedir}/AL/alext.h %{_includedir}/AL/efx.h %{_includedir}/AL/efx-creative.h %{_includedir}/AL/efx-presets.h %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor