2 %define _subclass Fortune
4 %define _pearname File_Fortune
6 Summary: %{_pearname} - interface for reading from and writing to fortune files
7 Summary(pl.UTF-8): %{_pearname} - interfejs do odczytu i zapisywania plików fortunek
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: 790f547447ade697d4227eca00107dec
15 URL: http://pear.php.net/package/File_Fortune/
16 BuildRequires: php-pear-PEAR
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 BuildRequires: rpmbuild(macros) >= 1.300
20 Requires: php-pear-PEAR-core >= 1.3.4
21 Obsoletes: php-pear-File_Fortune-tests
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 File_Fortune provides a PHP interface to reading fortune files. With
27 it, you may retrieve a single fortune, a random fortune, or all
30 File_Fortune_Writer provides an interface for manipulating the
31 contents of a fortune file. It allows you to write a complete fortune
32 file and the associated binary header file from an array of fortunes.
33 You may also add fortunes, delete fortunes, or update individual
34 fortunes in a fortune file. All write operations will produce a binary
35 header file to allow for greater compatability with the fortune and
36 fortune-mod programs (as well as other fortune interfaces).
38 In PEAR status of this package is: %{_status}.
40 %description -l pl.UTF-8
41 File_Fortune dostarcza interfejs PHP do odczytu plików z fortunkami.
42 Przy jego użyciu możliwe jest odczytanie pojedynczej lub losowej
43 fortunki, jak również wszystkie fortunki z pliku.
45 File_Fortune_Writer dostarcza interfejs do obróbki zawartości pliku z
46 fortunkami. Pozwala na zapisywanie do pliku zestawu fortunek jak
47 również odpowiedniego binarnego nagłówka. Możliwe jest także
48 dodawanie, usuwanie lub modyfikowanie poszczególnych fortunek.
49 Operacje zapisu stworzą binarny plik z nagłówkami pozwalający na
50 większą zgodność z plikami fortune i fortune-mod (jak również z innymi
51 interfejsami do fortunek).
53 Ta klasa ma w PEAR status: %{_status}.
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{php_pear_dir}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc install.log docs/%{_pearname}/tutorials/File_Fortune.cls
69 %{php_pear_dir}/.registry/*.reg
70 %{php_pear_dir}/data/%{_pearname}
71 %{php_pear_dir}/File/Fortune
72 %{php_pear_dir}/File/Fortune.php