Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 8493e90bfeb45239f5c7b33b6520a47c > files > 2

hedgewars-0.9.24.1-1.mga6.src.rpm

Name:		hedgewars
Version:	0.9.24.1
Release:	%mkrel 1
Summary:	Funny turn-based artillery game featuring fighting Hedgehogs
License:	GPLv2
Group:		Games/Strategy
URL:		http://www.hedgewars.org/
Source0:	http://www.hedgewars.org/download/releases/%{name}-src-%{version}.tar.bz2

BuildRequires:	cmake
BuildRequires:	ffmpeg-devel
BuildRequires:	fpc
BuildRequires:	pkgconfig(freeglut)
BuildRequires:	pkgconfig(lua) < 5.2
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(physfs)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
Requires:	%{name}-data = %{version}

%description
Hedgewars is a turn based strategy, artillery, action and comedy game,
featuring the antics of pink hedgehogs with attitude as they battle
from the depths of hell to the depths of space.

As commander, it's your job to assemble your crack team of hedgehog
soldiers and bring the war to your enemy.

%package data
Summary:	Games data for the hedgewars game
Group:		Games/Strategy
Conflicts:	hedgewars < 0.9.18
BuildArch:	noarch

%description data
This package contains data files for hedgewars game.

%prep
%autosetup -p1 -n %{name}-src-%{version}

%build
%cmake_qt5 \
	-DNOSERVER=TRUE \
	-DDATA_INSTALL_DIR="%{_gamesdatadir}/%{name}" \
	-Dtarget_binary_install_dir="%{_gamesbindir}" \
	-Dtarget_library_install_dir="%{_libdir}" \
	-DPHYSFS_SYSTEM=ON
%make_build

%install
%make_install -C build

install -D -m644 misc/%{name}_ico.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m644 misc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/512x512/apps/%{name}.png
rm -rf %{buildroot}%{_datadir}/pixmaps

mkdir -p %{buildroot}%{_datadir}/applications/
cat <<EOF >%{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Hedgewars
GenericName=Cartoony artillery game
Comment=Funny turn-based artillery game, featuring fighting Hedgehogs!
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;StrategyGame;Qt;
EOF

install -D -m644 man/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6

# remove unneeded devel libraries files
find %{buildroot} -name '*.so' -delete

%files
%doc ChangeLog.txt CREDITS README
%{_gamesbindir}/%{name}
%{_gamesbindir}/hwengine
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_libdir}/libavwrapper.so.*
%{_libdir}/libphyslayer.so.*
%{_mandir}/man6/%{name}.6*

%files data
%{_gamesdatadir}/%{name}/


%changelog
* Thu Sep 13 2018 zezinho <zezinho> 0.9.24.1-1.mga6
  (not released yet)
+ Revision: 1258824
- upgrade to allow online play mga#23570

* Tue May 02 2017 akien <akien> 0.9.22-4.mga6
+ Revision: 1098290
- Rebuild for ffmpeg 3.3

* Thu Mar 09 2017 akien <akien> 0.9.22-3.mga6
+ Revision: 1090870
- Add ArchLinux patch to fix compatibility with ffmpeg 3.0+
- Rebuild for ffmpeg 3.2.4

* Mon Feb 15 2016 umeabot <umeabot> 0.9.22-2.mga6
+ Revision: 960607
- Mageia 6 Mass Rebuild

* Thu Nov 05 2015 akien <akien> 0.9.22-1.mga6
+ Revision: 898029
- Version 0.9.22

* Fri Jan 09 2015 akien <akien> 0.9.21.1-1.mga5
+ Revision: 809631
- Version 0.9.21.1

* Sat Dec 27 2014 akien <akien> 0.9.21-1.mga5
+ Revision: 806611
- Version 0.9.21
- Install man page
- Build against system physfs

* Fri Nov 14 2014 akien <akien> 0.9.20.5-5.mga5
+ Revision: 797135
- Rebuild for ffmpeg 2.4

* Wed Oct 15 2014 umeabot <umeabot> 0.9.20.5-4.mga5
+ Revision: 740382
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.9.20.5-3.mga5
+ Revision: 680104
- Mageia 5 Mass Rebuild

* Wed Sep 10 2014 danf <danf> 0.9.20.5-2.mga5
+ Revision: 674482
- Fixed build for cmake 3.0
+ dams <dams>
- update cmake option for 'physfs' (spotted by Akien)

* Wed Feb 12 2014 dams <dams> 0.9.20.5-1.mga5
+ Revision: 589917
- new version 0.9.20.5
+ umeabot <umeabot>
- Mageia 4 Mass Rebuild

* Mon Sep 02 2013 fwang <fwang> 0.9.19.3-1.mga4
+ Revision: 474225
- new version 0.9.19.3

* Mon Jul 15 2013 fwang <fwang> 0.9.19.1-3.mga4
+ Revision: 454486
- fix build with ffmpeg 2.0
- rebuild for new ffmpeg

* Sat Jun 08 2013 wally <wally> 0.9.19.1-2.mga4
+ Revision: 440692
- replace build fix patch with one really from upstream

* Sat Jun 08 2013 wally <wally> 0.9.19.1-1.mga4
+ Revision: 440679
- add patch from upstream to fix i586 build
- new version 0.9.19.1
- use summary and description from upstream

* Mon Jun 03 2013 fwang <fwang> 0.9.18-3.mga4
+ Revision: 435965
- rebuild for new libpng

* Sat Jan 12 2013 umeabot <umeabot> 0.9.18-2.mga3
+ Revision: 353151
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Jan 08 2013 akien <akien> 0.9.18-1.mga3
+ Revision: 343089
- Changed BR from lua-devel to lua5.1-devel.
- Update to upstream release 0.9.18. Noticeable is the introduction of a Campaign mode.
- Full changelog: http://hedgewars.googlecode.com/hg/ChangeLog.txt
- BuildRequires added on ffmpeg-devel (new video recording feature)
- BuildRequires added on png-devel (for PNG screenshots)
+ obgr_seneca <obgr_seneca>
- Fixed typo in summary

* Sat Dec 10 2011 fwang <fwang> 0.9.17-2.mga2
+ Revision: 180217
- split data sub package

* Mon Nov 21 2011 obgr_seneca <obgr_seneca> 0.9.17-1.mga2
+ Revision: 170430
- new version 0.9.17

* Sat Sep 24 2011 obgr_seneca <obgr_seneca> 0.9.16-1.mga2
+ Revision: 147393
- new version

* Thu Jul 14 2011 obgr_seneca <obgr_seneca> 0.9.15-1.mga2
+ Revision: 124071
- new version 0.9.15
- cleaned spec file
- imported package hedgewars


* Mon Nov 15 2010 Jani Välimaa <wally@mandriva.org> 0.9.14.1-1mdv2010.1
+ Revision: 597795
- new version 0.9.14.1

* Sun Apr 04 2010 Jani Välimaa <wally@mandriva.org> 0.9.13-1mdv2010.1
+ Revision: 531441
- add missing BR
- new version 0.9.13

* Mon Nov 09 2009 Funda Wang <fwang@mandriva.org> 0.9.12-1mdv2010.1
+ Revision: 463331
- New version 0.9.12

* Sat May 30 2009 Frederik Himpe <fhimpe@mandriva.org> 0.9.11-1mdv2010.0
+ Revision: 381531
- update to new version 0.9.11

* Sat May 16 2009 Samuel Verschelde <stormi@mandriva.org> 0.9.10-3mdv2010.0
+ Revision: 376438
- fix icon size

* Sat May 16 2009 Samuel Verschelde <stormi@mandriva.org> 0.9.10-2mdv2010.0
+ Revision: 376395
- rebuild

* Sat May 16 2009 Samuel Verschelde <stormi@mandriva.org> 0.9.10-1mdv2010.0
+ Revision: 376358
- add missing buildrequires
- version 0.9.10
- add missing icons

* Sat Mar 21 2009 Emmanuel Andry <eandry@mandriva.org> 0.9.9-1mdv2009.1
+ Revision: 360006
- New version 0.9.9

* Tue Jan 13 2009 Zombie Ryushu <ryushu@mandriva.org> 0.9.8-1mdv2009.1
+ Revision: 328973
- New Version 0.9.8

* Mon Jan 05 2009 trem <trem@mandriva.org> 0.9.7-1mdv2009.1
+ Revision: 325153
- new release 0.9.7

* Sun Aug 10 2008 Funda Wang <fwang@mandriva.org> 0.9.6-1mdv2009.0
+ Revision: 270331
- add openssl-devel as BR
- clearify license
- New version 0.9.6

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Wed Jan 02 2008 Olivier Blin <oblin@mandriva.com> 0.8.1-2mdv2008.1
+ Revision: 140746
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

  + Emmanuel Andry <eandry@mandriva.org>
    - drop x-mandrivalinux tag


* Wed Jan 24 2007 Michael Scherer <misc@mandriva.org> 0.8.1-1mdv2007.0
+ Revision: 112942
- Import hedgewars