]> err.no Git - sope/blob - gnustep-make/spec-debug-alone-rules.template
fixed inline compilation
[sope] / gnustep-make / spec-debug-alone-rules.template
1 #
2 # Setup sources
3 #
4 %prep
5 %setup -n %{gs_name}-%{gs_version}
6
7 #
8 # Build commands
9 #
10 %build
11 if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
12   . %{gs_root}/Library/Makefiles/GNUstep.sh 
13 fi
14 if [ "%{gs_configure}" = "YES" ]; then 
15   CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_root}
16 fi
17 make debug=yes
18
19 #
20 # Install commands (generate file list too)
21 #
22 %install
23 if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
24   . %{gs_root}/Library/Makefiles/GNUstep.sh 
25 fi
26
27 make debug=yes \
28   INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
29   GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{gs_install_dir} \
30   filelist=yes install
31
32 #
33 # Clean commands
34 #
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 #
39 # File list (generated by install)
40 #
41 %files -f file-list-debug