update to 1.0 [release 1.0-1mamba;Fri Dec 31 2021]
This commit is contained in:
parent
375510480f
commit
134f538968
149
widelands.spec
149
widelands.spec
@ -1,5 +1,6 @@
|
||||
Name: widelands
|
||||
Version: 18
|
||||
Epoch: 1
|
||||
Version: 1.0
|
||||
Release: 1mamba
|
||||
Summary: A game like Settlers II
|
||||
Group: Graphical Desktop/Applications/Games
|
||||
@ -7,29 +8,27 @@ Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://widelands.sourceforge.net/
|
||||
#Source0: http://downloads.sourceforge.net/widelands/widelands-build-%{version}-source.tar.bz2
|
||||
#Source: http://downloads.sourceforge.net/widelands/widelands-build-%{version}-linuxi386.tar.bz2
|
||||
Source: https://launchpad.net/widelands/build%{version}/build-%{version}/+download/widelands-build%{version}-src.tar.bz2
|
||||
#Source: http://launchpad.net/widelands/build16/build16/+download/widelands-build%{version}-src.tar.bz2
|
||||
Source: https://launchpad.net/widelands/1.x/1.0/+download/widelands-%{version}.tar.gz
|
||||
Patch0: widelands.flagfix.patch
|
||||
Patch1: widelands-17-gcc-4.7.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libSDL2-devel
|
||||
BuildRequires: libSDL2_ttf-devel
|
||||
BuildRequires: libboost-devel
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libGL-devel
|
||||
BuildRequires: libglew-devel
|
||||
BuildRequires: liblua-devel
|
||||
BuildRequires: libglvnd-devel
|
||||
BuildRequires: libicu-devel
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libSDL-devel
|
||||
BuildRequires: libSDL_gfx-devel
|
||||
BuildRequires: libSDL_image-devel
|
||||
BuildRequires: libSDL_mixer-devel
|
||||
BuildRequires: libSDL_net-devel
|
||||
BuildRequires: libSDL_ttf-devel
|
||||
BuildRequires: libsdl2_image-devel
|
||||
BuildRequires: libsdl2_mixer-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
BuildRequires: libz-devel
|
||||
## AUTOBUILDREQ-END
|
||||
#BuildRequires: libSDL_gfx-devel >= 2.0.26
|
||||
BuildRequires: libglew-devel >= 1.9.0
|
||||
BuildRequires: ctags
|
||||
BuildRequires: desktop-file-utils
|
||||
@ -38,69 +37,40 @@ BuildRequires: gcc-c++
|
||||
BuildRequires: gettext
|
||||
BuildRequires: libboost-devel
|
||||
BuildRequires: make
|
||||
#BuildRequires: libggz-devel, libggz-client-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
In Widelands, you are the regent of a small tribe. You start out with nothing but your headquarters, a kind of castle in which all your resources are stored. Every member of your tribe will do his or her part to produce more resources - wood, food, iron, gold and more - to further this growth. But you are not alone in the world, and you will meet other tribes sooner or later. Some of them may be friendly and trade with you. However, if you want to rule the world, you will have to train soldiers and fight.. :°
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-build%{version}-src
|
||||
%setup -q
|
||||
#-D -T
|
||||
%patch1 -p1
|
||||
#%patch1 -p1
|
||||
|
||||
%build
|
||||
%cmake -d build ../ \
|
||||
-DLUA_LIBRARY=%{_libdir}/liblua.so.5.1 \
|
||||
-DLUA_INCLUDE_DIR=`pkg-config --variable=includedir lua5.1`
|
||||
#:<< _EOF
|
||||
%cmake -d build \
|
||||
-DWL_INSTALL_BASEDIR=%{_prefix} \
|
||||
-DWL_INSTALL_DATADIR=%{_datadir}/widelands
|
||||
|
||||
#../ \
|
||||
# -DLUA_LIBRARY=%{_libdir}/liblua.so.5.1 \
|
||||
# -DLUA_INCLUDE_DIR=`pkg-config --variable=includedir lua5.1`
|
||||
|
||||
%make
|
||||
# scons build=release \
|
||||
# build_id=%{version} \
|
||||
# install_prefix=%{_datadir}/games/%{name} \
|
||||
# bindir=%{_bindir} \
|
||||
# datadir=%{_datadir}/games/%{name} \
|
||||
# localedir=%{_datadir}/games/%{name} \
|
||||
# build_id=build-%{version}
|
||||
|
||||
## enable_ggz=1
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall -C build
|
||||
|
||||
#scons datadir=%{buildroot}%{_datadir}/games/%{name} \
|
||||
# bindir=%{buildroot}%{_bindir} \
|
||||
# localedir=%{buildroot}%{_datadir}/games/%{name} \
|
||||
# build_id=build-%{version} \
|
||||
# install
|
||||
|
||||
install -d -m0755 %{buildroot}%{_bindir}
|
||||
ln -s ../games/widelands %{buildroot}%{_bindir}/widelands
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/applications
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
|
||||
|
||||
install -m0644 pics/wl-ico-16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
|
||||
install -m0644 pics/wl-ico-32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
||||
install -m0644 pics/wl-ico-48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
||||
|
||||
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
||||
[Desktop Entry]
|
||||
Name=Widelands
|
||||
Comment=Open source realtime-strategy game
|
||||
Exec=/usr/bin/widelands
|
||||
Icon=/usr/share/icons/hicolor/48x48/apps/widelands.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=false
|
||||
Categories=Game;StrategyGame;
|
||||
EOF
|
||||
|
||||
#cd %{buildroot}
|
||||
#find usr/share/games/widelands/locale/ -maxdepth 1 -type d -name \*_\* | sed -n 's#\(usr/share/games/widelands/locale/\(.*\)_.*\)#%lang(\2) /\1#p' > %{_builddir}/%{name}/%{name}.files
|
||||
# Fix wrong locations of some installed files (upstream bug)
|
||||
# See also FS#72240
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
mv %{buildroot}%{_prefix}/{widelands,wl_map_object_info,wl_map_info,wl_create_spritesheet} %{buildroot}%{_bindir}
|
||||
mv %{buildroot}%{_prefix}/{VERSION,ChangeLog,CREDITS} %{buildroot}%{_datadir}/widelands
|
||||
mv %{buildroot}/share/* %{buildroot}%{_datadir}/
|
||||
rm -f %{buildroot}%{_prefix}/COPYING
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
@ -131,55 +101,22 @@ EOF
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/widelands
|
||||
%{_prefix}/games/widelands
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
|
||||
%dir %{_datadir}/games/widelands
|
||||
%{_datadir}/games/widelands/COPYING
|
||||
%{_datadir}/games/widelands/CREDITS
|
||||
%{_datadir}/games/widelands/ChangeLog
|
||||
%{_datadir}/games/widelands/VERSION
|
||||
%dir %{_datadir}/games/widelands/campaigns
|
||||
%{_datadir}/games/widelands/campaigns/cconfig
|
||||
%{_datadir}/games/widelands/campaigns/*.wmf
|
||||
#%dir %{_datadir}/games/widelands/doc
|
||||
%dir %{_datadir}/games/widelands/fonts
|
||||
%{_datadir}/games/widelands/fonts/*.ttf
|
||||
%{_datadir}/games/widelands/fonts/README.DejaVu
|
||||
%dir %{_datadir}/games/widelands/fonts/Widelands
|
||||
%{_datadir}/games/widelands/fonts/Widelands/FONTLOG
|
||||
%{_datadir}/games/widelands/fonts/Widelands/LICENSE
|
||||
%{_datadir}/games/widelands/fonts/Widelands/Widelands.ttf
|
||||
%dir %{_datadir}/games/widelands/locale
|
||||
%{_datadir}/games/widelands/locale/*
|
||||
%dir %{_datadir}/games/widelands/global
|
||||
%{_datadir}/games/widelands/global/*
|
||||
%dir %{_datadir}/games/widelands/maps
|
||||
%{_datadir}/games/widelands/maps/*.wmf
|
||||
%{_datadir}/games/widelands/maps/*/*.wmf/*
|
||||
%dir %{_datadir}/games/widelands/music
|
||||
%{_datadir}/games/widelands/music/*.ogg
|
||||
%dir %{_datadir}/games/widelands/pics
|
||||
%{_datadir}/games/widelands/pics/*
|
||||
%dir %{_datadir}/games/widelands/scripting
|
||||
%{_datadir}/games/widelands/scripting/*
|
||||
%dir %{_datadir}/games/widelands/sound
|
||||
%{_datadir}/games/widelands/sound/*
|
||||
%dir %{_datadir}/games/widelands/txts
|
||||
%{_datadir}/games/widelands/txts/*
|
||||
%dir %{_datadir}/games/widelands/tribes
|
||||
%{_datadir}/games/widelands/tribes/atlanteans
|
||||
%{_datadir}/games/widelands/tribes/barbarians
|
||||
%{_datadir}/games/widelands/tribes/empire
|
||||
%dir %{_datadir}/games/widelands/worlds
|
||||
%{_datadir}/games/widelands/worlds/blackland
|
||||
%{_datadir}/games/widelands/worlds/desert
|
||||
%{_datadir}/games/widelands/worlds/greenland
|
||||
%{_datadir}/games/widelands/worlds/winterland
|
||||
%{_bindir}/wl_create_spritesheet
|
||||
%{_bindir}/wl_map_info
|
||||
%{_bindir}/wl_map_object_info
|
||||
%dir %{_datadir}/widelands
|
||||
%{_datadir}/widelands/*
|
||||
%{_datadir}/applications/org.widelands.Widelands.desktop
|
||||
%{_datadir}/metainfo/org.widelands.Widelands.appdata.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/org.widelands.Widelands.png
|
||||
%{_mandir}/man6/widelands.6*
|
||||
%doc COPYING CREDITS
|
||||
#ChangeLog
|
||||
|
||||
%changelog
|
||||
* Fri Dec 31 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
|
||||
- update to 1.0
|
||||
|
||||
* Sat Mar 01 2014 Automatic Build System <autodist@mambasoft.it> 18-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user