source: projects/specs/trunk/o/openal/openal-vl.spec @ 521

Revision 521, 2.0 KB checked in by daisuke, 14 years ago (diff)

import VineSeed package specs

Line 
1Name:           openal
2Summary:        Open Audio Library
3Summary(ja):    オープンオーディオライブラリ
4Version:        0.0.8
5Release:        1%{?_dist_release}
6Epoch:          1
7Source:         openal-%{version}.tar.gz
8
9License:        LGPL
10URL:            http://www.openal.org
11Group:          System Environment/Libraries
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14BuildRequires: alsa-lib-devel, esound-devel, arts-devel, SDL-devel, libvorbis-devel
15BuildRequires: automake, autoconf
16Obsoletes: libopenal0, libopenal0-devel
17
18%description
19OpenAL is a free 3D-audio library, with a programming interface similar
20to that of OpenGL.
21
22%package devel
23Summary: Headers for developing programs that will use OpenAL
24Group: Development/Libraries
25Requires: %{name} = %{epoch}:%{version}
26
27%description devel
28This package contains the headers that programmers will need to develop
29applications 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
39rm -rf $RPM_BUILD_ROOT
40make DESTDIR=$RPM_BUILD_ROOT install
41mkdir -p $RPM_BUILD_ROOT%{_infodir}
42
43install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}
44cat > $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")
49EOF
50
51sed -i 's/^Requires:.*//g' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/openal.pc
52
53# remove uninstalled files
54rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
55
56%clean
57rm -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
Note: See TracBrowser for help on using the repository browser.