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

Revision 1941, 2.6 KB checked in by owa, 12 years ago (diff)

add openal-0.0.8-mmx_off.patch

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