From e756795dceda0b10b912edd872c08b30769f4cff Mon Sep 17 00:00:00 2001 From: Margaux Clerc Date: Tue, 24 Dec 2013 21:57:49 +0100 Subject: [PATCH] RPM for redhat Linphone for redhat documentaton --- build/redhat/INSTALL | 13 +++++++++++ build/redhat/README | 51 ++++++++++++++++++++++++++++++++++++++++++++ gtk/ldap.ui | 2 +- linphone.spec.in | 2 +- 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 build/redhat/INSTALL create mode 100644 build/redhat/README diff --git a/build/redhat/INSTALL b/build/redhat/INSTALL new file mode 100644 index 000000000..0b43a5b51 --- /dev/null +++ b/build/redhat/INSTALL @@ -0,0 +1,13 @@ +INSTALL : + +Download and install the repo rpmforge : + http://repoforge.org/use/ + + $ sudo rpm -Uvh + +Download the linphone-release rpm + $ sudo rpm -Uvh + + $ sudo yum install linphone + + diff --git a/build/redhat/README b/build/redhat/README new file mode 100644 index 000000000..37e09e4d4 --- /dev/null +++ b/build/redhat/README @@ -0,0 +1,51 @@ +********************************** +* Compiling linphone on RedHat * +********************************** + +Download and install the repo rpmforge : + http://repoforge.org/use/ + + $ sudo rpm -Uhv + $ yum -y update + +- Install build time dependencies + $ sudo yum install libtool intltool + +- Install others dependencies + $ sudo yum install gtk2-devel + $ sudo yum install ffmpeg-devel + $ sudo yum install openldap-devel + +- Download and install packages + $ sudo rpm -Uhv ftp://ftp.icm.edu.pl/vol/rzm2/linux-fedora/linux/epel/6/x86_64/polarssl-1.3.2-1.el6.x86_64.rpm + $ sudo rpm -Uvh ftp://ftp.icm.edu.pl/vol/rzm2/linux-fedora/linux/epel/6/x86_64/polarssl-devel-1.3.2-1.el6.x86_64.rpm + $ sudo rpm -Uhv ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/15/Everything/x86_64/os/Packages/antlr3-C-3.2-14.fc15.x86_64.rpm + $ sudo rpm -Uhv ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/15/Everything/x86_64/os/Packages/antlr3-C-devel-3.2-14.fc15.x86_64.rpm + $ sudo rpm -Uhv ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/15/Everything/x86_64/os/Packages/antlr3-tool-3.2-14.fc15.noarch.rpm + $ sudo rpm -Uhv ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/15/Fedora/i386/os/Packages/antlr3-java-3.2-14.fc15.noarch.rpm + +- Compile Belle-sip / oRTP / mediastreamer + $ ./autogen.sh + $ ./configure + $ make && make rpm + $ sudo rpm -Uvh + +- Compile Linphone + $ ./autogen.sh + $ ./configure + $ make && make rpm + + +-Create yum repo : + $ cd rpmbuild/RPMS/*arch*/ + $ createrepo . + + Create a file "linphone-release.repo" in /etc/yum.repos.d/ with : + + [linphone-release] + name = Linphone for redhat + baseurl = file/// *path to the new repo* + enabled = 1 + gpgcheck = 0 + + $ sudo yum install linphone diff --git a/gtk/ldap.ui b/gtk/ldap.ui index ba3bf7163..a5df241d1 100644 --- a/gtk/ldap.ui +++ b/gtk/ldap.ui @@ -1,6 +1,6 @@ - + False diff --git a/linphone.spec.in b/linphone.spec.in index e8e7b68a6..728ad5151 100644 --- a/linphone.spec.in +++ b/linphone.spec.in @@ -53,7 +53,7 @@ Libraries and headers required to develop software with linphone. %if !%{video} --disable-video \ %endif - --disable-tests --docdir=%{_docdir} --enable-ipv6 --enable-static --enable-external-mediastreamer --enable-external-ortp + --disable-tests --docdir=%{_docdir} --enable-ipv6 --enable-static --enable-external-mediastreamer --enable-external-ortp --enable-ldap %__make %{?_smp_mflags}