SUNWgnome-media.spec revision 19832
#
# spec file for packages SUNWgnome-media
#
# includes module(s): gst, gst-plugins-base, gst-plugins-good
#
# Copyright 2009 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
SUNW_BaseDir: %{_basedir}
# The package SUNWmkcd not in SUNWCuser metacluster
# Comment out this line until we work it out(CR6840919)
#Requires: SUNWmkcd
%if %with_hal
SUNW_BaseDir: /
SUNW_BaseDir: %{_basedir}
%if %build_l10n
%prep
# There seems to be an issue with the version of libtool that GStreamer is
# now using. The libtool script uses the echo and RM variables but does not
# define them, so setting them here addresses this.
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
# The taglib gst-plugins-good plugin does not build without setting this since
# AC_PROG_PATH does not work with CXX set to the full-path of the C++ compiler.
# So, overriding the setting fixes this.
#
export CXXFLAGS="%cxx_optflags64"
export RPM_OPT_FLAGS="$CFLAGS"
export PKG_CONFIG_PATH="%{_pkg_config_path64}"
export LDFLAGS="%{_ldflags} -lresolv"
export PKG_CONFIG_PATH="%{_builddir}/%name-%version/%{_arch64}/gstreamer-%{gst.version}/pkgconfig:%{_pkg_config_path64}"
# Need to disable building with these libraries since there is no 64-bit
# version available yet.
#
export GST_EXTRA_CONFIG="--disable-gnome_vfs"
unset LDFLAGS
export PKG_CONFIG_PATH="%{_builddir}/%name-%version/%{_arch64}/gstreamer-%{gst.version}/pkgconfig:%{_builddir}/%name-%version/%{_arch64}/gst-plugins-base-%{gst_plugins_base.version}/pkgconfig:%{_pkg_config_path64}"
# Need to disable building with these libraries since there is no 64-bit
# version available yet. We do not ship taglib, but the spec-file in SFE
# does not build 64-bit yet.
#
export GST_EXTRA_CONFIG="--disable-soup --disable-taglib"
export GST_EXTRA_CONFIG=""
export CXXFLAGS="%cxx_optflags"
export RPM_OPT_FLAGS="$CFLAGS"
export PKG_CONFIG_PATH="%{_pkg_config_path}"
export LDFLAGS="%_ldflags -lresolv"
export PKG_CONFIG_PATH="%{_builddir}/%name-%version/%{base_arch}/gstreamer-%{gst.version}/pkgconfig:%{_pkg_config_path}"
unset LDFLAGS
export PKG_CONFIG_PATH="%{_builddir}/%name-%version/%{base_arch}/gstreamer-%{gst.version}/pkgconfig:%{_builddir}/%name-%version/%{base_arch}/gst-plugins-base-%{gst_plugins_base.version}/pkgconfig:%{_pkg_config_path}"
# There seems to be an issue with the version of libtool that GStreamer is
# now using. The libtool script uses the echo and RM variables but does not
# define them, so setting them here addresses this.
# Rebuilding the gobject-introspection files requires resetting.
export PKG_CONFIG_PATH="%{_pkg_config_path64}"
export CFLAGS="%optflags64 -DANSICPP"
done
perl -pi -e 's,^toolsdir=.*,toolsdir=\${exec_prefix}/%{_arch64}/lib/gstreamer-%{gst_minmaj}/tools,' $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/pkgconfig/gstreamer-%{gst_minmaj}.pc
cd %{_builddir}
# Rebuilding the gobject-introspection files requires resetting.
export PKG_CONFIG_PATH="%{_pkg_config_path}"
export CFLAGS="%optflags -DANSICPP"
cd $RPM_BUILD_ROOT%{_bindir}
done
perl -pi -e 's,^toolsdir=.*,toolsdir=\${exec_prefix}/lib/gstreamer-%{gst_minmaj}/tools,' $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gstreamer-%{gst_minmaj}.pc
# RBAC related
# prof_attr(4)
Desktop Removable Media User:::Access removable media for desktop user:
Console User::::profiles=Desktop Removable Media User
EOF
%if %build_l10n
%else
# REMOVE l10n FILES
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%post
%if %build_l10n
- #6222302 : Remove gstreamer properties from yelp TOC
installed by the nautilus-media.spec file.
* Mon Aug 16 2004 shirley.woo@sun.com
- change .../sman1/*.1 permissions to 0755 for Solaris integration error
* Thu Jul 29 2004 brian.cameron@sun.com
- Fixed setting of PKG_CONFIG_PATH and CPPFLAGS so that they work when
gstreamer and gst-plugins have different version #'s.