SUNWcompiz-fusion-main.spec revision 18861
#
# spec file for package SUNWcompiz-fusion-main.spec
#
# 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.
#
%if %build_l10n
SUNW_BaseDir: %{_basedir}
# these packages are only available on x86
# =========================================
# the base pkg should depend on the -root subpkg, if there is one:
SUNW_BaseDir: /
sUNW_BaseDir: %{_basedir}
%if %build_l10n
SUNW_BaseDir: %{_basedir}
%prep
# Ensure option code is regenerated by bcop XSLT
CPUS=1
fi
%if %build_l10n
automake -a -c -f
export CFLAGS="%optflags"
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%{_ldflags}"
--sysconfdir=%{_sysconfdir} \
--includedir=%{_includedir} \
#
# when not building -l10n packages, remove anything l10n related from
# $RPM_BUILD_ROOT
#
%if %build_l10n
%else
# REMOVE l10n FILES
%post
%{_sysconfdir}/*
%{_includedir}/*
%if %build_l10n
# endif for "ifnarch sparc"