]> sjero.net Git - linphone/blob - linphone/oRTP/ortp.spec.in
Merge branch 'master' of belledonne-communications.com:linphone-private
[linphone] / linphone / oRTP / ortp.spec.in
1 # -*- rpm-spec -*-
2
3 # ortp -- Real-time Transport Protocol Stack
4
5 # Default is optimized for Pentium IV but will execute on Pentium II &
6 # later (i686).
7
8 %ifarch %ix86
9 %define         ortp_cpu        pentium4
10 %endif
11
12 Summary:        Real-time Transport Protocol Stack
13 Name:           ortp
14 Version:        @ORTP_PKGCONFIG_VERSION@
15 Release:        1
16 License:        LGPL
17 Group:          Applications/Communications
18 URL:            http://linphone.org/ortp/
19 Source0:        %{name}-@ORTP_PKGCONFIG_VERSION@.tar.gz
20 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
21 %ifarch %ix86
22 BuildArch:      i686
23 %endif
24
25 %description
26 oRTP is a LGPL licensed C library implementing the RTP protocol
27 (rfc1889). It is available for most unix clones (primilarly Linux and
28 HP-UX), and Microsoft Windows.
29
30 %package        devel
31 Summary:        Headers, libraries and docs for the oRTP library
32 Group:          Development/Libraries
33 Requires:       %{name} = %{version}-%{release}
34
35 %description    devel
36 oRTP is a LGPL licensed C library implementing the RTP protocol
37 (rfc1889). It is available for most unix clones (primilarly Linux and
38 HP-UX), and Microsoft Windows.
39
40 This package contains header files and development libraries needed to
41 develop programs using the oRTP library.
42
43 %ifarch %ix86
44 %define ortp_arch_cflags -malign-double -march=i686 -mcpu=%{ortp_cpu}
45 %else
46 # Must be non-empty
47 %define ortp_arch_cflags -Wall
48 %endif
49 %define ortp_cflags %ortp_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing
50
51 %prep
52 %setup -q
53
54 %build
55 %configure \
56         --enable-shared \
57         --enable-static
58 %{__make} -j$RPM_BUILD_NCPUS CFLAGS="%ortp_cflags" CXXFLAGS="%ortp_cflags"
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 %makeinstall
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(-,root,root,-)
69 %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
70 %{_libdir}/*.so.*
71
72 %files devel
73 %defattr(-,root,root,-)
74 %doc doc/html
75 %{_libdir}/*.la
76 %{_libdir}/*.a
77 %{_libdir}/*.so
78 %{_libdir}/pkgconfig/*.pc
79 %{_includedir}
80
81 %changelog
82 * Tue Oct 25 2005 Francois-Xavier Kowalski <fix@hp.com>
83 - Add to oRTP distribution with "make rpm" target