[knights] Initial import (#674180).
Julian Aloofi
julian at fedoraproject.org
Tue Feb 15 19:50:56 UTC 2011
commit 7286a5af6dc0d5fc7d384421cebf7e181923f3bc
Author: Julian Aloofi <julian.fedora at googlemail.com>
Date: Tue Feb 15 20:48:36 2011 +0100
Initial import (#674180).
.gitignore | 1 +
knights.spec | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 88 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ba30dea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/knights-2.2.0.tar.bz2
diff --git a/knights.spec b/knights.spec
new file mode 100644
index 0000000..4aa47eb
--- /dev/null
+++ b/knights.spec
@@ -0,0 +1,86 @@
+Name: knights
+Version: 2.2.0
+Release: 4%{?dist}
+Summary: A chess board for KDE
+
+Group: Amusements/Games
+# KDE e.V. may determine that future GPL versions are accepted
+License: GPLv2 or GPLv3
+URL: http://kde-apps.org/content/show.php/Knights?content=122046
+Source0: http://dl.dropbox.com/u/2888238/Knights/%{name}-%{version}.tar.bz2
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: kdegames-devel
+BuildRequires: gettext
+BuildRequires: desktop-file-utils
+Requires: gnuchess
+#from the KDE SIG page:
+%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
+
+
+%description
+Knights is a chess board for KDE that supports playing against
+computer engines that support the XBoard protocol like GNUChess and also
+multiplayer games over the internet on FICS. It features automatic rule
+checking, themes, and nice animations
+
+
+%prep
+%setup -q
+
+
+%build
+%{cmake_kde4} .
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+
+desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
+
+%find_lang %{name}
+
+#fix permissions with the desktop file
+chmod 644 %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
+
+
+#scriplet to update the icon cache
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+%postun
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+#end of scriptlet
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc README
+%{_bindir}/%{name}
+%{_kde4_appsdir}/%{name}
+%{_kde4_iconsdir}/hicolor/*/apps/%{name}.png
+%{_kde4_docdir}/HTML/*/%{name}
+%{_kde4_datadir}/applications/kde4/%{name}.desktop
+%{_kde4_configdir}/%{name}.knsrc
+%{_kde4_configdir}.kcfg/%{name}.kcfg
+
+
+
+%changelog
+* Sun Feb 13 2011 Julian Aloofi <julian at fedoraproject.org> 2.2.0-4
+- fix permissions of the desktop file
+
+* Mon Feb 07 2011 Julian Aloofi <julian at fedoraproject.org> 2.2.0-3
+- clarification on the license tag
+
+* Mon Feb 07 2011 Julian Aloofi <julian at fedoraproject.org> 2.2.0-2
+- using macros in Source0
+- build with the proper make flags
+
+* Mon Jan 31 2011 Julian Aloofi <julian at fedoraproject.org> 2.2.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..ee3d9e4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6196e8ef8d2e7c16e38307469708f7cf knights-2.2.0.tar.bz2
More information about the scm-commits
mailing list