Dominique Leuenberger 2009-05-01 21:54:17 +00:00 committed by Git OBS Bridge
parent 2ae913cc27
commit 47c943b093

View File

@ -40,7 +40,7 @@ perhaps will have a thought, what Widelands is all about.
sed -i 's#flagi#%{optflags}##' build/scons-tools/scons_configure.py
%build
export CCFLAGS="$RPM_OPT_FLAGS"
export extra_compile_flags=$RPM_OPT_FLAGS"
scons build=release datadir=%{_datadir}/%{name} bindir=%{_bindir} localedir=%{_datadir}/%{name}/locale build_id=%{build_id}
# ./build-widelands.sh
@ -63,27 +63,27 @@ find usr/share/widelands/locale/ -maxdepth 1 -type d -name \*_\* | sed -n 's#\(
%clean
rm -rf $RPM_BUILD_ROOT
%pre
# %%pre
# preparing system before update
cat << EOF | while read name; do rm -rf "%{_datadir}/widelands/maps/${name}.wmf"; done
Checkmate
Dry Riverbed
Elven Forests
Enemy in sight
Finlakes
Firegames
Four Castles
Glacier Lake
Golden Peninsula
Lake of tranquility
Plateau
Riverlands
The Oasis Triangle
The big lake
The long way
Two frontiers
War of the Valleys
EOF
# cat << EOF | while read name; do rm -rf "%{_datadir}/widelands/maps/${name}.wmf"; done
#Checkmate
#Dry Riverbed
#Elven Forests
#Enemy in sight
#Finlakes
#Firegames
#Four Castles
#Glacier Lake
#Golden Peninsula
#Lake of tranquility
#Plateau
#Riverlands
#The Oasis Triangle
#The big lake
#The long way
#Two frontiers
#War of the Valleys
#EOF
%files -f %{name}.files
%defattr(-,root,root,-)