5 %setup -n %{gs_name}-%{gs_version}
11 if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
12 . %{gs_root}/Library/Makefiles/GNUstep.sh
14 if [ "%{gs_configure}" = "YES" ]; then
15 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_root}
21 # Install commands (generate file list too)
24 if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
25 . %{gs_root}/Library/Makefiles/GNUstep.sh
27 # build the non debugging file list
28 mkdir tmp-rpm-build-%{gs_name}
30 INSTALL_ROOT_DIR=`pwd`/tmp-rpm-build-%{gs_name} \
31 GNUSTEP_INSTALLATION_DIR=`pwd`/tmp-rpm-build-%{gs_name}/%{gs_install_dir} \
33 rm -rf tmp-rpm-build-%{gs_name}
35 # build the debugging file list
37 INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
38 GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{gs_install_dir} \
41 # Now filter the debugging file list against the non debugging one
44 # `-f file-list' gets the lines to match from file-list
45 # `-x' gets only matches which match whole lines
46 # `-v' inverts the matching, so lines which do not match are outputted
48 mv file-list-debug file-list.tmp
49 for file in `cat file-list`; do
50 grep -v -x $file file-list.tmp >> file-list-debug.tmp
51 mv file-list-debug.tmp file-list.tmp
54 rm -f file-list-debug.tmp
55 mv file-list.tmp file-list-debug
61 rm -rf $RPM_BUILD_ROOT
64 # File list (generated by install)
66 %files -f file-list-debug