Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37812320
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: openal-soft

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: openal-soft
Version: 1.7.411
Release: alt2
License: LGPL v2.0 or later

Group: System/Libraries
Icon: openal.xpm
Source0: %name-%version.tar.bz2
Source1: libopenalcompat.c
Source2: openal-soft-rpmlintrc
Summary: OpenAL Soft
Url: http://kcat.strangesoft.net/openal.html
Conflicts: openal <= 0.0.8
# TODO: check if new version truly provides classical libopenal
#Provides: openal = 0.0.9
Packager: Fr. Br. George <george at altlinux.ru>

BuildRequires: libalsa-devel
BuildRequires: cmake >= 2.4.4
Patch0: 0001-install-pkgconfig-file-to-LIB_INSTALL_DIR.diff

%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 -n libopenal1-devel
License: LGPL v2.0 or later
Summary: OpenAL Soft
Group: Development/C++
Requires: %name = %version glibc-devel
#Provides: libopenal-devel = 0.0.9
Conflicts: libopenal-devel <= 0.0.8

%description -n libopenal1-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
License: LGPL v2.0 or later
Summary: OpenAL Soft
Group: System/Libraries

%description -n libopenal0
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
License: LGPL v2.0 or later
Summary: OpenAL Soft
Group: System/Libraries
Conflicts: libopenal <= 0.0.8
#Provides: libopenal = 0.0.9

%description -n libopenal1
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 CMakeConf
cmake \
   -D LIB_INSTALL_DIR=%_lib \
   -D CMAKE_INSTALL_PREFIX=%prefix \
   -D CMAKE_C_FLAGS:STRING="$RPM_OPT_FLAGS" \
   ..
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,libopenal0.so.0 -shared -L. -lopenal -o libopenal0.so.0 %SOURCE1

%install
cd CMakeConf
make DESTDIR=%buildroot install
install -d %buildroot/etc/openal
install -m644 libopenal0.so.0 %buildroot%_libdir

%post -n libopenal0 -p /sbin/ldconfig

%postun -n libopenal0 -p /sbin/ldconfig

%post -n libopenal1 -p /sbin/ldconfig

%postun -n libopenal1 -p /sbin/ldconfig

%files
%doc alsoftrc.sample
%dir /etc/openal
%_bindir/openal-info

%files -n libopenal1
%_libdir/libopenal.so.1
%_libdir/libopenal.so.1.*

%files -n libopenal0
%_libdir/libopenal0.so.0

%files -n libopenal1-devel
%_libdir/libopenal.so
%_libdir/pkgconfig/openal.pc
%dir %_includedir/AL
%_includedir/AL/al.h
%_includedir/AL/alc.h
%_includedir/AL/alext.h

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin