[berusky2/f16] Initial commit
Martin Stransky
stransky at fedoraproject.org
Thu Sep 8 05:13:29 UTC 2011
commit 0ca01ee3769c61db6121fe2234c4792538a22eca
Author: Martin Stransky <stransky at anakreon.cz>
Date: Thu Sep 8 07:13:16 2011 +0200
Initial commit
berusky2.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
2 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/berusky2.spec b/berusky2.spec
new file mode 100644
index 0000000..064de5a
--- /dev/null
+++ b/berusky2.spec
@@ -0,0 +1,91 @@
+Name: berusky2
+Version: 0.5
+Release: 1%{?dist}
+License: GPLv2+
+Summary: Sokoban clone
+Group: Amusements/Games
+Source: http://www.anakreon.cz/download/%{name}-%{version}.tar.gz
+URL: http://www.anakreon.cz/en/Berusky2.htm
+
+Requires: berusky2-data >= 0.5
+BuildRequires: SDL-devel
+BuildRequires: SDL_image-devel
+BuildRequires: gtk2-devel
+BuildRequires: desktop-file-utils
+ExclusiveArch: %{ix86} x86_64
+
+%description
+Berusky 2 is a game that challenges your visual/spatial thinking
+and ability to find a way to resolve a logic task. Using five bugs,
+you'll go through an adventure full of various puzzles spread across
+nine episodes. Individual episodes differ in appearance and difficulty,
+which increases throughout the game.
+
+%prep
+%setup -q
+
+%build
+%configure CFLAGS="$RPM_OPT_FLAGS"
+
+make %{?_smp_mflags}
+
+%install
+make DESTDIR=%{buildroot} install
+
+# Move documentation so it can get installed to the right place.
+mkdir _tmpdoc
+mv %{buildroot}%{_usr}/doc/%{name}/* _tmpdoc/
+rm -f _tmpdoc/INSTALL
+
+# Install ini file
+mkdir -p %{buildroot}%{_var}/games/%{name}
+install -pm 644 %{buildroot}/%{_datadir}/%{name}/berusky3d.ini \
+ %{buildroot}%{_var}/games/%{name}
+
+# Install icon and desktop file
+mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps
+cp -p %{buildroot}/%{_datadir}/%{name}/berusky2.png \
+ %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps
+
+desktop-file-install --dir %{buildroot}/%{_datadir}/applications \
+ --add-category X-Fedora %{buildroot}/%{_datadir}/%{name}/berusky2.desktop
+
+# Remove directory that will be owned by data package.
+rm -rf %{buildroot}/%{_datadir}/%{name}
+
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+fi
+
+%files
+%doc _tmpdoc/*
+%{_bindir}/berusky2
+%{_datadir}/applications/berusky2.desktop
+%{_datadir}/icons/hicolor/32x32/apps/berusky2.png
+%dir %{_var}/games/%{name}
+%{_var}/games/%{name}/*
+
+%changelog
+* Wed Sep 7 2011 Martin Stransky <stransky at redhat.com> 0.5-1
+- Updated to 0.5
+
+* Tue Aug 30 2011 Martin Stransky <stransky at redhat.com> 0.4-1
+- new upstream version
+- spec clean-up (by Richard Shaw)
+
+* Mon Aug 22 2011 Martin Stransky <stransky at redhat.com> 0.3-3
+- spec polished
+
+* Mon Aug 15 2011 Martin Stransky <stransky at redhat.com> 0.3-2
+- fixed ini file location
+
+* Mon Aug 15 2011 Martin Stransky <stransky at redhat.com> 0.3-1
+- initial build
diff --git a/sources b/sources
index e69de29..df4a445 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7ef7a5ea042b1497d714449a535a5da7 berusky2-0.5.tar.gz
More information about the scm-commits
mailing list