2001-01-16 19:25:49 +00:00
|
|
|
#
|
|
|
|
# Setup sources
|
|
|
|
#
|
|
|
|
%prep
|
|
|
|
%setup -n %{gs_name}-%{gs_version}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build commands
|
|
|
|
#
|
|
|
|
%build
|
|
|
|
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
|
|
|
. %{gs_root}/Makefiles/GNUstep.sh
|
|
|
|
fi
|
2001-01-17 11:20:29 +00:00
|
|
|
if [ "%{gs_configure}" = "YES" ]; then
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_root}
|
|
|
|
fi
|
2001-01-16 19:25:49 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
#
|
|
|
|
# Install commands (generate file list too)
|
|
|
|
#
|
|
|
|
%install
|
|
|
|
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
|
|
|
|
. %{gs_root}/Makefiles/GNUstep.sh
|
|
|
|
fi
|
|
|
|
|
2001-01-17 18:46:07 +00:00
|
|
|
make INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
|
2001-01-16 19:25:49 +00:00
|
|
|
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
|