linphone-3.5.0

add BR: libnotify-devel spandsp-devel
This commit is contained in:
nucleo 2011-12-26 05:53:13 +02:00
parent f2af6203f2
commit e8cbb3ea91
6 changed files with 35 additions and 211 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
linphone-3.2.1.tar.gz
/linphone-3.4.3.tar.gz
/linphone-3.5.0.tar.gz

View file

@ -1,24 +0,0 @@
From 3873e40dc1c3c04d76ae22bf1169cecec5193624 Mon Sep 17 00:00:00 2001
From: Simon Morlat <simon.morlat@linphone.org>
Date: Mon, 04 Apr 2011 22:38:42 +0000
Subject: restore intl of .ui files (thanks intltool grrr)
---
diff --git a/gtk/main.c b/gtk/main.c
index e73ae8a..5e16710 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1431,8 +1431,11 @@ int main(int argc, char *argv[]){
g_object_set(settings, "gtk-menu-images", TRUE, NULL);
g_object_set(settings, "gtk-button-images", TRUE, NULL);
- if (workingdir!=NULL)
- chdir(workingdir);
+ if (workingdir!=NULL){
+ if (chdir(workingdir)==-1){
+ g_error("Could not change directory to %s : %s",workingdir,strerror(errno));
+ }
+ }
/* Now, look for the factory configuration file, we do it this late
since we want to have had time to change directory and to parse

View file

@ -1,173 +0,0 @@
diff -uNrp linphone-3.4.3/coreapi/linphonecore.c linphone-3.4.3/coreapi/linphonecore.c
--- linphone-3.4.3/coreapi/linphonecore.c 2011-03-28 21:35:36.000000000 +0300
+++ linphone-3.4.3/coreapi/linphonecore.c 2011-09-02 14:00:57.348939880 +0300
@@ -746,7 +746,7 @@ static void codecs_config_read(LinphoneC
}
static void video_config_read(LinphoneCore *lc){
- int capture, display, self_view;
+ __attribute__((__unused__)) int capture, display, self_view;
int enabled;
const char *str;
int ndev;
diff -uNrp linphone-3.4.3/mediastreamer2/src/ice.c linphone-3.4.3/mediastreamer2/src/ice.c
--- linphone-3.4.3/mediastreamer2/src/ice.c 2010-08-26 13:21:55.000000000 +0300
+++ linphone-3.4.3/mediastreamer2/src/ice.c 2011-09-02 13:10:40.476774786 +0300
@@ -480,7 +480,7 @@ static int ice_process_stun_message(RtpS
struct CandidatePair *remote_candidates = NULL;
StunMessage msg;
bool_t res;
- int highest_priority_success=-1;
+ __attribute__((__unused__)) int highest_priority_success=-1;
OrtpEventData *evt_data = ortp_event_get_data(evt);
mblk_t *mp = evt_data->packet;
struct sockaddr_in *udp_remote;
diff -uNrp linphone-3.4.3/mediastreamer2/src/msconf.c linphone-3.4.3/mediastreamer2/src/msconf.c
--- linphone-3.4.3/mediastreamer2/src/msconf.c 2010-08-26 13:21:55.000000000 +0300
+++ linphone-3.4.3/mediastreamer2/src/msconf.c 2011-09-02 13:47:15.780745079 +0300
@@ -416,7 +416,7 @@ static void conf_sum(MSFilter *f, ConfSt
#ifndef DISABLE_SPEEX
if (chan->speex_pp!=NULL && s->enable_vad==TRUE && i==0)
{
- int vad;
+ __attribute__((__unused__)) int vad;
vad = speex_preprocess(chan->speex_pp, (short*)chan->input, NULL);
ms_filter_notify(f, MS_CONF_SPEEX_PREPROCESS_MIC, (void*)chan->speex_pp);
@@ -447,7 +447,7 @@ static void conf_sum(MSFilter *f, ConfSt
}
else if (chan->speex_pp!=NULL && s->enable_vad==TRUE)
{
- int vad;
+ __attribute__((__unused__)) int vad;
if (s->enable_halfduplex>0)
{
diff -uNrp linphone-3.4.3/mediastreamer2/src/msjoin.c linphone-3.4.3/mediastreamer2/src/msjoin.c
--- linphone-3.4.3/mediastreamer2/src/msjoin.c 2010-08-26 13:21:55.000000000 +0300
+++ linphone-3.4.3/mediastreamer2/src/msjoin.c 2011-09-02 13:38:36.539657990 +0300
@@ -30,7 +30,7 @@ static void join_process(MSFilter *f){
if (f->inputs[1]!=NULL)
{
while((im=ms_queue_get(f->inputs[1]))!=NULL){
- int payload;
+ __attribute__((__unused__)) int payload;
payload=mblk_set_payload_type(im, 123);
ms_queue_put(f->outputs[0],im);
}
diff -uNrp linphone-3.4.3/mediastreamer2/src/mtu.c linphone-3.4.3/mediastreamer2/src/mtu.c
--- linphone-3.4.3/mediastreamer2/src/mtu.c 2010-08-26 16:14:08.000000000 +0300
+++ linphone-3.4.3/mediastreamer2/src/mtu.c 2011-09-02 13:52:56.766512552 +0300
@@ -208,7 +208,7 @@ int ms_discover_mtu(const char *host){
}
mtu=1500-28;//was the size of the inital buf
do{
- int send_returned;
+ __attribute__((__unused__)) int send_returned;
char *buf=ms_malloc0(mtu);//avoid mtu greater than the beginning
if(buf == NULL)
{
diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c
index 4c6deea..2b8eb73 100644
--- a/coreapi/linphonecore.c
+++ b/coreapi/linphonecore.c
@@ -1636,9 +1636,9 @@ void linphone_core_iterate(LinphoneCore *lc){
linphone_core_start_invite() */
calls=calls->next;
if (call->state==LinphoneCallOutgoingInit && (curtime-call->start_time>=2)){
- /*start the call even if the OPTIONS reply did not arrive*/
- linphone_core_start_invite(lc,call,NULL);
- }
+ /*start the call even if the OPTIONS reply did not arrive*/
+ linphone_core_start_invite(lc,call,NULL);
+ }
if (call->dir==LinphoneCallIncoming && call->state==LinphoneCallOutgoingRinging){
elapsed=curtime-call->start_time;
ms_message("incoming call ringing for %i seconds",elapsed);
@@ -1996,7 +1996,6 @@ LinphoneCall * linphone_core_invite_address(LinphoneCore *lc, const LinphoneAddr
**/
LinphoneCall * linphone_core_invite_address_with_params(LinphoneCore *lc, const LinphoneAddress *addr, const LinphoneCallParams *params)
{
- int err=0;
const char *route=NULL;
const char *from=NULL;
LinphoneProxyConfig *proxy=NULL;
@@ -2049,7 +2048,7 @@ LinphoneCall * linphone_core_invite_address_with_params(LinphoneCore *lc, const
lc->current_call=call;
linphone_call_set_state (call,LinphoneCallOutgoingInit,"Starting outgoing call");
if (dest_proxy!=NULL || lc->sip_conf.ping_with_options==FALSE){
- err=linphone_core_start_invite(lc,call,dest_proxy);
+ linphone_core_start_invite(lc,call,dest_proxy);
}else{
/*defer the start of the call after the OPTIONS ping*/
call->ping_op=sal_op_new(lc->sal);
diff --git a/coreapi/proxy.c b/coreapi/proxy.c
index a4a062d..fbbf9ce 100644
--- a/coreapi/proxy.c
+++ b/coreapi/proxy.c
@@ -269,10 +269,6 @@ static char *guess_contact_for_register(LinphoneProxyConfig *obj){
}
static void linphone_proxy_config_register(LinphoneProxyConfig *obj){
- const char *id_str;
-
- if (obj->reg_identity!=NULL) id_str=obj->reg_identity;
- else id_str=linphone_core_get_primary_contact(obj->lc);
if (obj->reg_sendregister){
char *contact;
if (obj->op)
diff --git a/coreapi/sal_eXosip2.c b/coreapi/sal_eXosip2.c
index 869a7d8..65c60af 100644
--- a/coreapi/sal_eXosip2.c
+++ b/coreapi/sal_eXosip2.c
@@ -561,19 +561,18 @@ int sal_call(SalOp *h, const char *from, const char *to){
int sal_call_notify_ringing(SalOp *h, bool_t early_media){
osip_message_t *msg;
- int err;
/*if early media send also 180 and 183 */
if (early_media && h->sdp_answer){
msg=NULL;
eXosip_lock();
- err=eXosip_call_build_answer(h->tid,180,&msg);
+ eXosip_call_build_answer(h->tid,180,&msg);
if (msg){
set_sdp(msg,h->sdp_answer);
eXosip_call_send_answer(h->tid,180,msg);
}
msg=NULL;
- err=eXosip_call_build_answer(h->tid,183,&msg);
+ eXosip_call_build_answer(h->tid,183,&msg);
if (msg){
set_sdp(msg,h->sdp_answer);
eXosip_call_send_answer(h->tid,183,msg);
diff --git a/gtk/friendlist.c b/gtk/friendlist.c
index f193076..d1b1162 100644
--- a/gtk/friendlist.c
+++ b/gtk/friendlist.c
@@ -70,7 +70,7 @@ static GdkPixbuf *create_status_picture(LinphoneOnlineStatus ss){
void linphone_gtk_set_friend_status(GtkWidget *friendlist , LinphoneFriend * fid, const gchar *url, const gchar *status, const gchar *img){
GtkTreeIter iter;
LinphoneFriend *tmp=0;
- gboolean found=FALSE;
+
GtkTreeModel *model=gtk_tree_view_get_model(GTK_TREE_VIEW(friendlist));
if (gtk_tree_model_get_iter_first(model,&iter)) {
do{
@@ -81,10 +81,9 @@ void linphone_gtk_set_friend_status(GtkWidget *friendlist , LinphoneFriend * fid
gtk_list_store_set(GTK_LIST_STORE(model),&iter,FRIEND_PRESENCE_STATUS,status,-1);
pixbuf = create_pixbuf(img);
if (pixbuf)
- {
- gtk_list_store_set(GTK_LIST_STORE(model),&iter,FRIEND_PRESENCE_IMG, pixbuf,-1);
- }
- found=TRUE;
+ {
+ gtk_list_store_set(GTK_LIST_STORE(model),&iter,FRIEND_PRESENCE_IMG, pixbuf,-1);
+ }
}
}while(gtk_tree_model_iter_next(model,&iter));
}
--
cgit v0.8.3.4

View file

@ -0,0 +1,13 @@
--- linphone-3.5.0/mediastreamer2/tests/mediastream.c 2011-12-20 10:35:18.000000000 +0200
+++ linphone-3.5.0/mediastreamer2/tests/mediastream.c 2011-12-26 04:55:01.468278706 +0200
@@ -430,8 +430,8 @@
void setup_media_streams(MediastreamDatas* args) {
- /*create the rtp session */
- MSWebCam *cam=NULL;
+ /*create the rtp session
+ MSWebCam *cam=NULL; */
ortp_init();
if (args->is_verbose) {

View file

@ -1,6 +1,6 @@
Name: linphone
Version: 3.4.3
Release: 2%{?dist}
Version: 3.5.0
Release: 1%{?dist}
Summary: Phone anywhere in the whole world by using the Internet
Group: Applications/Communications
@ -8,18 +8,18 @@ License: GPLv2+
URL: http://www.linphone.org/
Source0: http://download.savannah.gnu.org/releases/linphone/3.4.x/sources/%{name}-%{version}.tar.gz
Patch0: linphone-3.4.3-chdir.patch
Patch1: linphone-3.4.3-unusedvar.patch
Patch0: linphone-3.5.0-unusedvar.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libosip2-devel >= 3.5.0
BuildRequires: libeXosip2-devel >= 3.5.0
BuildRequires: ortp-devel >= 0.16.4
BuildRequires: libosip2-devel >= 3.6.0
BuildRequires: libeXosip2-devel >= 3.6.0
BuildRequires: ortp-devel >= 1:0.18.0
BuildRequires: openssl-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libnotify-devel
BuildRequires: readline-devel
BuildRequires: ncurses-devel
@ -27,6 +27,7 @@ BuildRequires: gtk2-devel >= 2.16
BuildRequires: alsa-lib-devel
BuildRequires: speex-devel >= 1.2
BuildRequires: spandsp-devel
BuildRequires: gsm-devel
BuildRequires: libsamplerate-devel
@ -65,8 +66,7 @@ Libraries and headers required to develop software with linphone.
%prep
%setup0 -q
%patch0 -p1 -b .chdir
%patch1 -p1 -b .unusedvar
%patch0 -p1 -b .unusedvar
# remove bundled oRTP
rm -rf oRTP
@ -105,6 +105,9 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%find_lang mediastreamer
cat mediastreamer.lang >> %{name}.lang
desktop-file-install --vendor=fedora \
--delete-original \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
@ -125,9 +128,8 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/*
%{_libdir}/liblinphone.so.*
%{_libdir}/libmediastreamer.so.*
%{_libexecdir}/*
%{_libdir}/liblinphone.so.4*
%{_libdir}/libmediastreamer.so.1*
%{_mandir}/man1/*
%lang(cs) %{_mandir}/cs/man1/*
%{_datadir}/applications/*%{name}.desktop
@ -144,9 +146,14 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/mediastreamer2
%{_libdir}/liblinphone.so
%{_libdir}/libmediastreamer.so
%{_libdir}/pkgconfig/*
%{_libdir}/pkgconfig/linphone.pc
%{_libdir}/pkgconfig/mediastreamer.pc
%changelog
* Mon Dec 26 2011 Alexey Kurov <nucleo@fedoraproject.org> - 3.5.0-1
- linphone-3.5.0
- add BR: libnotify-devel spandsp-devel
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 3.4.3-2
- Rebuild for new libpng

View file

@ -1 +1 @@
66e21f36d62c2094f7b4360262c46f20 linphone-3.4.3.tar.gz
ad89cd6030a131f2b17ea50eb6f4c6f2 linphone-3.5.0.tar.gz