debian/0000755000000000000000000000000012222014021007150 5ustar debian/patches/0000755000000000000000000000000012221746757010632 5ustar debian/patches/makefile.patch0000644000000000000000000000162012221746532013416 0ustar Description: Pass CFLAGS, CPPFLAGS and LDFLAGS in pgn-extract target Author: Vincent Legout Index: pgn-extract/Makefile =================================================================== --- pgn-extract.orig/Makefile 2013-09-29 08:47:50.225413706 +0200 +++ pgn-extract/Makefile 2013-09-29 08:48:55.589413877 +0200 @@ -35,8 +35,7 @@ CFLAGS+=-c -pedantic -Wall -Wshadow -Wformat -Wpointer-arith \ -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings $(DEBUGINFO)\ - -I/usr/local/lib/ansi-include \ - -O3 + -I/usr/local/lib/ansi-include $(CPPFLAGS) CC=gcc # AIX 3.2 Users might like to use these alternatives for CFLAGS and CC. @@ -48,7 +47,7 @@ .SCCS_GET: pgn-extract : $(OBJS) - $(CC) $(DEBUGINFO) $(OBJS) -o pgn-extract + $(CC) $(DEBUGINFO) $(ORIGCFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OBJS) -o pgn-extract purify : $(OBJS) purify $(CC) $(DEBUGINFO) $(OBJS) -o pgn-extract debian/patches/series0000644000000000000000000000001712146210104012017 0ustar makefile.patch debian/compat0000644000000000000000000000000212145721140010361 0ustar 9 debian/pgn-extract.manpages0000644000000000000000000000002712145720776013151 0ustar debian/pgn-extract.man debian/rules0000755000000000000000000000044312221745531010251 0ustar #!/usr/bin/make -f %: dh $@ get-orig-source: wget ftp://ftp.cs.kent.ac.uk/pub/djb/pgn-extract/pgn-extract-17-14.tgz tar zxvf pgn-extract-17-14.tgz mv pgn-extract pgn-extract-17.14 tar czf pgn-extract_17.14.orig.tar.gz pgn-extract-17.14 rm -rf pgn-extract-17.14 pgn-extract-17-14.tgz debian/pgn-extract.man0000644000000000000000000000353212146212512012116 0ustar .TH PGN-EXTRACT 1 "May 19, 2013" .SH NAME pgn-extract - a Portable Game Notation (PGN) extractor .SH SYNOPSIS .B pgn-extract [flags] file.pgn [file.pgn ...] .SH DESCRIPTION .B pgn-extract is a free, open-source program pgn-extract, which is designed to support the processing, searching and extraction of chess games from files written in PGN format. There are several ways to specify the criteria on which to extract: textual move sequences, the position reached after a sequence of moves, information in the tag fields, and material balance in the ending. Full ANSI C source and a 32-bit Windows binary for the program are available under the terms of the GNU General Public License. The program includes a semantic analyser which will report errors in game scores and it is also able to detect duplicate games found in one or more of its input files. The range of input move formats accepted is fairly wide and includes recognition of lower-case piece letters for English and upper-case piece letters for Dutch and German. The default output is in English Standard Algebraic Notation (SAN), although there is some support for output in different notations. Extracted games may be written out either including or excluding comments, NAGs, and variations. Games may be given ECO classifications derived from the accompanying file eco.pgn, or a customised version provided by the user. Plus, lots of other useful features that have gradually found their way into what was once a relatively simple program! .SH OPTIONS Run .B pgn-extract -h to get all the options. A complete description of each option can be found in .B /usr/share/doc/pgn-extract/help.html .SH AUTHOR Pgn-extract was written by David Barnes . This manual page was written by Peter van Rossum and Vincent Legout , for the Debian GNU/Linux system. debian/watch0000644000000000000000000000014712145720776010234 0ustar version=3 opts="uversionmangle=s/-/./" \ ftp://ftp.cs.kent.ac.uk/pub/djb/Extract/pgn-extract-(.*)\.tgz debian/pgn-extract.install0000644000000000000000000000006612145720776013027 0ustar pgn-extract /usr/games eco.pgn /usr/share/pgn-extract debian/copyright0000644000000000000000000003164412222014013011114 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: pgn-extract Upstream-Contact: David Barnes Source: http://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/ Files: * Copyright: 1994-2013, David Barnes License: GPL-1+ On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. Files: debian/* Copyright: 2001-2006, Peter van Rossum 2009-2013, Vincent Legout License: GPL-2+ On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. Files: style.css Copyright: Free CSS Templates License: CC-BY-2.5 THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. . BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. . 1. Definitions . a. "Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with a number of other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License. . b. "Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License. . c. "Licensor" means the individual or entity that offers the Work under the terms of this License. . d. "Original Author" means the individual or entity who created the Work. . e. "Work" means the copyrightable work of authorship offered under the terms of this License. . f. "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. . 2. Fair Use Rights. Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws. . 3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: . a. to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works; . b. to create and reproduce Derivative Works; . c. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works; . d. to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works. . e. For the avoidance of doubt, where the work is a musical composition: . i. Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or via a performance rights society (e.g. ASCAP, BMI, SESAC), royalties for the public performance or public digital performance (e.g. webcast) of the Work. . ii. Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights agency or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions). . f. Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions). . . The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved. . 4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: . a. You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by clause 4(b), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by clause 4(b), as requested. . b. If you distribute, publicly display, publicly perform, or publicly digitally perform the Work or any Derivative Works or Collective Works, You must keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if the Original Author and/or Licensor designate another party or parties (e.g. a sponsor institute, publishing entity, journal) for attribution in Licensor's copyright notice, terms of service or by reasonable means, the name of such party or parties; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). Such credit may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear where any other comparable authorship credit appears and in a manner at least as prominent as such other comparable authorship credit. . 5. Representations, Warranties and Disclaimer . UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. . 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . 7. Termination . a. This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works or Collective Works from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. . b. Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. . 8. Miscellaneous . a. Each time You distribute or publicly digitally perform the Work or a Collective Work, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. . b. Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. . c. If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. . d. No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. . e. This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. . . Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. . Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, neither party will use the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. debian/docs0000644000000000000000000000001212146207640010034 0ustar help.html debian/source/0000755000000000000000000000000012145720776010501 5ustar debian/source/format0000644000000000000000000000001412145720776011707 0ustar 3.0 (quilt) debian/doc-base0000644000000000000000000000035212145720776010601 0ustar Document: pgn-extract Title: Pgn-extract Author: David Barnes Abstract: Portable Game Notation (PGN) extractor Section: Games/Board Format: HTML Index: /usr/share/doc/pgn-extract/help.html Files: /usr/share/doc/pgn-extract/help.html debian/control0000644000000000000000000000123712145721064010576 0ustar Source: pgn-extract Section: games Priority: optional Maintainer: Vincent Legout Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: http://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/ Package: pgn-extract Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Portable Game Notation (PGN) extractor Pgn-extract is a program to extract selected games from a collection of chess games in PGN format. There are several ways to specify the criteria on which to extract: textual move sequences, the position reached after a sequence of moves, information in the tag fields, and material balance in the ending. debian/changelog0000644000000000000000000000676412222014021011037 0ustar pgn-extract (17.14-1) unstable; urgency=low * New upstream release * Update get-orig-source target * debian/patches/makefile.patch: Do not build with -03 by default and build using $(CPPFLAGS) -- Vincent Legout Sun, 29 Sep 2013 14:07:42 +0200 pgn-extract (17.13-1) unstable; urgency=low * New upstream version * debian/rules: Add get-orig-source target * Set debhelper compatibility to 9 * Standards-Version 3.9.4, no changes needed * Add makefile.patch to enable hardening flags * debian/copyright: - Use copyright format 1.0 - Update copyright years - Add a paragraph for style.css * debian/pgn-extract.man: Updated, do not list all options, point to help.html instead. -- Vincent Legout Sun, 19 May 2013 20:06:54 +0200 pgn-extract (16.7-2) unstable; urgency=low * debian/copyright: - Update to new DEP5 revision, some fields have been renamed - Remove the complete GPL-1 text and refer to /usr/share/common-licenses/GPL-1 instead. * debian/control: - Bump to Standards-Version 3.9.2 (No changes required) - Update my email address -- Vincent Legout Mon, 07 Nov 2011 20:45:03 +0100 pgn-extract (16.7-1) unstable; urgency=low * New upstream release * New maintainer (Closes:# 561252) * debian/compat: Bumped to 7 * debian/control: - Add myself in Maintainer - Add Homepage field - Bump Standards-Version to 3.8.3 - Add ${misc:Depends} * debian/copyright: Updated to DEP-5 * debian/doc-base: Update Section * debian/dirs: Removed * debian/docs: Add help.html, Remove README * debian/lintian: Removed * debian/pgn-extract.man: Remove reference to README, Fix lintian warnings * debian/rules: Rewritten using dh - Add pgn-extract.install, pgn-extract.manpages * debian/watch: Added * Switch to 3.0 (quilt) source format -- Vincent Legout Mon, 04 Jan 2010 21:28:07 +0100 pgn-extract (16.0-1) unstable; urgency=low * New upstream version: a few bug fixes and the - Welalg flag. * Updated manual page. * Updated standards version. -- Peter van Rossum Mon, 11 Sep 2006 07:53:11 +0200 pgn-extract (15.0-4) unstable; urgency=low * Fixed short description. -- Peter van Rossum Tue, 18 Jan 2005 19:50:45 +0100 pgn-extract (15.0-3) unstable; urgency=low * Fixed compiler warnings. * Updated policy to 3.6.1. * Rephrased copyright file and referred to new FSF address. -- Peter van Rossum Wed, 24 Dec 2003 20:54:45 -0800 pgn-extract (15.0-2) unstable; urgency=low * Registered documentation with the documentation system. * Removed the (debhelper) /usr/doc symlink handling. -- Peter van Rossum Thu, 17 Apr 2003 13:08:27 -0600 pgn-extract (15.0-1) unstable; urgency=low * New upstream version (finally uploaded). -- Peter van Rossum Tue, 23 Oct 2001 12:21:40 -0700 pgn-extract (13.8-2) unstable; urgency=low * Changed section to games. * Fixed default location of eco-file. (Closes: #93282) -- Peter van Rossum Mon, 9 Apr 2001 21:54:26 +0200 pgn-extract (13.8-1) unstable; urgency=low * New upstream version. * Closing the ITP bug against wnpp. (Closes: #90978) -- Peter van Rossum Sun, 25 Mar 2001 14:14:12 +0200 pgn-extract (13.6-1) unstable; urgency=low * Initial Release. -- Peter van Rossum Sat, 10 Mar 2001 20:13:16 +0100