tools-make/spec-debug-rules.template
Nicola Pero aec6bd0d0e Reviewed, optimized and simplified make clean and distclean; tidied up the rpm building; removed obsolete stlocaltz.sh file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@23480 72102866-910b-0410-8b05-ffd578937521
2006-09-13 04:01:28 +00:00

40 lines
695 B
Text

#
# Setup sources
#
%prep
%setup -n %{gs_name}-%{gs_version}
#
# Build commands
#
%build
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
. %{gs_root}/Library/Makefiles/GNUstep.sh
fi
if [ "%{gs_configure}" = "YES" ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_root}
fi
make debug=yes
#
# Install commands (generate file list too)
#
%install
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
. %{gs_root}/Library/Makefiles/GNUstep.sh
fi
make debug=yes \
INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{gs_install_dir} \
filelist=yes install
#
# Clean commands
#
%clean
rm -rf $RPM_BUILD_ROOT
#
# File list (generated by install)
#
%files -f %{gs_file_list}