mirror of
https://abf.rosa.ru/djam/widelands.git
synced 2025-02-25 17:13:00 +00:00
420 lines
12 KiB
RPMSpec
420 lines
12 KiB
RPMSpec
%define name widelands
|
|
%define bld 17
|
|
%define version b%{bld}
|
|
%define Summary Settlers II clone
|
|
|
|
Name: %{name}
|
|
Version: %{version}
|
|
Release: 2
|
|
URL: http://www.widelands.org/
|
|
|
|
Source0: %{name}-build%{bld}-src.tar.bz2
|
|
Source1: %{name}.desktop
|
|
|
|
# fix "not find boost to build" issue
|
|
# patch from Open Build Service
|
|
Patch0: %{name}-build%{bld}_boostfix.diff
|
|
|
|
# lower gcc optimization from -O3 to O2
|
|
Patch1: widelands-0.17-cxxflags.patch
|
|
|
|
# fix build error
|
|
Patch2: widelands-0.17-format-not-string-literal.patch
|
|
|
|
License: GPLv2+
|
|
Group: Games/Strategy
|
|
Summary: %{Summary}
|
|
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libSDL_image-devel
|
|
BuildRequires: libSDL_net-devel
|
|
BuildRequires: libSDL_ttf-devel
|
|
BuildRequires: libSDL_mixer-devel
|
|
BuildRequires: libSDL_gfx-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libglew-devel
|
|
BuildRequires: zlib1-devel
|
|
BuildRequires: optipng
|
|
BuildRequires: pngrewrite
|
|
BuildRequires: ctags
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: cmake
|
|
BuildRequires: ggz-client-libs-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: lua-devel
|
|
BuildRequires: doxygen
|
|
BuildRequires: python-devel
|
|
|
|
Requires(post): ggz-client-libs
|
|
Requires(preun): ggz-client-libs
|
|
|
|
Requires: %{name}-basic-data
|
|
Requires: %{name}-maps
|
|
Requires: %{name}-i18n
|
|
Requires: %{name}-music
|
|
|
|
%description
|
|
Widelands is an open source real-time strategy game. It is built upon
|
|
libSDL and other open source libraries and is still under heavy development.
|
|
If you know Settlers I & II™ (© Bluebyte), you might already have a rough
|
|
idea what Widelands is about.
|
|
|
|
%files
|
|
%defattr(644,root,root,755)
|
|
%doc ChangeLog COPYING
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_iconsdir}/%{name}.png
|
|
%{_miconsdir}/%{name}.png
|
|
%{_liconsdir}/%{name}.png
|
|
%defattr(755,root,root,755)
|
|
%{_gamesbindir}/%{name}
|
|
|
|
#------------------------------------------------
|
|
|
|
%package -n %{name}-i18n
|
|
Summary: Translations for %{name}
|
|
Group: Games/Strategy
|
|
Requires: %{name}
|
|
|
|
%description -n %{name}-i18n
|
|
Files to play %{name} in other languages than English.
|
|
|
|
%files -n %{name}-i18n
|
|
%defattr(644,root,root,755)
|
|
%{_gamesdatadir}/%{name}/locale
|
|
|
|
#------------------------------------------------
|
|
|
|
%package -n %{name}-basic-data
|
|
Summary: Basic data set for %{name}
|
|
Group: Games/Strategy
|
|
Requires: %{name}
|
|
|
|
%description -n %{name}-basic-data
|
|
Basic data set used by %{name}. Without these files you will not be able to play.
|
|
|
|
%files -n %{name}-basic-data
|
|
%defattr(644,root,root,755)
|
|
%{_gamesdatadir}/%{name}/COPYING
|
|
%{_gamesdatadir}/%{name}/CREDITS
|
|
%{_gamesdatadir}/%{name}/ChangeLog
|
|
%{_gamesdatadir}/%{name}/VERSION
|
|
%{_gamesdatadir}/%{name}/campaigns
|
|
%{_gamesdatadir}/%{name}/fonts
|
|
%{_gamesdatadir}/%{name}/global
|
|
%{_gamesdatadir}/%{name}/pics
|
|
%{_gamesdatadir}/%{name}/scripting
|
|
%{_gamesdatadir}/%{name}/sound
|
|
%{_gamesdatadir}/%{name}/tribes
|
|
%{_gamesdatadir}/%{name}/txts
|
|
%{_gamesdatadir}/%{name}/worlds
|
|
|
|
#------------------------------------------------
|
|
|
|
%package -n %{name}-maps
|
|
Summary: Maps for %{name}
|
|
Group: Games/Strategy
|
|
Requires: %{name}
|
|
|
|
%description -n %{name}-maps
|
|
Maps for %{name}.
|
|
|
|
%files -n %{name}-maps
|
|
%defattr(644,root,root,755)
|
|
%{_gamesdatadir}/%{name}/maps
|
|
|
|
#------------------------------------------------
|
|
|
|
%package -n %{name}-music
|
|
Summary: Music for %{name}
|
|
Group: Games/Strategy
|
|
Requires: %{name}
|
|
|
|
%description -n %{name}-music
|
|
Music files for %{name}. These are not needed, but may improve fun while playing.
|
|
|
|
%files -n %{name}-music
|
|
%defattr(644,root,root,755)
|
|
%{_gamesdatadir}/%{name}/music
|
|
|
|
#------------------------------------------------
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{name}-build%{bld}-src
|
|
%patch0 -p1
|
|
%patch1 -p0
|
|
%patch2 -p1
|
|
|
|
%build
|
|
sed -i "1 i #include <unistd.h>" src/main.cc
|
|
%cmake -DCMAKE_BUILD_TYPE="Release" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DWL_BINDIR="games" \
|
|
-DWL_INSTALL_PREFIX="/usr" \
|
|
-DWL_INSTALL_DATADIR="share/games/%{name}" \
|
|
-DWL_INSTALL_LOCALEDIR="share/games/%{name}/locale" \
|
|
-DBoost_USE_STATIC_LIBS=OFF
|
|
|
|
%make
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
cd build
|
|
%makeinstall_std
|
|
cd ..
|
|
|
|
#icons
|
|
install -d %{buildroot}{%{_miconsdir},%{_liconsdir}}
|
|
install -m644 pics/wl-ico-16.png -D %{buildroot}%{_miconsdir}/%{name}.png
|
|
install -m644 pics/wl-ico-32.png -D %{buildroot}%{_iconsdir}/%{name}.png
|
|
install -m644 pics/wl-ico-48.png -D %{buildroot}%{_liconsdir}/%{name}.png
|
|
|
|
# .desktop file
|
|
install -m644 %{SOURCE1} -D %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
%changelog
|
|
* Fri Jun 1 2012 Anton Chernyshov <ach@rosalab.ru> b17-1rosa2012lts.0
|
|
- New upstream release
|
|
- Fixing BuildRequires
|
|
- Cleanup spec file
|
|
- Add music and i18n subpackages to Requires
|
|
- Add patch from Gentoo to lower optimisation gcc flags
|
|
- Add patch to solve problem with "format not a string literal" compilation error
|
|
|
|
* Mon Aug 15 2011 Andrey Bondrov <abondrov@mandriva.org> 2:b16-1mdv2011.0
|
|
+ Revision: 694599
|
|
- New version: b16
|
|
|
|
* Wed Dec 08 2010 Funda Wang <fwang@mandriva.org> 2:b15-5mdv2011.0
|
|
+ Revision: 615992
|
|
- add gentoo patches to fix build
|
|
|
|
+ Oden Eriksson <oeriksson@mandriva.com>
|
|
- the mass rebuild of 2010.1 packages
|
|
|
|
* Tue Apr 27 2010 Emmanuel Andry <eandry@mandriva.org> 2:b15-4mdv2010.1
|
|
+ Revision: 539388
|
|
- don't be strict on requires
|
|
|
|
* Mon Apr 26 2010 Emmanuel Andry <eandry@mandriva.org> 2:b15-3mdv2010.1
|
|
+ Revision: 539301
|
|
- fix locale path
|
|
- lower requires strictness
|
|
- add more requires
|
|
|
|
* Sun Apr 25 2010 Emmanuel Andry <eandry@mandriva.org> 2:b15-2mdv2010.1
|
|
+ Revision: 538788
|
|
- stricter requires and suggests
|
|
- fix cmake args
|
|
|
|
* Sun Apr 25 2010 Emmanuel Andry <eandry@mandriva.org> 2:b15-1mdv2010.1
|
|
+ Revision: 538656
|
|
- fix summary-ended-with-dot
|
|
- New version b15
|
|
- now uses cmake
|
|
|
|
* Fri Mar 19 2010 Emmanuel Andry <eandry@mandriva.org> 2:b14-3mdv2010.1
|
|
+ Revision: 525238
|
|
- split data into subpackages (discussed upstream)
|
|
- update description
|
|
- register game into ggz
|
|
|
|
* Mon Feb 08 2010 Anssi Hannula <anssi@mandriva.org> 2:b14-2mdv2010.1
|
|
+ Revision: 501882
|
|
- rebuild for new boost
|
|
|
|
* Sun Sep 27 2009 Emmanuel Andry <eandry@mandriva.org> 2:b14-1mdv2010.0
|
|
+ Revision: 450020
|
|
- New version Build 14 final
|
|
|
|
* Sat Aug 15 2009 Emmanuel Andry <eandry@mandriva.org> 2:b14-0.svn4484.1mdv2010.0
|
|
+ Revision: 416508
|
|
- New svn snapshot (pre b14 rc1)
|
|
|
|
* Thu Dec 04 2008 Emmanuel Andry <eandry@mandriva.org> 2:b13-1mdv2009.1
|
|
+ Revision: 310055
|
|
- Build 13 final
|
|
|
|
* Fri Nov 21 2008 Emmanuel Andry <eandry@mandriva.org> 2:b13-0.rc2.1mdv2009.1
|
|
+ Revision: 305538
|
|
- fix locale installation directory
|
|
- New version
|
|
- fix URL
|
|
- drop P0
|
|
- drop ggz BR
|
|
- drop perl provides
|
|
- update maps list
|
|
|
|
* Mon Jul 07 2008 Emmanuel Andry <eandry@mandriva.org> 2:b12-1mdv2009.0
|
|
+ Revision: 232510
|
|
- fix BR
|
|
- New version
|
|
- use fedora style license
|
|
- update P0
|
|
|
|
+ Pixel <pixel@mandriva.com>
|
|
- rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas
|
|
|
|
+ Olivier Blin <blino@mandriva.org>
|
|
- restore BuildRoot
|
|
|
|
+ Thierry Vignaud <tv@mandriva.org>
|
|
- kill re-definition of %%buildroot on Pixel's request
|
|
|
|
* Sun Dec 09 2007 Emmanuel Andry <eandry@mandriva.org> 2:b11-3mdv2008.1
|
|
+ Revision: 116577
|
|
- enable ggz
|
|
|
|
* Sat Dec 08 2007 Emmanuel Andry <eandry@mandriva.org> 2:b11-2mdv2008.1
|
|
+ Revision: 116561
|
|
+ rebuild (emptylog)
|
|
|
|
* Sat Dec 08 2007 Emmanuel Andry <eandry@mandriva.org> 2:b11-1mdv2008.1
|
|
+ Revision: 116550
|
|
- New version
|
|
- drop patches
|
|
- sync some parts of spec file with fedora
|
|
|
|
+ Thierry Vignaud <tv@mandriva.org>
|
|
- kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated'
|
|
|
|
* Thu Jul 26 2007 Emmanuel Andry <eandry@mandriva.org> 2:b10-2mdv2008.0
|
|
+ Revision: 55974
|
|
- use genuine tarball
|
|
- drop debian menu
|
|
- add patches from sourceforge
|
|
|
|
|
|
* Tue Mar 20 2007 Emmanuel Andry <eandry@mandriva.org> b10-1mdv2007.1
|
|
+ Revision: 146923
|
|
- Final version
|
|
|
|
* Thu Mar 15 2007 Emmanuel Andry <eandry@mandriva.org> 2:b10-0.svn20070315.1mdv2007.1
|
|
+ Revision: 144496
|
|
- New snapshot (hopefully the last before final?\195)
|
|
|
|
* Fri Mar 02 2007 Emmanuel Andry <eandry@mandriva.org> 2:b10-0.svn20070302.1mdv2007.1
|
|
+ Revision: 130883
|
|
- New svn snapshot
|
|
|
|
* Sun Feb 18 2007 Emmanuel Andry <eandry@mandriva.org> 2:b10-0.svn20070217.1mdv2007.1
|
|
+ Revision: 122206
|
|
- New svn snapshot
|
|
- spec file optimizations
|
|
|
|
* Sat Feb 03 2007 Anssi Hannula <anssi@mandriva.org> 2:b10-0.svn20070121.3mdv2007.1
|
|
+ Revision: 116084
|
|
- do not obsolete itself
|
|
|
|
+ Emmanuel Andry <eandry@mandriva.org>
|
|
- moving backward
|
|
- rename cvs to try fixing upgrade
|
|
|
|
* Wed Jan 24 2007 Emmanuel Andry <eandry@mandriva.org> 2:b10-0.svn20070121.2mdv2007.1
|
|
+ Revision: 112759
|
|
- Epoch 2 to fix my mess again (sorry)
|
|
- bump release
|
|
- fix version number
|
|
- New svn snapshot
|
|
|
|
* Mon Jan 15 2007 Emmanuel Andry <eandry@mandriva.org> 1:b10.0.svn20070114-2mdv2007.1
|
|
+ Revision: 108981
|
|
- fix versionning (thanks to misc)
|
|
use Epoch
|
|
|
|
* Sun Jan 14 2007 Emmanuel Andry <eandry@mandriva.org> svn20070114-1mdv2007.1
|
|
+ Revision: 108891
|
|
- New svn snapshot
|
|
drop patch 0
|
|
|
|
* Sun Jan 07 2007 Emmanuel Andry <eandry@mandriva.org> svn20070107-2mdv2007.1
|
|
+ Revision: 105268
|
|
- buildrequires optipng, pngrewrite
|
|
|
|
* Sun Jan 07 2007 Emmanuel Andry <eandry@mandriva.org> svn20070107-1mdv2007.1
|
|
+ Revision: 105262
|
|
- New svn snapshot
|
|
add patch from sourceforge to fix 64bits build
|
|
buildrequires ctags, astyle
|
|
|
|
* Sat Jan 06 2007 Emmanuel Andry <eandry@mandriva.org> svn20061210-2mdv2007.1
|
|
+ Revision: 104883
|
|
- rebuild
|
|
|
|
* Mon Dec 11 2006 Emmanuel Andry <eandry@mandriva.org> svn20061210-1mdv2007.1
|
|
+ Revision: 94570
|
|
- cleanup tarball
|
|
- New svn snapshot 20061210
|
|
- New svn snapshot, drop patch0
|
|
- bunzip2 patches
|
|
- Import widelands
|
|
|
|
* Wed Sep 13 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060725-6mdv2007.0
|
|
- fix icon name
|
|
|
|
* Sun Sep 10 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060725-5mdv2007.0
|
|
- fix desktop file path
|
|
|
|
* Sun Aug 27 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060725-4mdv2007.0
|
|
- rebuild because package disapeared from mirrors
|
|
|
|
* Wed Aug 09 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060725-3mdv2007.0
|
|
- added patch to fix localization (Thanks to Peter Schwanemann from Widelands Team)
|
|
|
|
* Mon Jul 31 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060725-2mdv2007.0
|
|
- added patch from sourceforge to avoid segfaulting
|
|
- enable localization
|
|
- spec optimizations
|
|
- applied official Widelands icons
|
|
|
|
* Wed Jul 26 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060725-1mdv2007.0
|
|
- new cvs version
|
|
|
|
* Tue Jul 18 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060717-1mdv2007.0
|
|
- new cvs version
|
|
|
|
* Mon Jul 17 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060708-5mdv2007.0
|
|
- fix xdg menu
|
|
|
|
* Sun Jul 16 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060708-4mdv2007.0
|
|
- Add obsolete and provides to ease upgrade
|
|
- add provides for perl modules (bug #23710)
|
|
- remove paragui-devel (only for devel purpose)
|
|
|
|
* Sat Jul 15 2006 Emmanuel Andry <eandry@mandriva.org> cvs20060708-3mdv2007.0
|
|
- fix versionning
|
|
|
|
* Wed Jul 12 2006 Emmanuel Andry <eandry@mandriva.org> b9half.20060708-2mdv2007.0
|
|
- reupload
|
|
|
|
* Sun Jul 09 2006 Emmanuel Andry <eandry@mandriva.org> b9half.20060708-1mdv2007.0
|
|
- cvs version
|
|
- add buildrequires
|
|
- xdg compliant
|
|
|
|
* Tue Feb 21 2006 Per Øyvind Karlsen <pkarlsen@mandriva.com> b9half-1mdk
|
|
- from Emmanuel Andry <eandry@free.fr> :
|
|
o fixed Source1 for rpmbuildupdate
|
|
o new release
|
|
o added BuildRequires SDL_mixer-devel and gettext-devel
|
|
o %%{1}mdv2007.1
|
|
|
|
* Sat Mar 26 2005 Emmanuel Andry <eandry@free.fr> b9-2mdk
|
|
- cosmetics
|
|
- fixed missing menu icons
|
|
|
|
* Mon Mar 07 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> b9-1mdk
|
|
- buildrequires
|
|
- from Emmanuel Andry <eandry@free.fr> :
|
|
o b9
|
|
|
|
* Mon Aug 09 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> b7-1mdk
|
|
- b7
|
|
|
|
* Thu Jul 29 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> b6-2mdk
|
|
- rebuild for new g++
|
|
- patch 0: fix compiling with new g++
|
|
|