#
# spec file for package SUNWfoo
#
# Copyright 2006 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
####################################################################
# This is a simple example where we don't use Linux spec files
# For a template of a typical JDS package, where we can build
# the same stuff on Linux and Solaris, see SUNWtemplate.spec
####################################################################
# use the version number of the community package if possible, but
# don't include non-numerics, like 6.2b or 1.5.1alpha
# make sure the Source is a url that actually works
# Use -p1 unified diffs (see man patch)
SUNW_BaseDir: %{_basedir}
# Use the copyright-extractor script to create a copyright file.
# add build and runtime dependencies here:
# the base pkg should depend on the -root subpkg, if there is one:
SUNW_BaseDir: /
#Please DON'T create share pkgs, we stopped using them in JDS4
#%package share (delete me)
SUNW_BaseDir: %{_basedir}
%if %build_l10n
SUNW_BaseDir: %{_basedir}
#
## runtime pkgs:
#
# SUNWpackage-name: the main package, binaries, libs,
# file in %{_datadir} needed at runtime
# SUNWpackage-name-root: /etc, /var stuff
#
## development pkgs:
#
# SUNWpackage-name-devel: include files, pkgconfig files,
# files in %{_datadir}, like aclocal
# macros and gtk-docs and
# binaries only needed for development
# SUNWpackage-name-devel-root: any root files that are only needed
# for development
%prep
CPUS=1
fi
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
%{_bindir}/*
%{_libdir}/*
%{_mandir}/*/*
%{_sysconfdir}/*
%{_includedir}/*
#
# The files included here should match the ones removed in %install
#
%if %build_l10n