Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > cef362aaf4f7494722e15fbeee2dcf0c > files > 5

widelands-b17-9.mga3.src.rpm

%define bversion	17

Name:		widelands
Epoch:		2
Version:	b%{bversion}
Release:	%mkrel 9
URL:		http://www.widelands.org/
Source0:	https://launchpad.net/widelands/build%{bversion}/build-%{bversion}/+download/%{name}-build%{bversion}-src.tar.bz2
# From upstream:
# https://bugs.launchpad.net/widelands/+bug/996965
Patch2:		widelands-build17-boost.patch
# From Mdv:
Patch3:		widelands-build17-Werror.patch
Patch4:		widelands-build17-src-includes.patch
License:	GPLv2+
Group:		Games/Strategy
Summary:	Settlers II clone
BuildRequires:	boost-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_net-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:  png-devel
BuildRequires:	optipng 
BuildRequires:	pngrewrite
BuildRequires:	ctags
BuildRequires:	gettext-devel
BuildRequires:	cmake
BuildRequires:	SDL_gfx-devel
BuildRequires:	ggz-client-libs-devel
BuildRequires:	libjpeg-devel
BuildRequires:	libtiff-devel
BuildRequires:	lua5.1-devel
BuildRequires:	doxygen
BuildRequires:  glew-devel
Requires:       %{name}-basic-data = %{epoch}:%{version}-%{release}
Requires:       %{name}-maps = %{epoch}:%{version}-%{release}
Suggests:       %{name}-i18n = %{epoch}:%{version}-%{release}
Suggests:       %{name}-music = %{epoch}:%{version}-%{release}

%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
%doc ChangeLog COPYING
%{_datadir}/applications/%{_real_vendor}-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_gamesbindir}/%{name}

#------------------------------------------------

%package -n %{name}-i18n
Summary:	Translations for %name
Group:		Games/Strategy
BuildArch:	noarch
Requires:	%{name} = %{epoch}:%{version}-%{release}

%description -n %{name}-i18n
Files to play %name in other languages than English.

%files -n %{name}-i18n
%{_gamesdatadir}/%{name}/locale

#------------------------------------------------

%package -n %{name}-basic-data
Summary:	Basic data set for %{name}
Group:		Games/Strategy
BuildArch:	noarch
Requires:	%{name} = %{epoch}:%{version}-%{release}

%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
%{_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
BuildArch:	noarch
Requires:	%{name} = %{epoch}:%{version}-%{release}

%description -n %{name}-maps
Maps for %{name}.

%files -n %{name}-maps
%{_gamesdatadir}/%{name}/maps

#------------------------------------------------

%package -n %{name}-music
Summary:	Music for %{name}
Group:		Games/Strategy
BuildArch:	noarch
Requires:	%{name} = %{epoch}:%{version}-%{release}

%description -n %{name}-music
Music files for %{name}. These are not needed, but may improve fun while playing.

%files -n %{name}-music
%{_gamesdatadir}/%{name}/music

#------------------------------------------------


%prep
%setup -q -n %{name}-build%{bversion}-src
%patch2 -p0
%patch3 -p1
%patch4 -p1

%build
%cmake -DCMAKE_BUILD_TYPE="Release" \
	-DWL_INSTALL_PREFIX="/usr" \
	-DWL_BINDIR="games" \
	-DWL_DATADIR="share/games/%{name}" \
	-DWL_LOCALEDIR="share/games/%{name}/locale"

%make

%install
%makeinstall_std -C build

#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

#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{_real_vendor}-%{name}.desktop << EOF
[Desktop Entry]
Name=Widelands
Comment=%{Summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;StrategyGame;
EOF


%changelog

* Thu Apr 11 2013 malo <malo> 2:b17-9.mga3
+ Revision: 409510
- rebuild for boost 1.53

* Mon Jan 14 2013 umeabot <umeabot> 2:b17-8.mga3
+ Revision: 385693
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Jan 11 2013 fwang <fwang> 2:b17-7.mga3
+ Revision: 345468
- rebuild for new SDL_gfx

* Thu Dec 20 2012 fwang <fwang> 2:b17-6.mga3
+ Revision: 333124
- rebuild for new boost

* Sun Aug 26 2012 malo <malo> 2:b17-5.mga3
+ Revision: 284200
- rebuild for new libGLEW

* Fri Aug 03 2012 fwang <fwang> 2:b17-4.mga3
+ Revision: 278117
- fix build with gcc 4.7
- rebuild for new boost

* Fri Jun 08 2012 dams <dams> 2:b17-3.mga3
+ Revision: 257763
- fix Requires as it was breaking installation

* Fri Jun 08 2012 dams <dams> 2:b17-2.mga3
+ Revision: 257712
- clean/update specfile

* Thu Jun 07 2012 wally <wally> 2:b17-1.mga3
+ Revision: 257032
- new version b17
- add P2 from upstream and P3 from Mdv to fix build
- drop P0 and P1
- tag more pkgs as noarch
- drop ggz stuff
- build against lua5.1
- clean .spec

* Sun Mar 11 2012 zezinho <zezinho> 2:b16-5.mga2
+ Revision: 222821
- patch to fix crash at campaign start #4834

* Mon Oct 03 2011 fwang <fwang> 2:b16-4.mga2
+ Revision: 151190
- rebuild for new glew

* Sun Sep 18 2011 fwang <fwang> 2:b16-3.mga2
+ Revision: 144985
- bump rel
- fix build with libpng 1.5

* Fri Sep 02 2011 tv <tv> 2:b16-2.mga2
+ Revision: 137787
- make the huge music & data subpackages be noarch

* Sun May 01 2011 shikamaru <shikamaru> 2:b16-1.mga1
+ Revision: 94164
- New version build16 - fix #895
- drop unneeded patches

  + wally <wally>
    - fix desktop file name (mga#954)

* Sun Feb 20 2011 eandry <eandry> 2:b15-6.mga1
+ Revision: 54721
- drop old conditional
- remove buildroot
- bump for upgrade
- imported package widelands


* 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 <oblin@mandriva.com>
    - 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++