[521] | 1 | Name: openal |
---|
| 2 | Summary: Open Audio Library |
---|
| 3 | Summary(ja): オープンオーディオライブラリ |
---|
| 4 | Version: 0.0.8 |
---|
[1941] | 5 | Release: 3%{?_dist_release} |
---|
[521] | 6 | Epoch: 1 |
---|
| 7 | Source: openal-%{version}.tar.gz |
---|
[1941] | 8 | Patch0: openal-0.0.8-mmx_off.patch |
---|
[521] | 9 | |
---|
[1912] | 10 | Group: System Environment/Libraries |
---|
[521] | 11 | License: LGPL |
---|
| 12 | URL: http://www.openal.org |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[1912] | 15 | BuildRequires: alsa-lib-devel |
---|
| 16 | BuildRequires: arts-devel |
---|
| 17 | BuildRequires: esound-devel |
---|
| 18 | BuildRequires: libvorbis-devel |
---|
| 19 | BuildRequires: SDL-devel |
---|
| 20 | #BuildRequires: automake, autoconf |
---|
[521] | 21 | Obsoletes: libopenal0, libopenal0-devel |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | OpenAL is a free 3D-audio library, with a programming interface similar |
---|
| 25 | to that of OpenGL. |
---|
| 26 | |
---|
| 27 | %package devel |
---|
| 28 | Summary: Headers for developing programs that will use OpenAL |
---|
| 29 | Group: Development/Libraries |
---|
| 30 | Requires: %{name} = %{epoch}:%{version} |
---|
| 31 | |
---|
| 32 | %description devel |
---|
| 33 | This package contains the headers that programmers will need to develop |
---|
| 34 | applications which will use OpenAL, a free 3D audio library. |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q |
---|
| 38 | |
---|
[1941] | 39 | ## adhoc patch for disable MMX with gcc4 |
---|
| 40 | %ifarch x86_64 |
---|
| 41 | %patch0 -b1 -b .mmx_off |
---|
| 42 | %endif |
---|
| 43 | |
---|
[521] | 44 | %build |
---|
[1912] | 45 | %configure --disable-static |
---|
[521] | 46 | %__make %{?_smp_mflags} |
---|
| 47 | |
---|
[1941] | 48 | |
---|
[521] | 49 | %install |
---|
| 50 | rm -rf $RPM_BUILD_ROOT |
---|
| 51 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 52 | mkdir -p $RPM_BUILD_ROOT%{_infodir} |
---|
| 53 | |
---|
| 54 | install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir} |
---|
| 55 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/openalrc <<EOF |
---|
| 56 | (define devices '(alsa native)) |
---|
| 57 | |
---|
| 58 | ;; uncomment this to output via the 2nd soundcard |
---|
| 59 | ;;(define alsa-device "plughw:2,0") |
---|
| 60 | EOF |
---|
| 61 | |
---|
| 62 | sed -i 's/^Requires:.*//g' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/openal.pc |
---|
| 63 | |
---|
| 64 | # remove uninstalled files |
---|
| 65 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 66 | |
---|
| 67 | %clean |
---|
| 68 | rm -rf $RPM_BUILD_ROOT |
---|
| 69 | |
---|
| 70 | %post -p /sbin/ldconfig |
---|
| 71 | |
---|
| 72 | %postun -p /sbin/ldconfig |
---|
| 73 | |
---|
| 74 | %files |
---|
| 75 | %defattr(-,root,root,0755) |
---|
| 76 | %{_sysconfdir}/openalrc |
---|
| 77 | %{_libdir}/*.so.* |
---|
| 78 | |
---|
| 79 | %files devel |
---|
| 80 | %defattr(-,root,root,0755) |
---|
| 81 | %{_bindir}/openal-config |
---|
| 82 | %{_includedir}/AL/*.h |
---|
| 83 | %{_libdir}/*.so |
---|
[1912] | 84 | #{_libdir}/*.a |
---|
[521] | 85 | %{_libdir}/pkgconfig/openal.pc |
---|
| 86 | |
---|
| 87 | %changelog |
---|
[1941] | 88 | * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 1:0.0.8-3 |
---|
| 89 | - added openal-0.0.8-mmx_off.patch (on x86_64) |
---|
| 90 | (see http://lists.debian.org/debian-devel-games/2007/10/msg00031.html) |
---|
| 91 | |
---|
[1912] | 92 | * Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.0.8-2 |
---|
| 93 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 94 | - removed static libraries from devel package |
---|
| 95 | |
---|
[521] | 96 | * Mon Sep 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1:0.0.8-1vl5 |
---|
| 97 | - applied new versioning policy |
---|
| 98 | - spec in UTF-8 |
---|
| 99 | |
---|
| 100 | * Sat Jul 07 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1:0.0.8-0vl1 |
---|
| 101 | - new upstream release |
---|
| 102 | - add epoch to use upstream version numbering |
---|
| 103 | |
---|
| 104 | * Sat Oct 22 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.20051022-0vl1 |
---|
| 105 | - initial build for Vine Linux |
---|