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