[packages/battleships] - updated to 2.13

qboosh qboosh at pld-linux.org
Sun Dec 1 20:56:50 CET 2024


commit 64e47767ec58221a71e2e985d0b400d94f68dce1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 1 20:45:19 2024 +0100

    - updated to 2.13

 battleships-ldflags.patch | 14 +++++++-------
 battleships.spec          | 24 +++++++++++++++++-------
 2 files changed, 24 insertions(+), 14 deletions(-)
---
diff --git a/battleships.spec b/battleships.spec
index 9be8c6d..fe433cc 100644
--- a/battleships.spec
+++ b/battleships.spec
@@ -1,12 +1,12 @@
 Summary:	Battleships against the computer (character-cell graphics)
 Summary(pl.UTF-8):	Gra w statki przeciwko komputerowi
 Name:		battleships
-Version:	2.9
-Release:	2
-License:	GPL
+Version:	2.13
+Release:	1
+License:	BSD
 Group:		Applications/Games
 Source0:	http://www.catb.org/~esr/bs/bs-%{version}.tar.gz
-# Source0-md5:	4d4eec59c1789cffacf367d993e724f4
+# Source0-md5:	ea60abdbce9283eee201c8c854aa9749
 Patch0:		%{name}-ldflags.patch
 URL:		http://www.catb.org/~esr/bs/
 BuildRequires:	ncurses-devel
@@ -20,10 +20,11 @@ character-cell graphics with a visual point-and-shoot interface.
 If you're using an xterm the mouse will work.
 
 %description -l pl.UTF-8
-Klasyczna gra w statki, tym razem przeciwko komputerowi. Posiada
-wizualny interfejs "wskaż i strzel" (ang. "point and shoot").
+Klasyczna gra w statki, tym razem przeciwko komputerowi. Wykorzystuje
+grafikę znakową i ma wizualny interfejs "wskaż i strzel" (ang. "point
+and shoot").
 
-Jeśli używasz xterm, mysz nie będzie działać.
+Mysz działa w xtermie.
 
 %prep
 %setup -q -n bs-%{version}
@@ -46,8 +47,17 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man6}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+
 %files
 %defattr(644,root,root,755)
 %doc README
 %attr(755,root,root) %{_bindir}/bs
+%{_datadir}/appdata/bs.adoc
+%{_desktopdir}/bs.desktop
+%{_iconsdir}/hicolor/32x32/apps/battleship.png
 %{_mandir}/man6/bs.6*
diff --git a/battleships-ldflags.patch b/battleships-ldflags.patch
index 8208278..739e600 100644
--- a/battleships-ldflags.patch
+++ b/battleships-ldflags.patch
@@ -1,11 +1,11 @@
---- bs-2.8/Makefile~	2010-10-19 12:33:34.000000000 +0200
-+++ bs-2.8/Makefile	2010-10-20 09:13:39.269953333 +0200
-@@ -10,7 +10,7 @@
+--- bs-2.13/Makefile.orig	2024-12-01 20:14:11.628052404 +0100
++++ bs-2.13/Makefile	2024-12-01 20:36:48.880699535 +0100
+@@ -11,7 +11,7 @@ CC = gcc
  DESTDIR = 
  
  bs: bs.c
--	$(CC) $(CFLAGS) -o bs bs.c $(TERMLIB)
-+	$(CC) $(CFLAGS) $(LDFLAGS) -o bs bs.c $(TERMLIB)
+-	$(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -o bs bs.c -lncurses
++	$(CC) $(CFLAGS) $(LDFLAGS) -DVERSION='"$(VERSION)"' -o bs bs.c $(TERMLIB)
  
- bs.6: bs.xml
- 	xmlto man bs.xml
+ # Note: to suppress the footers with timestamps being generated in HTML,
+ # we use "-a nofooter".
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/battleships.git/commitdiff/64e47767ec58221a71e2e985d0b400d94f68dce1



More information about the pld-cvs-commit mailing list