perl-Games-Chess-Referee/perl-Games-Chess-Referee.spec

Name: perl-Games-Chess-Referee
Summary: Work with chess positions and games, according to the rules of chess
Version: 0.003
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Games-Chess-Referee/
Description: This is an early conversion of my first chess-related Perl program, chess.pl, which provided just enough functionality to permit tracking the movements of pieces throughout a game. One notable feature is the ability to provide incomplete ply notation, allowing the program to figure out, for example, the type of the piece being moved, or whether the ply represents a capture (x) or occupation (-). This functionality will be broadened in the futuer to permit partial space specification (e.g. `cxd4'), and other cases of standard chess move notation.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Gregor N. Purdy <gregor$focusresearch,com>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Games-Chess-Referee

Summary: Work with chess positions and games, according to the rules of chess
Name: perl-Games-Chess-Referee
Version: 0.003
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Games-Chess-Referee/

Source: http://www.cpan.org/modules/by-module/Games/Games-Chess-Referee-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)

%description
This is an early conversion of my first chess-related Perl
program, chess.pl, which provided just enough functionality to
permit tracking the movements of pieces throughout a game. One
notable feature is the ability to provide incomplete ply notation,
allowing the program to figure out, for example, the type of the
piece being moved, or whether the ply represents a capture (x) or
occupation (-). This functionality will be broadened in the futuer
to permit partial space specification (e.g. `cxd4'), and other
cases of standard chess move notation.

%prep
%setup -n %{real_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc README
%{_bindir}/mkbd
%{_bindir}/tryme
%doc %{_mandir}/man3/Games::Chess::Rules.3pm*
%{perl_vendorlib}/Games/Chess/Referee.p*
%{perl_vendorlib}/Games/Chess/Piece/
%{perl_vendorlib}/Games/Chess/Rules.pm

%changelog
* Fri Jun  2 2006 Dries Verachtert <dries@ulyssis.org> - 0.003-1
- Updated to release 0.003.

* Wed Mar 22 2006 Dries Verachtert <dries@ulyssis.org> - 0.002-1.2
- Rebuild for Fedora Core 5.

* Sat Apr  9 2005 Dries Verachtert <dries@ulyssis.org> - 0.002-1
- Initial package.