2008-08-07 Dave Lin <
[email protected]>
* closed/SUNWflash-player-plugin.spec: Hack the version number from
9.0.125 9.0.1250 to fix the integration issue, which was caused by
the incorrect version number(9.0.1124 should be 9.0.124) in the
previous version bump.
#
# spec file for package SUNWgnome-meeting
#
# includes module(s): pwlib, opal, ekiga
#
# Copyright 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: davelam
#
# DO NOT REMOVE NEXT LINE
# PACKAGE NOT ARC REVIEWED BY SUN JDS TEAM
#
%include Solaris.inc
%if %arch_sse2
%include x86_sse2.inc
%define ekiga_libdir %{_prefix}/lib/ekiga/%sse2_arch
%use pwlib_sse2 = pwlib.spec
%use opal_sse2 = opal.spec
%define pwlib_opt --with-pwlib-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%sse2_arch/pwlib-%{pwlib.version}
%define opal_opt --with-opal-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%sse2_arch/opal-%{opal.version}
%use ekiga_sse2 = ekiga.spec
%endif
%include base.inc
%define ekiga_libdir %{_libdir}/ekiga
%use pwlib = pwlib.spec
%use opal = opal.spec
%define pwlib_opt --with-pwlib-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%base_arch/pwlib-%{pwlib.version}
%define opal_opt --with-opal-dir=%{_builddir}/SUNWgnome-meeting-%{default_pkg_version}/%base_arch/opal-%{opal.version}
%use ekiga = ekiga.spec
Name: SUNWgnome-meeting
Summary: GNOME video conference application
Version: %{default_pkg_version}
Source: %{name}-manpages-0.1.tar.gz
SUNW_BaseDir: %{_basedir}
SUNW_Copyright:%{name}.copyright
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWlibC
Requires: SUNWlxml
Requires: SUNWlibms
Requires: SUNWlibmsr
Requires: SUNWgnome-base-libs
Requires: SUNWgnome-libs
Requires: SUNWgnome-component
Requires: SUNWgnutls
Requires: SUNWgnome-config
Requires: SUNWgnome-meeting-root
Requires: SUNWpostrun
Requires: SUNWevolution-data-server
Requires: SUNWgnome-audio
Requires: SUNWavahi-bridge-dsd
#Requires: SUNWdbus
BuildRequires: SUNWgnome-base-libs-devel
BuildRequires: SUNWgnome-config-devel
BuildRequires: SUNWgnome-doc-utils
#BuildRequires: SUNWdbus-devel
BuildRequires: SUNWlxml-python
BuildRequires: SUNWavahi-bridge-dsd-devel
Requires: SUNWlibsdl
BuildRequires: SUNWlibsdl-devel
%package root
Summary: %{summary} - / filesystem
SUNW_BaseDir: /
%include default-depend.inc
Requires: SUNWpostrun-root
Requires: SUNWgnome-config
%if %build_l10n
%package l10n
Summary: %{summary} - l10n files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %{name}
%endif
%prep
rm -rf %name-%version
mkdir %name-%version
%if %arch_sse2
mkdir %name-%version/%sse2_arch
%pwlib_sse2.prep -d %name-%version/%sse2_arch
%opal_sse2.prep -d %name-%version/%sse2_arch
%ekiga_sse2.prep -d %name-%version/%sse2_arch
%endif
mkdir %name-%version/%base_arch
%pwlib.prep -d %name-%version/%base_arch
%opal.prep -d %name-%version/%base_arch
%ekiga.prep -d %name-%version/%base_arch
cd %{_builddir}/%name-%version
gzcat %SOURCE0 | tar xf -
%build
# to fix performace CR#6401342 on sparc
%ifarch sparc
export EXTRA_CXXFLAGS="-features=tmplife -xO5 -xlinkopt -xF=lcldata,gbldata -Qoption postopt -dataredundancy=on,-tune:optimizer:data-alignment=4 -xbuiltin=%%all"
%else
export EXTRA_CXXFLAGS="-features=tmplife -xbuiltin=%%all"
%endif
%if %cc_is_gcc
%else
export CXX="${CXX} -norunpath"
%endif
%if %arch_sse2
%pwlib_sse2.build -d %name-%version/%sse2_arch
export PWLIBDIR=`pwd`/%name-%version/%sse2_arch/pwlib-%{pwlib.version}
export EXTRA_LDFLAGS="-L$PWLIBDIR/lib"
%opal_sse2.build -d %name-%version/%sse2_arch
%ekiga_sse2.build -d %name-%version/%sse2_arch
%endif
export PWLIBDIR=`pwd`/%name-%version/%base_arch/pwlib-%{pwlib.version}
%pwlib.build -d %name-%version/%base_arch
%opal.build -d %name-%version/%base_arch
%ekiga.build -d %name-%version/%base_arch
%install
rm -rf $RPM_BUILD_ROOT
%if %arch_sse2
%pwlib_sse2.install -d %name-%version/%sse2_arch
%opal_sse2.install -d %name-%version/%sse2_arch
%ekiga_sse2.install -d %name-%version/%sse2_arch
rm -r $RPM_BUILD_ROOT%{_libdir}/%sse2_arch/bonobo
rmdir $RPM_BUILD_ROOT%{_libdir}/%sse2_arch
%endif
%pwlib.install -d %name-%version/%base_arch
%opal.install -d %name-%version/%base_arch
%ekiga.install -d %name-%version/%base_arch
%if %can_isaexec
mkdir $RPM_BUILD_ROOT%{_bindir}/%{base_isa}
mv $RPM_BUILD_ROOT%{_bindir}/ekiga $RPM_BUILD_ROOT%{_bindir}/%{base_isa}
cd $RPM_BUILD_ROOT%{_bindir}
ln -s ../lib/isaexec ekiga
%endif
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/%{ekiga.name}/[a-z]*
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/%{ekiga.name}/%{ekiga.name}-[a-z]*.omf
%endif
# install man page
rm -rf $RPM_BUILD_ROOT%{_mandir}
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%clean
rm -rf $RPM_BUILD_ROOT
%post
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
echo '/usr/bin/update-desktop-database'
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
%postun
test -x $BASEDIR/lib/postrun || exit 0
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
echo '/usr/bin/update-desktop-database'
) | $BASEDIR/lib/postrun -b -u -c JDS
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
%post root
%include gconf-install.script
%preun root
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
echo ' exit 0';
echo '}';
echo 'umask 0022';
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
echo 'schemas="$SDIR/ekiga.schemas"';
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%hard %{_bindir}/*
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/%{ekiga.name}
%{_libdir}/bonobo
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/applications
%{_datadir}/applications/*
%dir %attr (0755, root, other) %{_datadir}/pixmaps
%{_datadir}/pixmaps/*
%{_datadir}/sounds
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/%{ekiga.name}/C
%{_datadir}/omf/%{ekiga.name}/%{ekiga.name}-C.omf
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*
%files root
%defattr (-, root, sys)
%dir %attr(0755, root, sys) %{_sysconfdir}
%{_sysconfdir}/gconf/schemas/ekiga.schemas
%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%attr (-, root, other) %{_datadir}/locale
%{_datadir}/gnome/help/%{ekiga.name}/[a-z]*
%{_datadir}/omf/%{ekiga.name}/*-[a-z]*.omf
%endif
%changelog
* Thu Mar 27 2008 - [email protected]
- Add file SUNWgnome-meeting.copyright.
* Thu Jan 3 2008 - [email protected]
- use gconf-install.script instead of an inline script
* Wed Nov 14 2007 - [email protected]
- Add Build/Requires SUNWavahi-bridge-dsd/-devel as required by ekiga.
* Thu Oct 11 2007 - [email protected]
- Remove install dependency on SUNWgnome-doc-utils and change the build
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils.
* Fri Sep 28 2007 - [email protected]
- delete SUNWxw* deps -- this pkg already depends on SUNWgnome-base-libs
* Thu Sep 13 2007 - [email protected]
- Add SGML format man page.
* Thu Aug 30 2007 - [email protected]
- simply cancel my last checkin about DBUS.
* Thu Jun 28 2007 - [email protected]
- pack the DBUS service files to pkg since DBUS enabled.
* Thu Apr 26 2007 - [email protected]
- set CXX to $CXX -norunpath because libtool swallows this option sometimes
and leaves compiler paths in the binaries, fixes 6497744
* Sat Apr 7 2007 - [email protected]
- correct if/else statement related to EXTRA_CXXFLAGS.
* Thu Apr 5 2007 - [email protected]
- explode ekiga.spec into individual spec files for each component and
add SSE2 optimized versions
* Tue Mar 13 2007 - [email protected]
- cancel part of last checking to make sure each env var change is solid and
worthful.
* Sun Mar 11 2007 - [email protected]
- add some optimization options to get more optimized binary
* Mon Nov 20 2006 - [email protected]
- add patch comment
* Thu Otc 26 2006 - [email protected]
- Move patch ekiga-06-opal-jitter.diff, ekiga-07-conststr.diff from
spec-files/Solaris/patches to spec-files/patches, rename the patch
to solve the patch number conflict there(the new name are
ekiga-11-opal-jitter.diff, ekiga-12-conststr.diff)
* Thu Sep 07 2006 - [email protected]
- Remove upstream patch, ekiga-08-pwlib-audiodev.diff.
* Mon Aug 28 2006 - [email protected]
- add patch ekiga-08-pwlib-audiodev.diff to fix the bug CR#6462870
* Fri Jul 14 2006 - [email protected]
- update %post/%postun/etc scripts to support diskless client setup,
part of 6448317
* Mon Jul 10 2006 - [email protected]
- change to use Ekiga 2.0.2 release
- add patch ekiga-08-pwlib-audiodev.diff to get Ekiga worked on SunRay
* Thu Jun 29 2006 - [email protected]
- update postrun scripts
* Fri Jun 16 2006 - [email protected]
- fix the libraries missed problem
* Sun Jun 11 2006 - [email protected]
- change group from other to bin/sys
* Mon Jun 01 2006 - [email protected]
- add BuildRequires SUNWlxml-python
- comment out Build/Requires SUNWdbus,SUNWdbus-devel since dbus's removed from
the build temporarily.
* Sat Jun 3 2006 - [email protected]
- use post/preun scripts to install schemas into the merged gconf files
* Fri Jun 02 2006 - [email protected]
- Add Build/Requires SUNWgnome-doc-utils/-devel otherwise build fails.
* Fri May 26 2006 - [email protected]
- add "-features=tmplife" in CXXFLAGS to fix hang problem
* Mon May 15 2006 - [email protected]
- add patch ekiga-05-pwlib-jitter.diff, ekiga-06-opal-jitter.diff
to fix CR#6416969, add patch ekiga-07-conststr.diff to
fix bug CR#6401342 on i386, and to fix this bug on sparc, add options in
CFLAGS, CXXFLAGS
* Fri Apr 14 2006 - [email protected]
- delete SUNW_Category tag to use the general one
- change all reference of "gnomemeeting" to "ekiga"
* Fri Mar 31 2006 - [email protected]
- initial version created