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