]> sjero.net Git - linphone/blob - linphone.spec.in
purge out p2pproxy
[linphone] / linphone.spec.in
1 # -*- rpm-spec -*-
2
3 ## rpmbuild options
4
5 # default is to build with video support & without truespeech support
6 %define         video           %{?_without_video:0}%{!?_without_video:1}
7 %define         truespeech      %{?_with_truespeech:1}%{!?_with_truespeech:0}
8
9 # Linphone requires an old osip version, sometimes (e.g. fc6)
10 # delivered as "compat-"
11 %define _without_old_osip       0
12
13 Name:           linphone
14 Version:        @VERSION@
15 Release:        1%{?dist}
16 Summary:        Phone anywhere in the whole world by using the Internet
17
18 Group:          Applications/Communications
19 License:        GPL
20 URL:            http://www.linphone.org
21 Source0:        http://download.savannah.gnu.org/releases/linphone/stable/source/%{name}-%{version}.tar.gz
22 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
23 %ifarch %{ix86}
24 BuildArch:      i686
25 %endif
26
27 BuildRequires:  gnome-panel-devel libgnomeui-devel glib2-devel alsa-lib-devel
28 BuildRequires:  libosip2-devel speex-devel gettext desktop-file-utils
29 BuildRequires:  readline-devel ncurses-devel
30 BuildRequires:  intltool gettext-devel
31 %if %{video}
32 BuildRequires:  ffmpeg-devel SDL-devel
33 %endif
34
35 %description
36 Linphone is mostly sip compliant. It works successfully with these
37 implementations:
38     * eStara softphone (commercial software for windows)
39     * Pingtel phones (with DNS enabled and VLAN QOS support disabled).
40     * Hotsip, a free of charge phone for Windows.
41     * Vocal, an open source SIP stack from Vovida that includes a SIP proxy
42         that works with linphone since version 0.7.1.
43     * Siproxd is a free sip proxy being developped by Thomas Ries because he
44         would like to have linphone working behind his firewall. Siproxd is
45         simple to setup and works perfectly with linphone.
46     * Partysip aims at being a generic and fully functionnal SIP proxy. Visit
47         the web page for more details on its functionalities.
48
49 Linphone may work also with other sip phones, but this has not been tested yet.
50
51 %package devel
52 Summary:        Development libraries for linphone
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55 Requires:       ortp-devel = @ORTP_VERSION@
56 Requires:       glib2-devel
57
58 %description    devel
59 Libraries and headers required to develop software with linphone.
60
61 %package -n ortp
62 Summary:        A C library implementing the RTP protocol (rfc1889)
63 Group:          System Environment/Libraries
64 Version:        @ORTP_VERSION@
65
66 %description -n ortp
67 oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It
68 is available for most *nix clones (primilarly Linux and HP-UX), and Win32.
69
70 %package -n ortp-devel
71 Summary:        Development libraries for ortp
72 Group:          Development/Libraries
73 Version:        @ORTP_VERSION@
74 Requires:       ortp = @ORTP_VERSION@
75
76 %description -n ortp-devel
77 oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889). It
78 is available for most *nix clones (primilarly Linux and HP-UX), and Win32.
79
80 This package contains header files and development libraries needed to
81 develop programs using the oRTP library.
82
83 %package -n mediastreamer2
84 Summary:        Audio/Video real-time streaming
85 Group:          Development/Libraries
86 Version:        @MS2_VERSION@
87
88 %description -n mediastreamer2
89 Mediastreamer2 is a GPL licensed library to make audio and video
90 real-time streaming and processing. Written in pure C, it is based
91 upon the oRTP library.
92
93 %package -n mediastreamer2-devel
94 Summary:        Headers, libraries and docs for the mediastreamer2 library
95 Group:          Development/Libraries
96 Version:        @MS2_VERSION@
97 Requires:       mediastreamer2 = @MS2_VERSION@
98 Requires:       ortp-devel = @ORTP_VERSION@
99
100 %description -n mediastreamer2-devel
101 Mediastreamer2 is a GPL licensed library to make audio and video
102 real-time streaming and processing. Written in pure C, it is based
103 upon the ortp library.
104
105 This package contains header files and development libraries needed to
106 develop programs using the mediastreamer2 library.
107
108 %prep
109 %setup -q
110 #%patch -p 1 -b .pkgconfig
111 #%patch1 -p 1 -b .Werror
112 #%patch2 -p 1 -b .old
113
114 %build
115 %configure \
116         --with-osip=/usr \
117         --with-speex=/usr \
118         --with-readline=/usr \
119 %if %{video}
120         --enable-video \
121         --with-ffmpeg=/usr \
122         --with-sdl=/usr \
123 %endif
124 %if %{truespeech}
125         --enable-truespeech \
126 %endif
127 %{?_without_old_osip: --with-osip-version=2.2.2} \
128         --enable-ipv6
129 %__make %{?_smp_mflags}
130
131
132 %install
133 rm -rf $RPM_BUILD_ROOT
134 make install DESTDIR=$RPM_BUILD_ROOT
135 install -p -m 0644 pixmaps/linphone2.png $RPM_BUILD_ROOT%{_datadir}/pixmaps
136 %find_lang %{name}
137 rm $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Internet/linphone.desktop
138 desktop-file-install --vendor=fedora \
139   --delete-original \
140   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
141   --add-category X-Fedora \
142   --add-category Telephony \
143   --add-category GTK \
144   $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
145
146 %clean
147 rm -rf $RPM_BUILD_ROOT
148
149 %post -p /sbin/ldconfig
150
151 %postun -p /sbin/ldconfig
152
153 %post -n ortp -p /sbin/ldconfig
154
155 %postun -n ortp -p /sbin/ldconfig
156
157 %post -n mediastreamer2 -p /sbin/ldconfig
158
159 %postun -n mediastreamer2 -p /sbin/ldconfig
160
161 %files -f %{name}.lang
162 %defattr(-,root,root)
163 %doc AUTHORS ChangeLog COPYING NEWS README TODO
164 %{_bindir}/*
165 %{_libdir}/bonobo/servers/*.server
166 %{_libdir}/liblinphone.so.*
167 %exclude %{_libdir}/libortp*
168 %{_libexecdir}/*
169 %{_mandir}/*
170 %{_datadir}/applications/*%{name}.desktop
171 %{_datadir}/gnome/help/linphone
172 %{_datadir}/gnome-2.0/ui/*.xml
173 %{_datadir}/pixmaps/linphone
174 %{_datadir}/pixmaps/linphone2.png
175 %{_datadir}/sounds/linphone
176
177 %files devel
178 %defattr(-,root,root)
179 %{_includedir}/linphone
180 %{_libdir}/liblinphone.a
181 %{_libdir}/liblinphone.la
182 %{_libdir}/liblinphone.so
183 %{_libdir}/pkgconfig/linphone.pc
184
185 %files -n ortp
186 %defattr(-,root,root)
187 %doc oRTP/AUTHORS oRTP/ChangeLog oRTP/COPYING oRTP/NEWS oRTP/README oRTP/TODO
188 %{_libdir}/libortp.so.*
189 %exclude %{_libdir}/liblinphone*
190
191 %files -n ortp-devel
192 %defattr(-,root,root)
193 %{_includedir}/ortp
194 %{_libdir}/pkgconfig/ortp.pc
195 %{_libdir}/libortp.a
196 %{_libdir}/libortp.la
197 %{_libdir}/libortp.so
198 %{_datadir}/gtk-doc/html/ortp
199
200 %files -n mediastreamer2
201 %defattr(-,root,root)
202 %doc mediastreamer2/AUTHORS mediastreamer2/ChangeLog mediastreamer2/COPYING
203 %doc mediastreamer2/NEWS mediastreamer2/README
204 %{_libdir}/libmediastreamer.so.*
205 %{_libdir}/libquickstream.so.*
206
207 %files -n mediastreamer2-devel
208 %{_includedir}/mediastreamer2
209 %{_libdir}/pkgconfig/mediastreamer.pc
210 %{_libdir}/libmediastreamer.so
211 %{_libdir}/libmediastreamer.*a
212 %{_libdir}/libquickstream.so
213 %{_libdir}/libquickstream.*a
214
215 %changelog
216 * Wed Sep 28 2005 Francois-Xavier 'FiX' KOWALSKI <francois-xavier.kowalski@hp.com> - 1.2.0pre3
217 - Updated to latests Simon's work
218
219 * Fri May 27 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-3
220 - Fix multiple menu entry and missing icon (#158975)
221 - Clean up spec file
222
223 * Fri May  6 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-2
224 - Fix libosip2-devel BR
225
226 * Wed May  4 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.0.1-1
227 - Update to 1.0.1
228 - Port patches from devel
229
230 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-7
231 - pkgconfig and -devel fixes
232
233 * Wed Mar 23 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-6
234 - Fix build on x86_64
235
236 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-5
237 - %%
238
239 * Sat Mar 19 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-4
240 - Used %%find_lang
241 - Tightened up %%files
242 - Streamlined spec file
243
244 * Thu Mar 17 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-3
245 - Broke %%description at 80 columns
246
247 * Wed Mar 16 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-2
248 - Removed explicit Requires
249
250 * Tue Mar 15 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.12.2-1
251 - Bump release to 1
252 - Cleaned up the -docs and -speex patches
253
254 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.1
255 - Fixed a silly spec error
256
257 * Fri Jan 21 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0:0.12.2-0.iva.0
258 - Initial RPM release.