[knapsen/f20] Initial commit

Mario Blättermann mariobl at fedoraproject.org
Thu Oct 31 09:03:52 UTC 2013


commit 052259ca2863c9b75c9a9216753bc9fa0c9c1c60
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date:   Thu Oct 31 10:03:50 2013 +0100

    Initial commit

 .gitignore            |    1 +
 knapsen-desktop.patch |    8 ++++++
 knapsen.spec          |   63 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 4 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..07a8c87 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/158488-knapsen-1.0.0.tar.gz
diff --git a/knapsen-desktop.patch b/knapsen-desktop.patch
new file mode 100644
index 0000000..65d72c5
--- /dev/null
+++ b/knapsen-desktop.patch
@@ -0,0 +1,8 @@
+--- src/knapsen.desktop	2013-05-05 11:12:57.000000000 +0200
++++ src/knapsen.desktop	2013-10-26 21:48:07.762315025 +0200
+@@ -7,4 +7,4 @@
+ Icon=knapsen
+ Type=Application
+ Terminal=false
+-Categories=Qt;KDE;Game;CardGame
++Categories=Qt;KDE;Game;CardGame;
diff --git a/knapsen.spec b/knapsen.spec
new file mode 100644
index 0000000..cae298c
--- /dev/null
+++ b/knapsen.spec
@@ -0,0 +1,63 @@
+Name:           knapsen
+Version:        1.0.0
+Release:        1%{?dist}
+Summary:        Schnapsen card game for KDE
+
+License:        GPLv3+
+URL:            http://kde-apps.org/content/show.php/Knapsen?content=158488
+Source0:        http://kde-apps.org/CONTENT/content-files/158488-%{name}-1.0.0.tar.gz
+Patch0:         %{name}-desktop.patch
+
+BuildRequires:  desktop-file-utils
+BuildRequires:  gettext
+BuildRequires:  kdebase-workspace-devel
+BuildRequires:  libkdegames-devel
+
+%description
+Schnapsen is the Austrian variant of the German card game Sixty-Six.
+
+%prep
+%setup -q
+cd src
+%patch0 -p1
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake_kde4} ../
+popd
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+make install DESTDIR=%{buildroot} -C %{_target_platform}
+%find_lang %{name}
+
+
+%check
+desktop-file-validate %{buildroot}/%{_datadir}/applications/kde4/%{name}.desktop
+
+%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 -f %{name}.lang
+%doc COPYING README
+%{_kde4_bindir}/%{name}
+%{_kde4_datadir}/applications/kde4/%{name}.desktop
+%{_kde4_datadir}/config.kcfg/%{name}.kcfg
+%{_kde4_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_kde4_appsdir}/%{name}/
+
+
+%changelog
+* Sat Oct 26 2013 Mario Blättermann <mariobl at fedoraproject.org> 1.0.0-1
+- Initial package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..271b037 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a629194329ae2bfe6a0386a2ef08b43e  158488-knapsen-1.0.0.tar.gz


More information about the scm-commits mailing list