5 Summary: Simulator Construction Gear.
10 Group: Libraries/Graphics
11 Source: %{name}-%{version}.tar.gz
13 BuildRoot: /tmp/%{name}-%{version}-%{rel}-root
14 Packager: Fill In As You Wish
18 This package contains a tools and libraries useful for constructing
19 simulation and visualization applications such as FlightGear or TerraGear.
25 %setup -n %{name}-%{version}
29 # Needed for snapshot releases.
30 if [ ! -f configure ]; then
31 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix
33 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
36 if [ "$SMP" != "" ]; then
37 JSMP = '"MAKE=make -k -j $SMP"'
44 [ -d ${RPM_BUILD_ROOT} ] && rm -rf ${RPM_BUILD_ROOT}
46 make prefix=${RPM_BUILD_ROOT}%{prefix} install
49 # Generating file lists and store them in file-lists
50 # Starting with the directory listings
52 find ${RPM_BUILD_ROOT}%{prefix}/{bin,include,lib} -type d | sed "s#^${RPM_BUILD_ROOT}#\%attr (-\,root\,root) \%dir #" > file-lists
53 %{?ETCDR:find ${RPM_BUILD_ROOT}%{!?SYSCF:%{prefix}}/etc -type d | sed "s#^${RPM_BUILD_ROOT}#\%attr (-\,root\,root) \%dir #" >> file-lists}
56 # Then, the file listings
58 echo "%defattr (-, root, root)" >> file-lists
59 %{?ETCDR:find ${RPM_BUILD_ROOT}%{!?SYSCF:%{prefix}}/etc/%{name}.conf -type f | sed -e "s#^${RPM_BUILD_ROOT}#%config #g" >> file-lists}
60 find ${RPM_BUILD_ROOT}%{prefix} -type f | sed -e "s#^${RPM_BUILD_ROOT}##g" >> file-lists
64 (cd ..; rm -rf %{name}-%{version} ${RPM_BUILD_ROOT})
68 %defattr (-, root, root)