[tuxanci] Initial import

Lubomir Rintel lkundrak at fedoraproject.org
Mon Dec 1 13:55:01 UTC 2014


commit b65b08355cb7f7617b3e5b12a0a46867fae94452
Author: Lubomir Rintel <lkundrak at v3.sk>
Date:   Mon Dec 1 14:54:59 2014 +0100

    Initial import

 .gitignore                                   |    1 +
 0001-SDLmain-is-no-more.patch                |   24 +++++++
 0002-dlopen-is-used-outside-server-too.patch |   28 ++++++++
 0003-Unbreak-DLIB_INSTALL_DIR.patch          |   25 +++++++
 0004-Make-the-icon-square.patch              |   34 +++++++++
 sources                                      |    1 +
 tuxanci.appdata.xml                          |   29 ++++++++
 tuxanci.desktop                              |   10 +++
 tuxanci.spec                                 |   93 ++++++++++++++++++++++++++
 9 files changed, 245 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..73059b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tuxanci-0.21.0.tar.bz2
diff --git a/0001-SDLmain-is-no-more.patch b/0001-SDLmain-is-no-more.patch
new file mode 100644
index 0000000..1f96061
--- /dev/null
+++ b/0001-SDLmain-is-no-more.patch
@@ -0,0 +1,24 @@
+From 2d36c2ba139ef25ad106e95c1eb850abe33f8edf Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Sun, 9 Nov 2014 23:36:12 +0100
+Subject: [PATCH 1/2] SDLmain is no more
+
+---
+ src/CMakeLists.txt | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 7f809df..7891c95 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -11,7 +11,6 @@ ELSE ( Server )
+ 	ELSE ( NO_Audio )
+ 		LINK_LIBRARIES ( ${ZZIP_LIBRARY} ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} )
+ 	ENDIF ( NO_Audio )
+-	LINK_LIBRARIES ( SDLmain )
+ ENDIF ( Server )
+ 
+ ###############################################################################
+-- 
+2.1.0
+
diff --git a/0002-dlopen-is-used-outside-server-too.patch b/0002-dlopen-is-used-outside-server-too.patch
new file mode 100644
index 0000000..fdd28ec
--- /dev/null
+++ b/0002-dlopen-is-used-outside-server-too.patch
@@ -0,0 +1,28 @@
+From 2fbe0d763f5b8a85d8ab869b79b0691425fa8509 Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Sun, 9 Nov 2014 23:38:33 +0100
+Subject: [PATCH 2/2] dlopen is used outside server too
+
+---
+ src/CMakeLists.txt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 7891c95..292333a 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -7,9 +7,9 @@ IF ( Server )
+ 	LINK_LIBRARIES (  ${ZZIP_LIBRARY} ${CMAKE_DL_LIBS} )
+ ELSE ( Server )
+ 	IF  ( NO_Audio )
+-		LINK_LIBRARIES ( ${ZZIP_LIBRARY} ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} )
++		LINK_LIBRARIES ( ${ZZIP_LIBRARY} ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} ${CMAKE_DL_LIBS} )
+ 	ELSE ( NO_Audio )
+-		LINK_LIBRARIES ( ${ZZIP_LIBRARY} ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} )
++		LINK_LIBRARIES ( ${ZZIP_LIBRARY} ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${SDLIMAGE_LIBRARY} ${SDLTTF_LIBRARY} ${CMAKE_DL_LIBS} )
+ 	ENDIF ( NO_Audio )
+ ENDIF ( Server )
+ 
+-- 
+2.1.0
+
diff --git a/0003-Unbreak-DLIB_INSTALL_DIR.patch b/0003-Unbreak-DLIB_INSTALL_DIR.patch
new file mode 100644
index 0000000..83844e2
--- /dev/null
+++ b/0003-Unbreak-DLIB_INSTALL_DIR.patch
@@ -0,0 +1,25 @@
+From d76834d7832d984fdf2ff53babd8a6f7e88ace24 Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Mon, 10 Nov 2014 00:30:14 +0100
+Subject: [PATCH] Unbreak -DLIB_INSTALL_DIR
+
+---
+ CMakeLists.txt | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9c128c0..b7abee8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -28,8 +28,6 @@ SET ( CMAKE_INSTALL_PREFIX "/usr/local/" CACHE PATH "Install path prefix" )
+ SET ( CMAKE_DOC_PATH "${CMAKE_INSTALL_PREFIX}/share/doc" CACHE PATH "Data path prefix" )
+ SET ( CMAKE_LOCALE_PATH "${CMAKE_INSTALL_PREFIX}/share/locale" CACHE PATH "Locale path prefix" )
+ SET ( CMAKE_DATA_PATH "${CMAKE_INSTALL_PREFIX}/share/" CACHE PATH "Data path prefix" )
+-SET ( CMAKE_LIB_PATH "${CMAKE_INSTALL_PREFIX}/lib/" CACHE PATH "Library path prefix" )
+-SET ( LIB_INSTALL_DIR "${CMAKE_LIB_PATH}" )
+ ###############################################################################
+ # BASIC PROJECT VALUES
+ ###############################################################################
+-- 
+2.1.0
+
diff --git a/0004-Make-the-icon-square.patch b/0004-Make-the-icon-square.patch
new file mode 100644
index 0000000..295d273
--- /dev/null
+++ b/0004-Make-the-icon-square.patch
@@ -0,0 +1,34 @@
+From 8e1a6516a85e400283fe5b411f7793e024eb9705 Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Mon, 10 Nov 2014 09:01:46 +0100
+Subject: [PATCH] Make the icon square
+
+---
+ data/tuxanci.svg | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/data/tuxanci.svg b/data/tuxanci.svg
+index 927d3ec..5a1e4c0 100644
+--- a/data/tuxanci.svg
++++ b/data/tuxanci.svg
+@@ -10,7 +10,7 @@
+    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+    width="311.32681"
+-   height="193.36264"
++   height="311.32681"
+    id="svg2"
+    inkscape:label="Pozadí"
+    sodipodi:version="0.32"
+@@ -564,7 +564,7 @@
+      inkscape:label="Vrstva 1"
+      inkscape:groupmode="layer"
+      id="layer1"
+-     transform="translate(-67.396792,-73.22983)">
++     transform="translate(-67.396792,-30)">
+     <g
+        id="g2810"
+        transform="translate(10.101525,32.324881)">
+-- 
+2.1.0
+
diff --git a/sources b/sources
index e69de29..4721e9c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a9012b55bbac7e5f4ce7cd58022334e5  tuxanci-0.21.0.tar.bz2
diff --git a/tuxanci.appdata.xml b/tuxanci.appdata.xml
new file mode 100644
index 0000000..79ed0e1
--- /dev/null
+++ b/tuxanci.appdata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+	<id type="desktop">tuxanci.desktop</id>
+	<name>Tuxánci</name>
+	<summary>A First Tux Shooter Game</summary>
+	<developer_name>Oroborus</developer_name>
+	<developer_name>helb</developer_name>
+	<developer_name>xHire</developer_name>
+	<developer_name>paces</developer_name>
+	<developer_name>Timoo</developer_name>
+	<developer_name>avp8</developer_name>
+	<metadata_license>CC0</metadata_license>
+	<project_license>GPL-2.0</project_license>
+	<description>
+		<p>
+			Tuxánci is a first tux shooter game supporting single player and multiplayer
+			modes both on a single computer and over the network.
+		</p>
+	</description>
+	<screenshots>
+		<screenshot>http://www.tuxanci.org/_media/tuxanci-ng3.jpg</screenshot>
+		<screenshot type="default">http://www.tuxanci.org/_media/tuxanci-ng4.jpg</screenshot>
+		<screenshot>http://www.tuxanci.org/_media/tuxanci-ng5.jpg</screenshot>
+		<screenshot>http://www.tuxanci.org/_media/tuxanci-ng6.jpg</screenshot>
+		<screenshot>http://www.tuxanci.org/_media/tuxanci-ng7.jpg</screenshot>
+	</screenshots>
+	<url type="homepage">http://www.tuxanci.org/en/start</url>
+	<updatecontact>lkundrak at v3.sk</updatecontact>
+</application>
diff --git a/tuxanci.desktop b/tuxanci.desktop
new file mode 100644
index 0000000..14b9413
--- /dev/null
+++ b/tuxanci.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Tuxánci
+GenericName=Tuxánci Game
+Comment=First Tux Shooter Game
+Exec=tuxanci
+Icon=tuxanci
+Terminal=false
+Type=Application
+Categories=Game;ActionGame;KidsGame;
+StartupNotify=true
diff --git a/tuxanci.spec b/tuxanci.spec
new file mode 100644
index 0000000..2e42f11
--- /dev/null
+++ b/tuxanci.spec
@@ -0,0 +1,93 @@
+Name:           tuxanci
+Version:        0.21.0
+Release:        1%{?dist}
+Summary:        First tux shooter multiplayer network game
+
+Group:          Amusements/Games
+License:        GPLv2
+URL:            http://www.tuxanci.org/en/start
+Source0:        http://download.tuxanci.org/tuxanci-0.21.0.tar.bz2
+Source1:        tuxanci.desktop
+Source2:        tuxanci.appdata.xml
+Patch1:         0001-SDLmain-is-no-more.patch
+Patch2:         0002-dlopen-is-used-outside-server-too.patch
+Patch3:         0003-Unbreak-DLIB_INSTALL_DIR.patch
+Patch4:         0004-Make-the-icon-square.patch
+
+BuildRequires:  zziplib-devel
+BuildRequires:  cmake
+BuildRequires:  SDL-devel
+BuildRequires:  SDL_image-devel
+BuildRequires:  SDL_ttf-devel
+BuildRequires:  SDL_mixer-devel
+BuildRequires:  desktop-file-utils
+BuildRequires:  inkscape
+BuildRequires:  /usr/bin/appstream-util
+
+%description
+Tuxanci is a first tux shooter game supporting single player and multiplayer 
+modes both on a single computer and over the network.
+
+
+%prep
+%setup -q
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+
+
+%build
+%cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir} .
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+
+# Install icon
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{scalable,48x48}/apps
+install -pm644 data/tuxanci.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
+inkscape --export-png=%{buildroot}%{_datadir}/icons/hicolor/48x48/apps/tuxanci.png \
+        --export-width=48 data/tuxanci.svg
+
+# Launcher
+ln -s tuxanci-%{version} %{buildroot}%{_bindir}/tuxanci
+desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
+
+# Appdata
+mkdir -p %{buildroot}%{_datadir}/appdata/
+install -pm644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/
+appstream-util validate-relax --nonet \
+        %{buildroot}%{_datadir}/appdata/tuxanci.appdata.xml
+
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+        /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+        /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%files
+%{_bindir}/tuxanci
+%{_bindir}/tuxanci-%{version}
+%{_libdir}/tuxanci-%{version}
+%{_datadir}/tuxanci-%{version}
+%{_datadir}/icons/hicolor
+%{_datadir}/applications/tuxanci.desktop
+%{_datadir}/appdata/tuxanci.appdata.xml
+%doc %{_docdir}/tuxanci-%{version}
+
+
+%changelog
+* Mon Nov 10 2014 Lubomir Rintel <lkundrak at v3.sk> - 0.21.0-1
+- Initial packaging


More information about the scm-commits mailing list