]>
Commit | Line | Data |
---|---|---|
a2e77eae | 1 | %define _status stable |
b08cc19d | 2 | %define _pearname Games_Chess |
1b8234d2 | 3 | Summary: %{_pearname} - construct and validate a logical chess game, does not display |
28ac27c3 | 4 | Summary(pl.UTF-8): %{_pearname} - konstruowanie i sprawdzanie poprawności logicznej gry w szachy |
af10b4ae | 5 | Name: php-pear-%{_pearname} |
2fe4f950 | 6 | Version: 1.0.1 |
b08cc19d | 7 | Release: 4 |
49ed16da | 8 | Epoch: 0 |
612fd004 | 9 | License: PHP 3.0 |
af10b4ae | 10 | Group: Development/Languages/PHP |
c86a3f64 | 11 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz |
2fe4f950 | 12 | # Source0-md5: f531ee3c5600a1713f41b3a4c2b6b09f |
612fd004 | 13 | URL: http://pear.php.net/package/Games_Chess/ |
554797f6 | 14 | BuildRequires: php-pear-PEAR |
1205c744 | 15 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
a76b3883 | 16 | BuildRequires: rpmbuild(macros) >= 1.300 |
b08cc19d | 17 | Requires: php(core) >= 4.2.0 |
af10b4ae | 18 | Requires: php-pear |
dffe62d3 | 19 | Obsoletes: php-pear-Games_Chess-tests |
af10b4ae AG |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
1205c744 | 23 | # included in tests |
b08cc19d | 24 | %define _noautoreq pear(HTML_TestListener.php) pear(TestUnit.php) |
1205c744 | 25 | |
af10b4ae AG |
26 | %description |
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 | |
32 | package. | |
33 | ||
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. | |
38 | ||
c286540c | 39 | In PEAR status of this package is: %{_status}. |
af10b4ae | 40 | |
19b27b38 JR |
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 | |
c55c28dc JB |
47 | File_ChessPGN. |
48 | ||
19b27b38 JR |
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. | |
c55c28dc JB |
53 | |
54 | Ta klasa ma w PEAR status: %{_status}. | |
af10b4ae AG |
55 | |
56 | %prep | |
1205c744 ER |
57 | %pear_package_setup |
58 | ||
59 | rm -f ./%{php_pear_dir}/data/Games_Chess/LICENSE # PHP 3.0 | |
af10b4ae AG |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
1205c744 ER |
63 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
64 | %pear_package_install | |
af10b4ae AG |
65 | |
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
1205c744 ER |
71 | %doc install.log |
72 | %doc docs/%{_pearname}/examples | |
73 | %{php_pear_dir}/.registry/*.reg | |
b08cc19d ER |
74 | %dir %{php_pear_dir}/Games |
75 | %{php_pear_dir}/Games/*.php | |
76 | %{php_pear_dir}/Games/Chess |