]> git.pld-linux.org Git - SPECS.git/blob - php-pear-Games_Chess.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / php-pear-Games_Chess.spec
1 %define         _status         stable
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}
6 Version:        1.0.1
7 Release:        4
8 Epoch:          0
9 License:        PHP 3.0
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
18 Requires:       php-pear
19 Obsoletes:      php-pear-Games_Chess-tests
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 # included in tests
24 %define         _noautoreq pear(HTML_TestListener.php) pear(TestUnit.php)
25
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
39 In PEAR status of this package is: %{_status}.
40
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
47 File_ChessPGN.
48
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.
53
54 Ta klasa ma w PEAR status: %{_status}.
55
56 %prep
57 %pear_package_setup
58
59 rm -f ./%{php_pear_dir}/data/Games_Chess/LICENSE # PHP 3.0
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{php_pear_dir}
64 %pear_package_install
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc install.log
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
This page took 0.627863 seconds and 3 git commands to generate.