]> git.pld-linux.org Git - packages/hedgewars.git/commitdiff
- up to 1.0.2 master
authorKrzysztof Mrozowicz <mrozowik@pld-linux.org>
Thu, 9 May 2024 20:51:21 +0000 (20:51 +0000)
committerKrzysztof Mrozowicz <mrozowik@pld-linux.org>
Thu, 9 May 2024 20:51:21 +0000 (20:51 +0000)
hedgewars-desktop.patch [deleted file]
hedgewars.spec

diff --git a/hedgewars-desktop.patch b/hedgewars-desktop.patch
deleted file mode 100644 (file)
index 1d9bd66..0000000
+++ /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
index 7a9c7d0a7712acc3d4a1c93c253948a48ad873b8..1a890058a4bca69e46d5ecb8f3ed49452095f2a9 100644 (file)
@@ -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
This page took 0.466305 seconds and 4 git commands to generate.