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