[packages/hedgewars] - up to 1.0.2

mrozowik mrozowik at pld-linux.org
Thu May 9 22:54:18 CEST 2024


commit c8ae573cd9eb4e90b0d031a77fb032db2c8fd606
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date:   Thu May 9 20:51:21 2024 +0000

    - up to 1.0.2

 hedgewars-desktop.patch | 22 -----------
 hedgewars.spec          | 99 ++++++++++++++++++++++---------------------------
 2 files changed, 45 insertions(+), 76 deletions(-)
---
diff --git a/hedgewars.spec b/hedgewars.spec
index 7a9c7d0..1a89005 100644
--- a/hedgewars.spec
+++ b/hedgewars.spec
@@ -1,47 +1,42 @@
 #
-%bcond_without	server		# build with local server
-#
-
-# there is no ghc on ppc
-%ifarch ppc
-%undefine	with_server
-%endif
+# Server requires some haskel components that are not available in PLD
 
 Summary:	hedgewars - free Worms-like turn based strategy game
 Summary(hu.UTF-8):	hedgewars - ingyenes Worms-szerű körökre osztott stratégiai játék
 Summary(pl.UTF-8):	hedgewars - strategia czasu rzeczywistego podobna do Worms
 Name:		hedgewars
-Version:	0.9.16
-Release:	1
+Version:	1.0.2
+Release:	0.2
 License:	GPL v2 + Public Domain fonts
 Group:		X11/Applications/Games
-Source0:	http://download.gna.org/hedgewars/hedgewars-src-%{version}.tar.bz2
-# Source0-md5:	04f28f454e370a101cbf0d82c6d39bce
-Patch0:		%{name}-desktop.patch
-URL:		http://www.hedgewars.org/
-BuildRequires:	QtCore-devel >= 4.4.0
-BuildRequires:	QtNetwork-devel
-BuildRequires:	QtSvg-devel >= 4.4.0
-BuildRequires:	SDL_image-devel >= 1.2
-BuildRequires:	SDL_mixer-devel >= 1.2
-BuildRequires:	SDL_net-devel >= 1.2.5
-BuildRequires:	SDL_ttf-devel >= 2.0
+Source0:	https://www.hedgewars.org/download/releases/%{name}-src-%{version}.tar.bz2
+# Source0-md5:	1a91a973201c91bba2a494d428cadfbf
+URL:		https://www.hedgewars.org/
+BuildRequires:	Qt5Core-devel
+BuildRequires:	Qt5Gui-devel
+BuildRequires:	Qt5Network-devel
+BuildRequires:	Qt5Widgets-devel
+BuildRequires:	SDL2_image-devel >= 2.0
+BuildRequires:	SDL2_mixer-devel >= 2.0
+BuildRequires:	SDL2_net-devel >= 2.0
+BuildRequires:	SDL2_ttf-devel >= 2.0
 BuildRequires:	cmake >= 2.8.0
 BuildRequires:	desktop-file-utils
 BuildRequires:	fpc >= 2.2.0
-%{?with_server:BuildRequires:	ghc}
-%{?with_server:BuildRequires:	ghc-dataenc}
-%{?with_server:BuildRequires:	ghc-hslogger}
-%{?with_server:BuildRequires:	ghc-bytestring-show}
-%{?with_server:BuildRequires:	gmp-devel}
+BuildRequires:	libpng-devel
 BuildRequires:	lua51-devel
 BuildRequires:	openssl-devel
-BuildRequires:	qt4-build
-BuildRequires:	qt4-linguist
-BuildRequires:	qt4-qmake
+BuildRequires:	physfs-devel
+BuildRequires:	qt5-build
+BuildRequires:	qt5-linguist
+BuildRequires:	qt5-qmake
 BuildRequires:	rpmbuild(macros) >= 1.577
 BuildRequires:	zlib-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires(post,postun):	desktop-file-utils
+Requires(post,postun):	gtk-update-icon-cache
+Requires:	hicolor-icon-theme
+
 
 %description
 Hedgewars is a free Worms-like turn based strategy game.
@@ -53,53 +48,49 @@ Hedgewars egy ingyenes Worms-szerű körökre osztott stratégiai játék.
 Hedgewars jest wolnodostępną strategią czasu rzeczywistego podobną do
 Worms.
 
-%package server
-Summary:	Network server for hedgewars
-Summary(pl.UTF-8):	Sieciowy serwer dla hedgewars
-Group:		X11/Applications/Games
-
-%description server
-Server for playing networked games of hedgewars.
+%post
+%update_icon_cache hicolor
+%update_desktop_database_post
 
-%description server -l pl.UTF-8
-Serwer do prowadzenia sieciowych gier hedgewars.
+%postun
+%update_icon_cache hicolor
+%update_desktop_database_postun
 
 %prep
 %setup -q -n %{name}-src-%{version}
-%patch0 -p1
 
 %build
+mkdir build
+cd build
 %cmake \
-	%{?with_server:-DWITH_SERVER=1} \
-	-DCMAKE_EXE_LINKER_FLAGS="-lz" \
-	.
+	-DNOSERVER=ON \
+	-DNOVIDEOREC=ON \
+	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+	..
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
-
+cd build
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install misc/hedgewars.desktop $RPM_BUILD_ROOT%{_desktopdir}
-install misc/hedgewars.png $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -p ../misc/hedgewars.png $RPM_BUILD_ROOT%{_pixmapsdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README Fonts_LICENSE.txt ChangeLog.txt
+%doc README.md Fonts_LICENSE.txt ChangeLog.txt
 %attr(755,root,root) %{_bindir}/hedgewars
 %attr(755,root,root) %{_bindir}/hwengine
+%attr(755,root,root) %{_libdir}/libphyslayer.so
+%attr(755,root,root) %{_libdir}/libphyslayer.so.1.0
 %{_datadir}/%{name}
-%{_pixmapsdir}/%{name}.png
-%{_desktopdir}/%{name}.desktop
-
-%if %{with server}
-%files server
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/hedgewars-server
-%endif
+%{_datadir}/appdata/hedgewars.appdata.xml
+%{_desktopdir}/hedgewars.desktop
+%{_pixmapsdir}/hedgewars.png
+%{_pixmapsdir}/hedgewars.xpm
diff --git a/hedgewars-desktop.patch b/hedgewars-desktop.patch
deleted file mode 100644
index 1d9bd66..0000000
--- a/hedgewars-desktop.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- hedgewars-src-0.9.16/misc/hedgewars.desktop.orig	2011-09-17 20:42:55.000000000 +0200
-+++ hedgewars-src-0.9.16/misc/hedgewars.desktop	2011-10-01 21:00:55.000000000 +0200
-@@ -1,7 +1,5 @@
- [Desktop Entry]
- Type=Application
--Version=1.0
--Encoding=UTF-8
- Name=Hedgewars
- GenericName=Fighting Hedgehogs
- GenericName[de]=Kämpfende Igel
-@@ -16,8 +14,9 @@
- GenericName[sk]=Bojujúci ježkovia
- GenericName[cs]=Bojující ježci
- GenericName[sv]=Stridande igelkottar
--Icon=hedgewars.png
-+Icon=hedgewars
- Exec=hedgewars
- Terminal=false
- StartupNotify=false
--Categories=Application;Game;StrategyGame;
-+Categories=Game;StrategyGame;
-+# vi: encoding=utf-8
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hedgewars.git/commitdiff/c8ae573cd9eb4e90b0d031a77fb032db2c8fd606



More information about the pld-cvs-commit mailing list