diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2292610 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/xword-1.0.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..69a0bff --- /dev/null +++ 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 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 . +.SH AUTHOR +xword was written by Bill McCloskey . +.PP +This manual page was written by John Sullivan , +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..184cbb9 --- /dev/null +++ b/xword.spec @@ -0,0 +1,123 @@ +Name: xword +Version: 1.0 +Release: 6%{?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 &>/dev/null +touch --no-create %{_datadir}/mime/packages &> /dev/null || : +update-desktop-database &> /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 +touch --no-create %{_datadir}/mime/packages &> /dev/null || : +update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : +fi +update-desktop-database &> /dev/null || : + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : + +%files +%doc LICENSE +%{_datadir}/%{name}-%{version} +%{_datadir}/icons/hicolor/24x24/apps/xword.png +%{_datadir}/applications/%{name}.desktop +%{_bindir}/* +%{_datadir}/mime/packages/*.xml +%{_mandir}/man1/* + + + +%changelog +* Thu Oct 02 2014 Rex Dieter 1.0-6 +- update desktop/icon/mime scriptlets, remove empty %%clean section + +* Sun Jun 08 2014 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Oct 31 2012 Ankur Sinha 1.0-2 +- Update as per review #871629 + +* Mon Oct 29 2012 Ankur Sinha 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 + . 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 @@ + + + + Crossword puzzle + + +