mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-30 00:41:14 +00:00
40 lines
606 B
Text
40 lines
606 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
|
||
|
|
||
|
#
|
||
|
# Install commands (generate file list too)
|
||
|
#
|
||
|
%install
|
||
|
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
||
|
. %{gs_root}/Makefiles/GNUstep.sh
|
||
|
fi
|
||
|
|
||
|
make 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
|