]> err.no Git - sope/blob - gnustep-make/spec-rules.template
fixed inline compilation
[sope] / gnustep-make / spec-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
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 INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
28   GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{gs_install_dir} \
29   filelist=yes install
30
31 #
32 # Clean commands
33 #
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 #
38 # File list (generated by install)
39 #
40 %files -f file-list