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