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
|
Name: widelands
|
||||||
Version: 18
|
Epoch: 1
|
||||||
|
Version: 1.0
|
||||||
Release: 1mamba
|
Release: 1mamba
|
||||||
Summary: A game like Settlers II
|
Summary: A game like Settlers II
|
||||||
Group: Graphical Desktop/Applications/Games
|
Group: Graphical Desktop/Applications/Games
|
||||||
@ -7,29 +8,27 @@ Vendor: openmamba
|
|||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://widelands.sourceforge.net/
|
URL: http://widelands.sourceforge.net/
|
||||||
#Source0: http://downloads.sourceforge.net/widelands/widelands-build-%{version}-source.tar.bz2
|
Source: https://launchpad.net/widelands/1.x/1.0/+download/widelands-%{version}.tar.gz
|
||||||
#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
|
|
||||||
Patch0: widelands.flagfix.patch
|
Patch0: widelands.flagfix.patch
|
||||||
Patch1: widelands-17-gcc-4.7.patch
|
Patch1: widelands-17-gcc-4.7.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libSDL2-devel
|
||||||
|
BuildRequires: libSDL2_ttf-devel
|
||||||
|
BuildRequires: libboost-devel
|
||||||
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libgcc
|
BuildRequires: libgcc
|
||||||
BuildRequires: libGL-devel
|
|
||||||
BuildRequires: libglew-devel
|
BuildRequires: libglew-devel
|
||||||
BuildRequires: liblua-devel
|
BuildRequires: libglvnd-devel
|
||||||
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
BuildRequires: libSDL-devel
|
BuildRequires: libsdl2_image-devel
|
||||||
BuildRequires: libSDL_gfx-devel
|
BuildRequires: libsdl2_mixer-devel
|
||||||
BuildRequires: libSDL_image-devel
|
|
||||||
BuildRequires: libSDL_mixer-devel
|
|
||||||
BuildRequires: libSDL_net-devel
|
|
||||||
BuildRequires: libSDL_ttf-devel
|
|
||||||
BuildRequires: libstdc++6-devel
|
BuildRequires: libstdc++6-devel
|
||||||
BuildRequires: libz-devel
|
BuildRequires: libz-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
|
#BuildRequires: libSDL_gfx-devel >= 2.0.26
|
||||||
BuildRequires: libglew-devel >= 1.9.0
|
BuildRequires: libglew-devel >= 1.9.0
|
||||||
BuildRequires: ctags
|
BuildRequires: ctags
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
@ -38,69 +37,40 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: libboost-devel
|
BuildRequires: libboost-devel
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
#BuildRequires: libggz-devel, libggz-client-devel
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
|
|
||||||
%description
|
%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.. :°
|
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
|
%prep
|
||||||
%setup -q -n %{name}-build%{version}-src
|
%setup -q
|
||||||
#-D -T
|
#-D -T
|
||||||
%patch1 -p1
|
#%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake -d build ../ \
|
#:<< _EOF
|
||||||
-DLUA_LIBRARY=%{_libdir}/liblua.so.5.1 \
|
%cmake -d build \
|
||||||
-DLUA_INCLUDE_DIR=`pkg-config --variable=includedir lua5.1`
|
-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
|
%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
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall -C build
|
%makeinstall -C build
|
||||||
|
|
||||||
#scons datadir=%{buildroot}%{_datadir}/games/%{name} \
|
# Fix wrong locations of some installed files (upstream bug)
|
||||||
# bindir=%{buildroot}%{_bindir} \
|
# See also FS#72240
|
||||||
# localedir=%{buildroot}%{_datadir}/games/%{name} \
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
# build_id=build-%{version} \
|
mv %{buildroot}%{_prefix}/{widelands,wl_map_object_info,wl_map_info,wl_create_spritesheet} %{buildroot}%{_bindir}
|
||||||
# install
|
mv %{buildroot}%{_prefix}/{VERSION,ChangeLog,CREDITS} %{buildroot}%{_datadir}/widelands
|
||||||
|
mv %{buildroot}/share/* %{buildroot}%{_datadir}/
|
||||||
install -d -m0755 %{buildroot}%{_bindir}
|
rm -f %{buildroot}%{_prefix}/COPYING
|
||||||
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
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -131,55 +101,22 @@ EOF
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/widelands
|
%{_bindir}/widelands
|
||||||
%{_prefix}/games/widelands
|
%{_bindir}/wl_create_spritesheet
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_bindir}/wl_map_info
|
||||||
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
|
%{_bindir}/wl_map_object_info
|
||||||
%dir %{_datadir}/games/widelands
|
%dir %{_datadir}/widelands
|
||||||
%{_datadir}/games/widelands/COPYING
|
%{_datadir}/widelands/*
|
||||||
%{_datadir}/games/widelands/CREDITS
|
%{_datadir}/applications/org.widelands.Widelands.desktop
|
||||||
%{_datadir}/games/widelands/ChangeLog
|
%{_datadir}/metainfo/org.widelands.Widelands.appdata.xml
|
||||||
%{_datadir}/games/widelands/VERSION
|
%{_datadir}/icons/hicolor/*/apps/org.widelands.Widelands.png
|
||||||
%dir %{_datadir}/games/widelands/campaigns
|
%{_mandir}/man6/widelands.6*
|
||||||
%{_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
|
|
||||||
%doc COPYING CREDITS
|
%doc COPYING CREDITS
|
||||||
#ChangeLog
|
#ChangeLog
|
||||||
|
|
||||||
%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
|
* Sat Mar 01 2014 Automatic Build System <autodist@mambasoft.it> 18-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user