]>
Commit | Line | Data |
---|---|---|
ac8de864 ER |
1 | # NOTE: |
2 | # f.d.o source is meant to be a more Linux packaging friendly copy of the | |
3 | # AudioProcessing module from the WebRTC[1] project. The ideal case is that we | |
4 | # make no changes to the code to make tracking upstream code easy. | |
5 | # [1] http://code.google.com/p/webrtc/ | |
6 | Summary: WebRTC Audio Processing library | |
7 | Name: webrtc-audio-processing | |
8 | Version: 0.1 | |
9 | Release: 1 | |
10 | License: BSD | |
11 | Group: Libraries | |
12 | URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/ | |
13 | Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: da25bb27812c8404060d4cc0dc712f04 | |
15 | Patch0: link.patch | |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
18 | BuildRequires: libstdc++-devel | |
19 | BuildRequires: libtool | |
20 | BuildRequires: xz | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | WebRTC is an open source project that enables web browsers with | |
25 | Real-Time Communications (RTC) capabilities via simple Javascript | |
26 | APIs. The WebRTC components have been optimized to best serve this | |
27 | purpose. WebRTC implements the W3C's proposal for video conferencing | |
28 | on the web. | |
29 | ||
30 | %package devel | |
31 | Summary: WebRTC Audio Processing library and header files | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | ||
35 | %description devel | |
36 | This contains the libraries and header files needed to develop | |
37 | programs which make use of webrtc-audio-processing. | |
38 | ||
39 | %prep | |
40 | %setup -q | |
41 | %patch0 -p1 | |
42 | ||
43 | %build | |
44 | %{__libtoolize} | |
45 | %{__aclocal} | |
46 | %{__autoconf} | |
47 | %{__automake} | |
48 | %configure \ | |
49 | --disable-silent-rules \ | |
50 | --disable-static | |
51 | %{__make} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
68 | %doc AUTHORS COPYING NEWS PATENTS README | |
69 | %attr(755,root,root) %{_libdir}/libwebrtc_audio_processing.so.*.*.* | |
70 | %{_libdir}/libwebrtc_audio_processing.so.0 | |
71 | ||
72 | %files devel | |
73 | %defattr(644,root,root,755) | |
74 | %{_includedir}/webrtc_audio_processing | |
75 | %{_libdir}/libwebrtc_audio_processing.so | |
76 | %{_pkgconfigdir}/webrtc-audio-processing.pc |