[xword] Initial import (#871629)

Ankur Sinha ankursinha at fedoraproject.org
Wed Oct 31 11:23:29 UTC 2012


commit 81cb632861f5abd31b79ea270f6a91e2c86cd463
Author: Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur at gmail.com>
Date:   Wed Oct 31 22:23:23 2012 +1100

    Initial import (#871629)

 .gitignore    |    1 +
 sources       |    1 +
 xword.1       |   72 +++++++++++++++++++++++++++++++++++++
 xword.desktop |   12 ++++++
 xword.spec    |  109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 xword.xml     |    7 ++++
 6 files changed, 202 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2292610 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/xword-1.0.tar.gz
diff --git a/sources b/sources
index e69de29..69a0bff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5e1963b488dfa0aca75be3bc3af04887  xword-1.0.tar.gz
diff --git a/xword.1 b/xword.1
new file mode 100644
index 0000000..892c57e
--- /dev/null
+++ b/xword.1
@@ -0,0 +1,72 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH XWORD 1 "December 3, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+xword \- do crossword puzzles in the Across Lite format
+.SH SYNOPSIS
+.B xword
+.RI [ puzzlefile.puz ] ...
+.SH DESCRIPTION
+Xword is a GTK program for doing crossword puzzles. It can read and write
+puzzles in the Across Lite file format. Consequently, it works well for doing
+puzzles from The New York Times. As well as a clock, it supports printing. It
+also auto-saves puzzles as you solve them so that you can return to partially
+completed puzzles.
+.SH USAGE
+First, locate a puzzle on the web. The best place to go is the web site of The
+New York Times. However, it costs money to access these puzzles. Free puzzles
+are available from The Houston Chronicle.
+.PP
+After you have found a puzzle, click on it in your web browser. Xword will open
+the puzzle and you can start solving. You can also choose to save the puzzle on
+your hard disk. Then you can open the puzzle using Xword later.
+.PP
+After you have worked on a puzzle for a while, you may want to save your work.
+There are two ways to save. The easiest way is to close Xword without any
+further action. The next time you open the same puzzle (either by opening
+the .puz file or by clicking the same link on the web), you will be asked
+whether you want to continue where you left off. If you choose to continue, all
+your correct and incorrect answers will be saved, as well as the time on the
+clock.
+.PP
+However, this technique only works for opening the puzzle on the same computer.
+If you need to open the saved puzzle on a different computer, then you can
+choose "Save" from the "File" menu. The saved file can be opened with Xword on
+any computer. However, incorrect answers and the time on the clock will not be
+saved.
+.PP
+To print a puzzle, select "Print" from the "File" menu. You can see what the
+printed puzzle will look like by clicking "Print Preview". You can select the
+paper size and orientation by clicking on the "Paper" tab (puzzles are usually
+easier to read in landscape mode).
+.PP
+Sometimes a puzzle will be locked so that the answers are unavailable.
+Unfortunately, Xword's support for locked puzzles is somewhat flaky. When using
+a locked puzzle, you should not click on the "Check" or "Solve" buttons, since
+they will give incorrect information. However, you can still use Xword to enter
+answers for a locked puzzle. Later, when an unlocked version of the puzzle is
+released (usually the next day), open it using Xword. When asked, choose to
+continue where you left off. Now you can use the "Check" and "Solve" buttons to
+see how well you did. Sometimes crosswords will come with a four-digit code to
+unlock a locked puzzle file. This code is not needed by Xword ...
+.PP
+For more information, see the project home page at <http://x-word.org>.
+.SH AUTHOR
+xword was written by Bill McCloskey <bill.mccloskey at gmail.com>. 
+.PP
+This manual page was written by John Sullivan <john at wjsullivan.net>,
+for the Debian project (but may be used by others).
diff --git a/xword.desktop b/xword.desktop
new file mode 100644
index 0000000..109429a
--- /dev/null
+++ b/xword.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Xword
+GenericName=Crossword Puzzles
+Comment=Do crossword puzzles in the Across Lite file format
+Exec=xword
+Icon=xword
+Terminal=false
+Type=Application
+Categories=Game;LogicGame;
+MimeType=application/x-crossword;
+
diff --git a/xword.spec b/xword.spec
new file mode 100644
index 0000000..9e8bce6
--- /dev/null
+++ b/xword.spec
@@ -0,0 +1,109 @@
+Name:		xword
+Version:	1.0
+Release:	2%{?dist}
+Summary:	Reads and writes crossword puzzles in the Across Lite file format
+
+
+Group:		Amusements/Games
+License:	BSD
+URL:		http://x-word.org/
+Source0:	http://x-word.org/%{name}-%{version}.tar.gz
+Source1:	%{name}.desktop
+Source2:	%{name}.xml
+Source3:	%{name}.1
+
+BuildRequires:	desktop-file-utils
+Requires:	pygtk2 gnome-python2-gnomeprint 
+BuildArch:	noarch 
+
+%description
+Xword is a GTK program that works well for doing crossword puzzles in the
+Across Lite file format used by The New York Times and others. As well as a
+clock, it supports printing. It also auto-saves puzzles as you solve them so
+that you can return to partially completed puzzles.
+
+
+%prep
+%setup -q
+
+
+sed -i -e "s|HOME_PATH = os\.path\.dirname(sys\.argv\[0\])|HOME_PATH = '%{_datadir}/%{name}-%{version}'|g" xword
+
+
+%build
+#nothing to build
+
+
+
+%install
+
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+install -d $RPM_BUILD_ROOT%{_bindir}/
+install -d $RPM_BUILD_ROOT%{_mandir}/man1/
+
+install -p -m 755 xword $RPM_BUILD_ROOT%{_bindir}/
+
+install -p -m 644 layout-rtb.png $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+install -p -m 644 crossword-solve.png $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+install -p -m 644 crossword-clock.png $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+install -p -m 644 crossword-check.png $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+install -p -m 644 crossword-check-all.png $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
+
+
+#man page
+install -p -m 644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1
+
+#icon install
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps
+cp -p crossword-solve.png					\
+	$RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/xword.png
+
+
+
+#desktop file
+desktop-file-install --dir=$RPM_BUILD_ROOT%{_datadir}/applications %SOURCE1
+
+#mime file
+install -d $RPM_BUILD_ROOT%{_datadir}/mime/packages
+install -p -m 644 %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/mime/packages/
+
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+update-desktop-database &> /dev/null || :
+update-mime-database %{_datadir}/mime &> /dev/null || :
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+update-desktop-database &> /dev/null || :
+update-mime-database %{_datadir}/mime &> /dev/null || :
+
+
+%clean
+
+
+%files
+%doc LICENSE
+%{_datadir}/%{name}-%{version}
+%{_datadir}/icons/hicolor/24x24/apps/xword.png
+%{_datadir}/applications/%{name}.desktop
+%{_bindir}/*
+%{_datadir}/mime/packages/*
+%{_mandir}/man1/*
+
+
+
+%changelog
+* Wed Oct 31 2012 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.0-2
+- Update as per review #871629
+
+* Mon Oct 29 2012 Ankur Sinha <ankursinha AT fedoraproject DOT org> 1.0-1
+- Initial rpm spec based on Alex's spec at rhbz# 470155
+- Compressed Alex's changelog below
+- Addressed the comments in the review by Mamoru Tasaka 
+  <mtasaka ioa.s.u-tokyo.ac.jp>. Warning on python 2.6 will
+  be addressed later. 
+- Added LICENSE to %%doc
+- Fix a silly error involving $RPM_BUILD_ROOT.
+- Initial import.
diff --git a/xword.xml b/xword.xml
new file mode 100644
index 0000000..2035c0d
--- /dev/null
+++ b/xword.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+  <mime-type type="application/x-crossword">
+    <comment>Crossword puzzle</comment>
+    <glob pattern="*.puz"/>
+  </mime-type>
+</mime-info>


More information about the scm-commits mailing list