2 %define _pearname Games_Chess
3 Summary: %{_pearname} - construct and validate a logical chess game, does not display
4 Summary(pl.UTF-8): %{_pearname} - konstruowanie i sprawdzanie poprawności logicznej gry w szachy
5 Name: php-pear-%{_pearname}
10 Group: Development/Languages/PHP
11 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
12 # Source0-md5: f531ee3c5600a1713f41b3a4c2b6b09f
13 URL: http://pear.php.net/package/Games_Chess/
14 BuildRequires: php-pear-PEAR
15 BuildRequires: rpm-php-pearprov >= 4.4.2-11
16 BuildRequires: rpmbuild(macros) >= 1.300
17 Requires: php(core) >= 4.2.0
19 Obsoletes: php-pear-Games_Chess-tests
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _noautoreq pear(HTML_TestListener.php) pear(TestUnit.php)
27 The logic of handling a chessboard and parsing standard FEN
28 (Farnsworth-Edwards Notation) for describing a position as well as SAN
29 (Standard Algebraic Notation) for describing individual moves is
30 handled. This class can be used as a backend driver for playing chess,
31 or for validating and/or creating PGN files using the File_ChessPGN
34 Although this package is alpha, it is fully unit-tested. The code
35 works, but the API is fluid, and may change dramatically as it is put
36 into use and better ways are found to use it. When the API stabilizes,
37 the stability will increase.
39 In PEAR status of this package is: %{_status}.
41 %description -l pl.UTF-8
42 Ten moduł obsługuje logikę obsługi szachownicy i analizy standardu
43 notacji FEN (Farnsworth-Edwards Notation) do opisu pozycji, a także
44 notacji SAN (Standard Algebraic Notation) do opisu poszczególnych
45 ruchów. Klasa może być używana jako backend do gry w szachy lub do
46 sprawdzania poprawności albo tworzenia plików PGN przy użyciu pakietu
49 Mimo że ten pakiet jest w stanie alpha, jest w pełni przetestowany.
50 Kod działa, ale API jest nie ustabilizowane i może się zmienić
51 drastycznie, jeśli znajdą się ku temu powody. Kiedy API się
52 ustabilizuje, zwiększy się stabilność całej klasy.
54 Ta klasa ma w PEAR status: %{_status}.
59 rm -f ./%{php_pear_dir}/data/Games_Chess/LICENSE # PHP 3.0
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{php_pear_dir}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %doc docs/%{_pearname}/examples
73 %{php_pear_dir}/.registry/*.reg
74 %dir %{php_pear_dir}/Games
75 %{php_pear_dir}/Games/*.php
76 %{php_pear_dir}/Games/Chess