ekiga.spec revision 10257
10139N/A#
10139N/A# spec file for package ekiga
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
11860N/A#
10139N/A# Owner: davelam
10139N/A#
15291N/A%include l10n.inc
12299N/AName: ekiga
12299N/ALicense: GPL
15340N/AGroup: X11/GNOME/Applications
10139N/A# NOTE: All tarballs should be updated at the same time because ekiga's
10139N/A# configure will generally expect them to be in sync.
10139N/AVersion: 2.0.5
10139N/A%define libsdl_version 1.2.11
10139N/A%define pwlib_version 1.10.4
10139N/A%define opal_version 2.2.5
10139N/ARelease: 1
10139N/AVendor: Sun Microsystems, Inc.
10139N/ADistribution: Java Desktop System
14355N/ASummary: A GNOME based H.323/SIP video conferencing application
10139N/ASource0: http://www.ekiga.org/admin/downloads/latest/sources/sources/ekiga-%{version}.tar.bz2
14355N/ASource1: http://www.ekiga.org/admin/downloads/latest/sources/sources/opal-%{opal_version}.tar.gz
10139N/ASource2: http://www.ekiga.org/admin/downloads/latest/sources/sources/pwlib-%{pwlib_version}.tar.gz
15340N/ASource3: http://www.libsdl.org/release/SDL-%{libsdl_version}.tar.gz
15340N/ASource4: %{name}-po-sun-%{po_sun_version}.tar.bz2
15340N/A
10139N/A# owner:davelam date:2006-04-14 type:branding
10139N/A# use cxxflags to fix build problem
10139N/APatch1: ekiga-01-pwlib-cxxflags.diff
10139N/A
10139N/A# owner:davelam date:2006-04-14 type:branding
10139N/A# change library naming rule to fit unix style
10139N/APatch2: ekiga-02-pwlib-name.diff
10139N/A
10139N/A# owner:davelam date:2006-04-14 type:branding
10139N/A# change pwlib plugin install dir
10139N/APatch3: ekiga-03-pwlib-plugindir.diff
10139N/A
10139N/A# owner:davelam date:2006-04-14 type:branding
10139N/A# change library naming rule to fit unix style
10139N/APatch4: ekiga-04-opal-name.diff
10139N/A
10139N/A# owner:gman date:2006-06-02 type:branding
10139N/A# change the menu entry according to the UI spec
10139N/APatch6: ekiga-06-menu-entry.diff
10139N/A
10139N/A# owner:davelam date:2006-07-10 type:branding
10139N/A# add autogen.sh to use autogen
10139N/APatch7: ekiga-07-autogen.diff
10139N/A
10139N/A# owner:hawklu date:2006-10-17 type:bug bugzilla:356696
10139N/APatch10: ekiga-10-pwlib-bz356696.diff
10139N/A
10139N/A# owner:hawklu date:2006-11-27 type:bug bugster:6492117
10139N/APatch18: ekiga-18-sunray-port-conflict.diff
10139N/A
10139N/A# owner:elainexiong date:2007-01-15 type:bug bugzilla:
10139N/APatch21: ekiga-21-pwlib-v4l2-enable.diff
15340N/A
10139N/A# owner:elainexiong date:2007-03-11 type:branding
10139N/APatch22: ekiga-22-ekiga-performance-tuning.diff
10139N/A
10139N/A# owner:elainexiong date:2007-03-11 type:branding
10139N/APatch23: ekiga-23-pwlib-performance-tuning.diff
10139N/A
10139N/AURL: http://www.ekiga.org
10139N/ABuildRoot: %{_tmppath}/%{name}-root
10139N/ADocdir: %{_docdir}/%{name}
10139N/AAutoreqprov: on
10139N/A
10139N/A# The following version definitions probably are out of date, need update
10139N/A%define GConf_version 2.4.0.1
10374N/A%define gtk2_version 2.3.1
10374N/A%define openldap2_devel_version 2.1.4
10374N/A%define intltool_version 0.27
12298N/A%define libgnomeui_version 2.4.0.1
14355N/A%define des_version 4.04
14355N/A%define heimdal_version 0.4
14355N/A%define cyrus_sasl_version 1.5.27
10374N/A%define openssl_version 0.9.6
10374N/A%define flex_version 2.5.4
10374N/A%define slang_version 1.4.5
10374N/A%define pam_version 0.76
10374N/A%define db_version 4.0.14
10374N/A%define gdbm_version 1.8.0
10374N/A%define howl_version 1.0.0
10374N/A
13389N/ARequires: libsdl >= %{libsdl_version}
10374N/ARequires: pwlib >= %{pwlib_version}
10374N/ARequires: opal >= %{opal_version}
10139N/ARequires: GConf >= %{GConf_version}
10139N/ARequires: libgnomeui >= %{libgnomeui_version}
10374N/ARequires: howl >= %{howl_version}
10139N/ARequires: evolution-data-server
10139N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10139N/ABuildRequires: GConf-devel >= %{GConf_version}
10139N/ABuildRequires: openh323-devel >= %{openh323_version}
10374N/ABuildRequires: pwlib-devel >= %{pwlib_version}
10374N/ABuildRequires: intltool >= %{intltool_version}
10374N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
10374N/ABuildRequires: des >= %{des_version}
10139N/ABuildRequires: heimdal-devel >= %{heimdal_version}
10374N/ABuildRequires: cyrus-sasl-devel >= %{cyrus_sasl_version}
10374N/ABuildRequires: openssl-devel >= %{openssl_version}
10374N/ABuildRequires: openldap2-devel >= %{openldap2_devel_version}
10374N/ABuildRequires: flex >= %{flex_version}
10374N/ABuildRequires: slang-devel >= %{slang_version}
10374N/ABuildRequires: pam-devel >= %{pam_version}
10374N/ABuildRequires: db-devel >= %{db_version}
10374N/ABuildRequires: gdbm-devel >= %{gdbm_version}
10374N/ABuildRequires: howl-devel >= %{howl_version}
10139N/ABuildRequires: evolution-data-server-devel
10139N/APrereq: GConf
15340N/A
15340N/A%description
15340N/AEkiga is a free Voice over IP phone allowing you to do free calls over
15340N/Athe Internet. Ekiga is the first Open Source application to support
15291N/Aboth H.323 and SIP, as well as audio and video. Ekiga was formerly known
15291N/Aas GnomeMeeting.
13702N/A
13702N/A%prep
13405N/A%setup -q -b 1 -b 2 -b 3 -n %{name}*
13405N/A%if %build_l10n
13389N/Abzcat %SOURCE4 | tar xf -
13389N/Acd po-sun; make; cd ..
13351N/A%endif
13389N/A# patch for pwlib
12314N/Acd ../pwlib-%{pwlib_version}
13389N/A%patch1 -p1
12298N/A%patch2 -p1
12299N/A%patch3 -p1
12299N/A%patch10 -p1
11998N/A%patch21 -p1
11998N/A%patch23 -p1
11998N/A# patch for opal
11865N/Acd ../opal-%{opal_version}
11865N/A%patch4 -p1
11860N/A# patch for ekiga
11861N/Acd ../ekiga-%{version}
11861N/A%patch6 -p1
11860N/A%patch7 -p1
11860N/A%patch18 -p1
10894N/A%patch22 -p1
10894N/Achmod +x autogen.sh
10374N/A
10374N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/Aexport PKG_CONFIG=/usr/bin/pkg-config
10139N/A
10139N/A# build libsdl
10139N/Aexport CFLAGS="$RPM_OPT_FLAGS"
10139N/Acd ../SDL-%{libsdl_version}
10139N/A./configure --prefix=%{_prefix} \
10139N/A --libdir=%{_libdir}/%{name} \
10139N/A --bindir=%{_bindir} \
10139N/A --datadir=%{_datadir} \
10139N/A --includedir=%{_includedir} \
10139N/A --mandir=%{_mandir}
10139N/Amake
10139N/A
10139N/Acd include
10139N/A# so that SDL/*.h can be found
10139N/Arm -f SDL; ln -s . SDL
10139N/Acd ../..
10139N/Aexport MYDIR=`pwd`
10139N/A
10139N/A# build pwlib
cd pwlib*
cd plugins
autoconf
cd ..
autoconf
# symlink the make dir to bin so that ptlib-config is found by ekiga
ln -s make bin
#FIXME
# set RPM_OPT_FLAGS to null since pwlib messly uses
# STDCCFLAGS for both CC and CXX, which picks up the
# value of RPM_OPT_FLAGS
RPM_OPT_FLAGS_SAVE=$RPM_OPT_FLAGS
RPM_OPT_FLAGS=""
PWLIBDIR=`pwd`
export RPM_OPT_FLAGS PWLIBDIR
autoconf
export CFLAGS="$CFLAGS -I${MYDIR}/SDL-%{libsdl_version}/include"
export CXXFLAGS="$CXXFLAGS -I${MYDIR}/SDL-%{libsdl_version}/include"
export LDFLAGS="$LDFLAGS -L${MYDIR}/SDL-%{libsdl_version}/src/.libs"
./configure --prefix=%{_prefix} \
--libdir=%{_libdir}/%{name} \
--bindir=%{_bindir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--mandir=%{_mandir} \
--enable-plugins \
--enable-resolver \
--enable-opal \
--enable-sunaudio \
--enable-v4l2
make
# set original RPM_OPT_FLAGS back
RPM_OPT_FLAGS=$RPM_OPT_FLAGS_SAVE
export RPM_OPT_FLAGS
# build opal
cd ../opal*
./configure --prefix=%{_prefix} \
--libdir=%{_libdir}/%{name} \
--bindir=%{_bindir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--mandir=%{_mandir} \
--enable-localspeex
make
# build ekiga
cd ../%{name}*
# so that SDL/include can be found
rm -f SDL; ln -s ../SDL-%{libsdl_version} SDL
ACLOCAL_FLAGS="$ACLOCAL_FLAG -I SDL"
SDL_CONFIG=${MYDIR}/SDL-%{libsdl_version}/sdl-config
export SDL_CONFIG ACLOCAL_FLAGS
./autogen.sh --prefix=%{_prefix} \
--libdir=%{_libdir}/%{name} \
--bindir=%{_bindir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--mandir=%{_mandir} \
--sysconfdir=%{_sysconfdir} \
--with-pwlib-dir=${MYDIR}/pwlib-%{pwlib_version} \
--with-opal-dir=${MYDIR}/opal-%{opal_version} \
--with-sdl-prefix=${MYDIR}/SDL-%{libsdl_version} \
--disable-avahi \
--disable-scrollkeeper
make LIBS=-lX11
%install
cd ../SDL-%{libsdl_version}
make install DESTDIR=$RPM_BUILD_ROOT
cd ../pwlib*
make install DESTDIR=$RPM_BUILD_ROOT
cd ../opal*
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT%{_bindir}
rm -rf $RPM_BUILD_ROOT%{_datadir}
rm -rf $RPM_BUILD_ROOT%{_mandir}
cd ../%{name}*
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_bindir}/*config*
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*a
rm -rf $RPM_BUILD_ROOT%{_includedir}
mv $RPM_BUILD_ROOT%{_libdir}/%{name}/bonobo $RPM_BUILD_ROOT%{_libdir}
%clean
rm -rf $RPM_BUILD_ROOT
%post
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
SCHEMAS="ekiga.schemas"
for S in $SCHEMAS; do
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
done
%files
%defattr(-,root,root)
%doc FAQ AUTHORS NEWS
%dir %{_datadir}/ekiga/xdap
%dir %{_datadir}/sounds/ekiga
#%{_datadir}/man/man1/ekiga.1.gz
%{_bindir}/ekiga*
%{_datadir}/locale/*/LC_MESSAGES/ekiga.mo
%{_datadir}/applications/ekiga.desktop
%{_datadir}/sounds/ekiga/*
%{_datadir}/pixmaps/ekiga*
%{_libdir}/bonobo/servers/ekiga.server
%{_datadir}/ekiga/xdap/*
%{_sysconfdir}/gconf/schemas/ekiga.schemas
%{_datadir}/gnome/*
%{_datadir}/omf/*
%{_mandir}/man1/*
%changelog
* Sun Mar 11 2007 - elaine.xiong@sun.com
- Add patch ekiga-22-ekiga-performance-tuning.diff
ekiga-23-pwlib-performance-tuning.diff
Both of them for ekiga performance tuning with video support.
Will upstream them or part of them to community if tuning is done.
* Wed Feb 14 2007 - elaine.xiong@sun.com
- Add patch ekiga-21-pwlib-enable-v4l2.diff to fix bugzilla407820
Meantime enable V4L2 plugin in ekiga.spec
* Wed Feb 14 2007 - damien.carbery@sun.com
- Bump to 2.0.5; bump pwlib to 1.10.4 & bump opal to 2.2.5.
* Tue Feb 13 2007 - takao.fujiwara@sun.com
- Add l10n tarball.
* Mon Jan 29 2007 - elaine.xiong@sun.com
- Cancel parallel job option for ekiga(including sdl, pwlib, opal) build.
To temporily solve the potential problems caused by parallel.
Will be fixed ASAP.
* Sat Jan 27 2007 - elaine.xiong@sun.com
- Bump ekiga to 2.0.4 shrink patches and spec file for build failure
* Wed Jan 24 2007 - damien.carbery@sun.com
- Bump pwlib to 1.10.3, opal to 2.2.4. Remove upstream patches,
08-pwlib-disconnect, 09-pwlib-unset-port, 13-opal-bz356696,
15-opal-invalidarrayindex, 16-pwlib-video. Add patch 20-opal-break to fix
build error (sourceforge: 1643652).
* Mon Jan 22 2007 - damien.carbery@sun.com
- Bump to 2.0.4.
* Thu Jan 04 2007 - elaine.xiong@sun.com
- Add patch ekiga-19-freeze-accessibility.diff. Workes around bugzilla 329454.
* Thu Dec 28 2006 - dave.lin@sun.com
- change the patch type to branding for some patches in patch comments
* Wed Nov 29 2006 - damien.carbery@sun.com
- Fix typo in name of patch 18: s/18-opal-sunray/18-sunray/
* Mon Nov 27 2006 - brian.lu@sun.com
- Add patch ekiga-18-sunray-port-conflict.diff. Fixes bugzilla 367516.
* Mon Nov 20 2006 - davelin@sun.com
- Add patch comment
* Thu Nov 02 2006 - davelin@sun.com
- Bump version to 2.0.3
- Sync patches those have been upstreamed in ekiga community trunk
- ekiga-10-pwlib-bz356696.diff, ekiga-13-opal-bz356696.diff(better fix
for bugzilla356696)
- ekiga-15-opal-invalidarrayindex.diff(bugzilla367482)
- ekiga-16-pwlib-video.diff(bugzilla367516)
- ekiga-17-opal-rtp.diff(CR#6483823, CR#6483831, which caused revert to
2.0.2 in b52b)
* Wed Oct 25 2006 - davelin@sun.com
- Roll back to the previous version 2.0.2 since following critical bug
was found in 2.0.3 CR#6483823(and another P2 bug CR#6483831)
* Tue Oct 17 2006 - dave.lin@sun.com
- Bump version to 2.0.3
- Add patch ekiga-pwlib-09-unset-port.diff to fix bug CR#6476679
- Add patch ekiga-10-pwlib-bz356696.diff to fix bug gnome bugzilla #356696
* Mon Oct 09 2006 - dave.lin@sun.com
- Add patch ekiga-08-pwlib-disconnect-crash.diff to fix bug CR#6470530
* Fri Sep 15 2006 - dermot.mccluskey@sun.com
- Fixed erroneous comments in %defines
* Wed Sep 06 2006 - damien.carbery@sun.com
- Bump pwlib to 1.10.2, opal to 2.2.3.
* Mon Sep 04 2006 - damien.carbery@sun.com
- Bump to 2.0.3.
* Mon Sep 04 2006 - damien.carbery@sun.com
- Bump libsdl to 1.2.11.
* Tue Aug 08 2006 - damien.carbery@sun.com
- Change 'cd dir*' to use '%{version}'.
* Mon Jul 10 2006 - dave.lin@sun.com
- change to use Ekiga 2.0.2 release
* Fri Jun 16 2006 - dave.lin@sun.com
- add GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 to make sure not
install the directory based %gconf.xml files based on the
instruction in gconf.txt
* Wed Jun 07 2006 - damien.carbery@sun.com
- chdir into ekiga dir before applying ekiga patches.
* Fri Jun 02 2006 - glynn.foster@sun.com
- Add patch for change the menu entry according to the UI spec.
* Mon May 15 2006 - dave.lin@sun.com
- Add patch ekiga-08-multi-decla.diff to fix multiple declaration
error.
* Fri Apr 14 2006 - <dave.lin@sun.com>
- Initial release for ekiga