Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-backports-src > by-pkgid > 9166751b98294f2df3f744772b9c3e98 > files > 3

widelands-b19-1.mga5.src.rpm

%define bversion	19

# Comment out when not prerel
#define prerel		rc1

%define rel		1

Name:		widelands
Summary:	Settlers II clone
Epoch:		2
Version:	b%{bversion}
Release:	%mkrel %{?prerel:0.%prerel.}%{rel}
License:	GPLv2+
Group:		Games/Strategy
URL:		http://www.widelands.org/
Source0:	https://launchpad.net/widelands/build%{bversion}/build%{bversion}%{?prerel:-%prerel}/+download/%{name}-build%{bversion}%{?prerel:-%prerel}-src.tar.bz2
# Simple script to launch the binary, as it is not in the path
Source1:	%{name}
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	ctags
BuildRequires:	doxygen
BuildRequires:	gettext-devel
#BuildRequires:	ggz-client-libs-devel
BuildRequires:	glew-devel
BuildRequires:	libjpeg-devel
BuildRequires:	libtiff-devel
BuildRequires:	lua-devel
BuildRequires:	minizip-devel
BuildRequires:	optipng
BuildRequires:	png-devel
BuildRequires:	pngrewrite
BuildRequires:	sdl2_gfx-devel
BuildRequires:	sdl2_image-devel
BuildRequires:	sdl2_mixer-devel
BuildRequires:	sdl2_net-devel
BuildRequires:	sdl2_ttf-devel
Requires:	%{name}-basic-data = %{epoch}:%{version}-%{release}
Requires:	%{name}-maps = %{epoch}:%{version}-%{release}
Recommends:	%{name}-i18n = %{epoch}:%{version}-%{release}
Recommends:	%{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
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}
%{_gamesdatadir}/%{name}/wl*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

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

%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}/data/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}/data/campaigns
%{_gamesdatadir}/%{name}/data/i18n
%{_gamesdatadir}/%{name}/data/images
%{_gamesdatadir}/%{name}/data/scripting
%{_gamesdatadir}/%{name}/data/shaders
%{_gamesdatadir}/%{name}/data/sound
%{_gamesdatadir}/%{name}/data/tribes
%{_gamesdatadir}/%{name}/data/txts
%{_gamesdatadir}/%{name}/data/world

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

%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}/data/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}/data/music

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


%prep
%setup -q -n %{name}-build%{bversion}%{?prerel:-%prerel}-src

%build
%cmake -DCMAKE_BUILD_TYPE="Release" \
	-DCMAKE_INSTALL_PREFIX="%{_gamesdatadir}/%{name}"

%make_build

%install
%make_install -C build

#icons
install -d %{buildroot}{%{_miconsdir},%{_liconsdir}}
install -m644 data/images/logos/wl-ico-16.png -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 data/images/logos/wl-ico-32.png -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 data/images/logos/wl-ico-48.png -D %{buildroot}%{_liconsdir}/%{name}.png

# a simple wrapper script as the binary must be in the data dir
mkdir -p %{buildroot}%{_gamesbindir}
install -T -m 755  %{SOURCE1} %{buildroot}%{_gamesbindir}/%{name}

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


%changelog
* Sun Nov 13 2016 zezinho <zezinho> 2:b19-1.mga5
+ Revision: 1066926
- fix build with MGA6 CMake
- copy for backport

* Sat Nov 12 2016 zezinho <zezinho> 2:b19-1.mga6
+ Revision: 1066844
- fix build dir
- final release of build 19

* Fri Nov 11 2016 zezinho <zezinho> 2:b19-0.rc1.4.mga6
+ Revision: 1066592
- write summary as it is replaced by debug package summary

* Tue Nov 08 2016 zezinho <zezinho> 2:b19-0.rc1.3.mga6
+ Revision: 1065953
- fix summary for icon

* Sun Nov 06 2016 wally <wally> 2:b19-0.rc1.2.mga6
+ Revision: 1065499
- use our default CMake build type (RelWithDebInfo)

* Fri Nov 04 2016 zezinho <zezinho> 2:b19-0.rc1.1.mga6
+ Revision: 1065415
- fix files list
- new release b19 RC1

  + umeabot <umeabot>
    - Mageia 6 Mass Rebuild

* Mon Nov 23 2015 zezinho <zezinho> 2:b18-8.mga6
+ Revision: 905063
- remove abandonned ggz dep

* Thu Aug 27 2015 sander85 <sander85> 2:b18-7.mga6
+ Revision: 870206
- Rebuild for glew 1.13.0

* Wed Jun 24 2015 akien <akien> 2:b18-6.mga6
+ Revision: 842180
- Rebuild for GLEW 1.12

* Wed Oct 15 2014 umeabot <umeabot> 2:b18-5.mga5
+ Revision: 743894
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 2:b18-4.mga5
+ Revision: 690309
- Mageia 5 Mass Rebuild

  + tv <tv>
    - s/uggests:/Recommends:/

* Mon Sep 08 2014 luigiwalser <luigiwalser> 2:b18-3.mga5
+ Revision: 673565
- rebuild for glew

* Sat Feb 22 2014 wally <wally> 2:b18-1.mga5
+ Revision: 595682
- new version b18

* Sun Feb 16 2014 wally <wally> 2:b18-0.rc1.1.mga5
+ Revision: 592753
- new version b18 rc1
- drop unneeded patches
- build with system minizip

* Sat Feb 15 2014 luigiwalser <luigiwalser> 2:b17-14.mga5
+ Revision: 591746
- rebuild for SDL_gfx

* Sat Oct 19 2013 umeabot <umeabot> 2:b17-13.mga5
+ Revision: 530467
- Mageia 4 Mass Rebuild

* Wed Jul 24 2013 sander85 <sander85> 2:b17-12.mga4
+ Revision: 457726
- Rebuild for new glew

* Mon Jul 08 2013 fwang <fwang> 2:b17-11.mga4
+ Revision: 451286
- rebuild for new boost

* Tue Jun 04 2013 fwang <fwang> 2:b17-10.mga4
+ Revision: 436932
- rebuild for new libpng

* 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++