]> sjero.net Git - linphone/blob - linphone/mediastreamer2/mediastreamer2.spec.in
ff1e4492e5004e1ffc927b4b9b09f0ff77f964fb
[linphone] / linphone / mediastreamer2 / mediastreamer2.spec.in
1 # -*- rpm-spec -*-
2
3 # mediastreamer2 -- A mediastreaming library for telephony applications
4
5
6 %ifarch %ix86
7 %define         mediastreamer2_cpu      pentium4
8 %endif
9
10 Summary:        Audio/Video real-time streaming
11 Name:           mediastreamer2
12 Version:        @MEDIASTREAMER2_PKGCONFIG_VERSION@
13 Release:        1
14 License:        LGPL
15 Group:          Applications/Communications
16 URL:            http://linphone.org/mediastreamer2/
17 Source0:        %{name}-@MEDIASTREAMER2_PKGCONFIG_VERSION@.tar.gz
18 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
19 %ifarch %ix86
20 BuildArch:      i686
21 %endif
22
23 %description
24 Mediastreamer2 is a GPL licensed library to make audio and video
25 real-time streaming and processing. Written in pure C, it is based
26 upon the oRTP library.
27
28 %package        devel
29 Summary:        Headers, libraries and docs for the mediastreamer2 library
30 Group:          Development/Libraries
31 Requires:       %{name} = %{version}-%{release}
32
33 %description    devel
34 Mediastreamer2 is a GPL licensed library to make audio and video
35 real-time streaming and processing. Written in pure C, it is based
36 upon the ortp library.
37
38 This package contains header files and development libraries needed to
39 develop programs using the mediastreamer2 library.
40
41 %ifarch %ix86
42 %define mediastreamer2_arch_cflags -malign-double -march=i686 -mcpu=%{mediastreamer2_cpu}
43 %else
44 # Must be non-empty
45 %define mediastreamer2_arch_cflags -Wall
46 %endif
47 %define mediastreamer2_cflags %mediastreamer2_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing
48
49 %prep
50 %setup -q
51
52 %build
53 %configure \
54 --enable-gtk-doc=no \
55 --enable-shared --enable-static
56 make -j$RPM_BUILD_NCPUS CFLAGS="%mediastreamer2_cflags" CXXFLAGS="%mediastreamer2_cflags"
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 %makeinstall
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
66 %defattr(-,root,root,-)
67 %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
68 %{_libdir}/*.so.*
69
70 %files devel
71 %defattr(-,root,root,-)
72 %doc docs/html
73 %{_libdir}/*.la
74 %{_libdir}/*.a
75 %{_libdir}/*.so
76 %{_libdir}/pkgconfig/*.pc
77 %{_includedir}
78
79 %changelog
80 * Tue Oct 25 2005 Francois-Xavier Kowalski <fix@hp.com>
81 - Add to mediastreamer2 distribution with "make rpm" target