mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-06 11:50:42 +00:00
41 lines
636 B
Text
41 lines
636 B
Text
|
#
|
||
|
# Setup sources
|
||
|
#
|
||
|
%prep
|
||
|
%setup -n %{gs_name}-%{gs_version}
|
||
|
|
||
|
#
|
||
|
# Build commands
|
||
|
#
|
||
|
%build
|
||
|
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
||
|
. %{gs_root}/Makefiles/GNUstep.sh
|
||
|
fi
|
||
|
# Argh - this doesn't work
|
||
|
CFLAGS=$RPM_OPT_FLAGS
|
||
|
make debug=yes
|
||
|
|
||
|
#
|
||
|
# Install commands (generate file list too)
|
||
|
#
|
||
|
%install
|
||
|
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
||
|
. %{gs_root}/Makefiles/GNUstep.sh
|
||
|
fi
|
||
|
|
||
|
make debug=yes \
|
||
|
GNUSTEP_INSTALL_BASE=$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 file-list-debug
|