[peg-solitaire] Initial commit

Mario Blättermann mariobl at fedoraproject.org
Thu Oct 31 08:48:48 UTC 2013


commit 03d30d177103683a2237ec4830ad5e687608d5e5
Author: Mario Blättermann <mario.blaettermann at gmail.com>
Date:   Thu Oct 31 09:48:30 2013 +0100

    Initial commit

 .gitignore         |    1 +
 peg-solitaire.diff |   36 ++++++++++++++++++++++++++++++
 peg-solitaire.spec |   61 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 4 files changed, 99 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7717f23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/peg-solitaire-2.0.tar.gz
diff --git a/peg-solitaire.diff b/peg-solitaire.diff
new file mode 100644
index 0000000..d15d8d0
--- /dev/null
+++ b/peg-solitaire.diff
@@ -0,0 +1,36 @@
+--- peg-solitaire.pro	2013-02-16 18:20:59.000000000 +0100
++++ peg-solitaire.pro	2013-07-16 17:46:45.256449878 +0200
+@@ -49,7 +49,7 @@
+ 
+ unix:!macx {
+     isEmpty(PREFIX):PREFIX = /usr
+-    target.path = $$PREFIX/games/
++    target.path = $$PREFIX/bin/
+     man.path = $$PREFIX/share/man/man6/
+     man.files = menu/peg-solitaire.6.gz
+ 
+
+--- menu/peg-solitaire.desktop	2011-03-25 18:41:43.000000000 +0100
++++ menu/peg-solitaire.desktop	2013-07-16 17:59:39.000000000 +0200
+@@ -1,19 +1,15 @@
+ 
+ [Desktop Entry]
+-Exec='/usr/games/peg-solitaire'
++Exec=peg-solitaire
+ GenericName=Peg-Solitaire
+ GenericName[ca]=Solitari
+-Icon=/usr/share/pixmaps/peg-solitaire.xpm
+-MimeType=
++Icon=peg-solitaire
+ Name=Peg-Solitaire
+ Name[ca]=Solitari
+-Path=
+ StartupNotify=true
+ Terminal=false
+ Type=Application
+-X-DCOP-ServiceType=
+ X-KDE-SubstituteUID=false
+-X-KDE-Username=
+ Categories=Game;LogicGame;
+ Name[ca_ES]=Solitari
+ Name[es_ES]=Solitario
diff --git a/peg-solitaire.spec b/peg-solitaire.spec
new file mode 100644
index 0000000..1eb6a3a
--- /dev/null
+++ b/peg-solitaire.spec
@@ -0,0 +1,61 @@
+Name:           peg-solitaire
+Version:        2.0
+Release:        4%{?dist}
+Summary:        Board game played with pegs
+
+License:        GPLv3+
+URL:            http://sourceforge.net/projects/%{name}/
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+
+#The patch sets the correct binary folder and validates the desktop file
+Patch0:         %{name}.diff
+
+BuildRequires:  qt-devel
+BuildRequires:  desktop-file-utils
+
+%description
+Peg solitaire is a board game for one player involving movement of pegs on
+a board with holes. The program includes over 330 solitaire problems.
+The program looks for new solutions and it is possible to raise new problems.
+
+%prep
+%setup -q
+%patch0
+
+%build
+qmake-qt4 PREFIX=%{buildroot}/%{_prefix} %{name}.pro
+make %{?_smp_mflags}
+
+
+%install
+%make_install
+%find_lang solitari --with-qt --without-mo
+
+
+%check
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+
+
+%files -f solitari.lang
+%doc changelog copying.txt
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/games/%{name}/
+%{_datadir}/pixmaps/%{name}.xpm
+%{_mandir}/man6/%{name}.6.*
+
+%changelog
+* Wed Oct 09 2013 Mario Blättermann <mariobl at fedoraproject.org> - 2.0-4
+- Add a missing folder to %%files
+- New placement of the find_lang macro to get it work (bug #989437)
+
+* Sat Jul 20 2013 Mario Blättermann <mariobl at fedoraproject.org> - 2.0-3
+- Removed the update-desktop-database scripts because the package
+  doesn't have MIME type associations
+- Attempt to use find_lang
+
+* Wed Jul 17 2013 Mario Blättermann <mariobl at fedoraproject.org> - 2.0-2
+- Fixed the %%{buildroot} usage
+
+* Tue Jul 16 2013 Mario Blättermann <mariobl at fedoraproject.org> 2.0-1
+- Initial package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..f376384 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+359eed7ffa1d5f957a9867f24bfce049  peg-solitaire-2.0.tar.gz


More information about the scm-commits mailing list