ekiga.spec revision 10261
13980N/A#
13980N/A# spec file for package ekiga
13980N/A#
20885N/A# Copyright (c) 2005 Sun Microsystems, Inc.
13980N/A# This file and all modifications and additions to the pristine
13980N/A# package are under the same license as the package itself.
13980N/A#
17185N/A# Owner: davelam
18644N/A#
13980N/A%include l10n.inc
13940N/AName: ekiga
13940N/ALicense: GPL
13940N/AGroup: X11/GNOME/Applications
13940N/A# NOTE: All tarballs should be updated at the same time because ekiga's
19904N/A# configure will generally expect them to be in sync.
19904N/AVersion: 2.0.7
20904N/A%define libsdl_version 1.2.11
13940N/A%define pwlib_version 1.10.5
13940N/A%define opal_version 2.2.6
18688N/ARelease: 1
18688N/AVendor: Sun Microsystems, Inc.
13940N/ADistribution: Java Desktop System
20904N/ASummary: A GNOME based H.323/SIP video conferencing application
17051N/ASource0: http://www.ekiga.org/admin/downloads/latest/sources/sources/ekiga-%{version}.tar.bz2
18850N/ASource1: http://www.ekiga.org/admin/downloads/latest/sources/sources/opal-%{opal_version}.tar.gz
13980N/ASource2: http://www.ekiga.org/admin/downloads/latest/sources/sources/pwlib-%{pwlib_version}.tar.gz
14072N/ASource3: http://www.libsdl.org/release/SDL-%{libsdl_version}.tar.gz
13940N/ASource4: %{name}-po-sun-%{po_sun_version}.tar.bz2
19870N/A
20904N/A# owner:davelam date:2006-04-14 type:branding
13940N/A# use cxxflags to fix build problem
13940N/APatch1: ekiga-01-pwlib-cxxflags.diff
18850N/A
15802N/A# owner:davelam date:2006-04-14 type:branding
13940N/A# change library naming rule to fit unix style
20857N/APatch2: ekiga-02-pwlib-name.diff
20885N/A
20901N/A# owner:davelam date:2006-04-14 type:branding
20901N/A# change pwlib plugin install dir
20885N/APatch3: ekiga-03-pwlib-plugindir.diff
20885N/A
20901N/A# owner:davelam date:2006-04-14 type:branding
20901N/A# change library naming rule to fit unix style
20901N/APatch4: ekiga-04-opal-name.diff
20901N/A
20901N/A# owner:gman date:2006-06-02 type:branding
20901N/A# change the menu entry according to the UI spec
20901N/APatch6: ekiga-06-menu-entry.diff
13940N/A
13940N/A# owner:davelam date:2006-07-10 type:branding
13940N/A# add autogen.sh to use autogen
13940N/APatch7: ekiga-07-autogen.diff
13940N/A
20857N/A# owner:hawklu date:2006-10-17 type:bug bugzilla:356696
13940N/APatch10: ekiga-10-pwlib-bz356696.diff
13940N/A
13940N/A# owner:hawklu date:2006-11-27 type:bug bugster:6492117
18850N/APatch18: ekiga-18-sunray-port-conflict.diff
13940N/A
17374N/A# owner:elainexiong date:2007-03-11 type:branding
13980N/APatch21: ekiga-21-ekiga-performance-tuning.diff
13940N/A
13940N/A# owner:elainexiong date:2007-03-11 type:branding
13940N/APatch22: ekiga-21-pwlib-performance-tuning.diff
13940N/A
13940N/AURL: http://www.ekiga.org
13940N/ABuildRoot: %{_tmppath}/%{name}-root
14072N/ADocdir: %{_docdir}/%{name}
14072N/AAutoreqprov: on
14072N/A
14072N/A# The following version definitions probably are out of date, need update
19086N/A%define GConf_version 2.4.0.1
14072N/A%define gtk2_version 2.3.1
14072N/A%define openldap2_devel_version 2.1.4
14072N/A%define intltool_version 0.27
14072N/A%define libgnomeui_version 2.4.0.1
13940N/A%define des_version 4.04
20841N/A%define heimdal_version 0.4
20841N/A%define cyrus_sasl_version 1.5.27
13940N/A%define openssl_version 0.9.6
13940N/A%define flex_version 2.5.4
13980N/A%define slang_version 1.4.5
13980N/A%define pam_version 0.76
13980N/A%define db_version 4.0.14
18850N/A%define gdbm_version 1.8.0
13980N/A%define howl_version 1.0.0
13980N/A
13980N/ARequires: libsdl >= %{libsdl_version}
13940N/ARequires: pwlib >= %{pwlib_version}
13940N/ARequires: opal >= %{opal_version}
13940N/ARequires: GConf >= %{GConf_version}
13940N/ARequires: libgnomeui >= %{libgnomeui_version}
13940N/ARequires: howl >= %{howl_version}
13940N/ARequires: evolution-data-server
13940N/ABuildRequires: gtk2-devel >= %{gtk2_version}
13940N/ABuildRequires: GConf-devel >= %{GConf_version}
13940N/ABuildRequires: openh323-devel >= %{openh323_version}
13940N/ABuildRequires: pwlib-devel >= %{pwlib_version}
13940N/ABuildRequires: intltool >= %{intltool_version}
13940N/ABuildRequires: libgnomeui-devel >= %{libgnomeui_version}
13940N/ABuildRequires: des >= %{des_version}
13940N/ABuildRequires: heimdal-devel >= %{heimdal_version}
13940N/ABuildRequires: cyrus-sasl-devel >= %{cyrus_sasl_version}
13940N/ABuildRequires: openssl-devel >= %{openssl_version}
13940N/ABuildRequires: openldap2-devel >= %{openldap2_devel_version}
20904N/ABuildRequires: flex >= %{flex_version}
20904N/ABuildRequires: slang-devel >= %{slang_version}
20841N/ABuildRequires: pam-devel >= %{pam_version}
20841N/ABuildRequires: db-devel >= %{db_version}
20814N/ABuildRequires: gdbm-devel >= %{gdbm_version}
20814N/ABuildRequires: howl-devel >= %{howl_version}
19901N/ABuildRequires: evolution-data-server-devel
19901N/APrereq: GConf
19901N/A
19086N/A%description
19086N/AEkiga is a free Voice over IP phone allowing you to do free calls over
19067N/Athe Internet. Ekiga is the first Open Source application to support
19067N/Aboth H.323 and SIP, as well as audio and video. Ekiga was formerly known
18850N/Aas GnomeMeeting.
18850N/A
17374N/A%prep
17374N/A%setup -q -b 1 -b 2 -b 3 -n %{name}*
17374N/A%if %build_l10n
17374N/Abzcat %SOURCE4 | tar xf -
17104N/Acd po-sun; make; cd ..
17104N/A%endif
17104N/A# patch for pwlib
17104N/Acd ../pwlib-%{pwlib_version}
17075N/A%patch1 -p1
17075N/A%patch2 -p1
17051N/A%patch3 -p1
17051N/A%patch10 -p1
16904N/A%patch22 -p1
16904N/A# patch for opal
16466N/Acd ../opal-%{opal_version}
16466N/A%patch4 -p1
15802N/A# patch for ekiga
15802N/Acd ../ekiga-%{version}
14419N/A%patch6 -p1
14419N/A%patch7 -p1
14091N/A%patch18 -p1
14091N/A%patch21 -p1
14072N/Achmod +x autogen.sh
14072N/A
13980N/A%build
13980N/A%ifos linux
13940N/Aif [ -x /usr/bin/getconf ]; then
13940N/A CPUS=`getconf _NPROCESSORS_ONLN`
13940N/Afi
13940N/A%else
13940N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
13940N/A%endif
13940N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
13940N/A CPUS=1
13940N/Afi
19187N/Aexport PKG_CONFIG=/usr/bin/pkg-config
19504N/A
# build libsdl
export CFLAGS="$RPM_OPT_FLAGS"
cd ../SDL-%{libsdl_version}
./configure --prefix=%{_prefix} \
--libdir=%{_libdir}/%{name} \
--bindir=%{_bindir} \
--datadir=%{_datadir} \
--includedir=%{_includedir} \
--mandir=%{_mandir}
make
cd include
# so that SDL/*.h can be found
rm -f SDL; ln -s . SDL
cd ../..
export MYDIR=`pwd`
# 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
* Mon Mar 12 2007 - damien.carbery@sun.com
- Bump to 2.0.7; bump pwlib to 1.10.5 & bump opal to 2.2.6. Remove upstream
patch, 21-pwlib-v4l2-enable, renumber remainder.
* 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