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

Revision 1912, 2.3 KB checked in by inagaki, 14 years ago (diff)

updated: OpenEXR, openal, exiv2, flac, namazu

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