[findthatword] Initial import.
Jon Ciesla
limb at fedoraproject.org
Tue Oct 18 12:47:44 UTC 2011
commit 7179a34f436ac2b45d8fbfe1bf056ca8f4066325
Author: Jon Ciesla <limb at jcomserv.net>
Date: Tue Oct 18 07:47:33 2011 -0500
Initial import.
.gitignore | 1 +
findthatword-0.1-gladepath.patch | 11 ++++
findthatword-0.1-iconpath.patch | 11 ++++
findthatword-0.1-licensepath.patch | 11 ++++
findthatword-0.1-modpath.patch | 11 ++++
findthatword.desktop | 10 ++++
findthatword.spec | 93 ++++++++++++++++++++++++++++++++++++
sources | 1 +
8 files changed, 149 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..db2845b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/findthatword-0.1.tar.gz
diff --git a/findthatword-0.1-gladepath.patch b/findthatword-0.1-gladepath.patch
new file mode 100644
index 0000000..1f40b9e
--- /dev/null
+++ b/findthatword-0.1-gladepath.patch
@@ -0,0 +1,11 @@
+--- src/findthatword.py~ 2011-10-16 14:51:01.000000000 -0500
++++ src/findthatword.py 2011-10-16 14:53:28.000000000 -0500
+@@ -75,7 +75,7 @@
+
+ #Set the environment variables and default display settings
+ self.local_path = os.path.realpath(os.path.dirname(sys.argv[0]))
+- self.gladefile = os.path.join(self.local_path, "findthatword.glade")
++ self.gladefile = os.path.join("/usr/share/findthatword/findthatword.glade")
+ self.show_title = True
+ self.show_grid = True
+ self.show_words = True
diff --git a/findthatword-0.1-iconpath.patch b/findthatword-0.1-iconpath.patch
new file mode 100644
index 0000000..b0bb92f
--- /dev/null
+++ b/findthatword-0.1-iconpath.patch
@@ -0,0 +1,11 @@
+--- src/findthatword.py~ 2011-10-16 14:54:23.000000000 -0500
++++ src/findthatword.py 2011-10-16 14:56:26.000000000 -0500
+@@ -88,7 +88,7 @@
+
+ #Draw the icon. Unofortunately, not all operating systems can accept SVGs
+ if os.name == 'posix':
+- icon_file = os.path.join(self.local_path, "ftw_small.svg")
++ icon_file = os.path.join("/usr/share/findthatword/ftw_small.svg")
+ self.main_window.set_icon_from_file(icon_file)
+ else:
+ icon_file = os.path.join(self.local_path, "ftw_small.ico")
diff --git a/findthatword-0.1-licensepath.patch b/findthatword-0.1-licensepath.patch
new file mode 100644
index 0000000..377321d
--- /dev/null
+++ b/findthatword-0.1-licensepath.patch
@@ -0,0 +1,11 @@
+--- src/findthatword.py~ 2011-10-16 15:00:04.000000000 -0500
++++ src/findthatword.py 2011-10-16 15:02:00.000000000 -0500
+@@ -779,7 +779,7 @@
+ about_dialog.set_name(APP_NAME)
+ about_dialog.set_version(APP_VERSION)
+ about_dialog.set_copyright(COPYRIGHT)
+- licence_filename = os.path.join(self.local_path, "COPYING")
++ licence_filename = os.path.join("/usr/share/findthatword/COPYING")
+ licence_file = open(licence_filename,"r")
+ licence = licence_file.read()
+ licence_file.close()
diff --git a/findthatword-0.1-modpath.patch b/findthatword-0.1-modpath.patch
new file mode 100644
index 0000000..5cd8253
--- /dev/null
+++ b/findthatword-0.1-modpath.patch
@@ -0,0 +1,11 @@
+--- src/findthatword.py~ 2009-01-21 10:55:55.000000000 -0600
++++ src/findthatword.py 2011-10-16 14:46:58.000000000 -0500
+@@ -47,7 +47,7 @@
+ import gobject
+ import os
+ import cPickle
+- from puzzle import *
++ from findthatword import *
+ except ImportError, error_message:
+ error_dialog = gtk.MessageDialog(None
+ , gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT
diff --git a/findthatword.desktop b/findthatword.desktop
new file mode 100644
index 0000000..9c34bfc
--- /dev/null
+++ b/findthatword.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=Find That Word
+Exec=findthatword
+Comment=A word search maker
+Icon=ftw_small
+Terminal=false
+Categories=Game;LogicGame;
+StartupNotify=false
+Version=1.0
diff --git a/findthatword.spec b/findthatword.spec
new file mode 100644
index 0000000..a77bef3
--- /dev/null
+++ b/findthatword.spec
@@ -0,0 +1,93 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name: findthatword
+Version: 0.1
+Release: 2%{?dist}
+Summary: A word search maker
+
+Group: Amusements/Games
+License: GPLv3+
+URL: http://findthatword.sourceforge.net/
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source1: findthatword.desktop
+Patch0: findthatword-0.1-modpath.patch
+Patch1: findthatword-0.1-gladepath.patch
+Patch2: findthatword-0.1-iconpath.patch
+Patch3: findthatword-0.1-licensepath.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: desktop-file-utils
+Requires: pygame pygtk2 hicolor-icon-theme
+
+%description
+A word search maker for teachers, parents and those who enjoy creating
+puzzles. FindThatWord aims to be the best free word search creation
+program available with useful features such as clues, hidden messages
+and automated page layout.
+
+%prep
+%setup -qn %{name}
+
+%patch0 -p0
+%patch1 -p0
+%patch2 -p0
+%patch3 -p0
+
+%build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/findthatword
+
+install -m 755 src/findthatword.py $RPM_BUILD_ROOT%{_bindir}/findthatword
+install -m 644 src/*.svg $RPM_BUILD_ROOT%{_datadir}/findthatword/
+install -m 644 src/*.glade $RPM_BUILD_ROOT%{_datadir}/findthatword/
+install -m 644 src/*.ftw $RPM_BUILD_ROOT%{_datadir}/findthatword/
+install -m 644 src/COPYING $RPM_BUILD_ROOT%{_datadir}/findthatword/
+
+mkdir -p $RPM_BUILD_ROOT%{python_sitelib}
+install -m 644 src/puzzle.py $RPM_BUILD_ROOT%{python_sitelib}/findthatword.py
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
+install -p -m 644 src/ftw_small.svg \
+ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
+
+desktop-file-install \
+ --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
+
+%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
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc doc/
+%{_bindir}/*
+%{_datadir}/findthatword
+%{_datadir}/applications/findthatword.desktop
+%{_datadir}/icons/hicolor/scalable/apps/ftw_small.svg
+%{python_sitelib}/findthatword*
+
+%changelog
+* Mon Oct 17 2011 Jon Ciesla <limb at jcomserv.net> - 0.1-2
+- Corrected icon placement.
+- Dropped Encoding from .desktop.
+- Stopped creating unused sitelib subdir.
+
+* Sun Oct 16 2011 Jon Ciesla <limb at jcomserv.net> - 0.1-1
+- First build.
diff --git a/sources b/sources
index e69de29..2481230 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+025886ae0f30dc1cabeebca21987c82f findthatword-0.1.tar.gz
More information about the scm-commits
mailing list