1 %include /usr/lib/rpm/macros.php
4 %define _pearname %{_class}
6 Summary: %{_pearname} - date and time zone classes
7 Summary(pl): %{_pearname} - klasy daty i stref czasowych
8 Name: php-pear-%{_pearname}
12 Group: Development/Languages/PHP
13 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
14 # Source0-md5: e1ac9ae6469584e6f887b6fd020b3ae1
15 Patch0: %{name}-tz-baltic-hasdst.patch
16 URL: http://pear.php.net/package/Date/
17 BuildRequires: rpm-php-pearprov >= 4.4.2-11
18 Requires: php-common >= 3:4.2
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Generic classes for representation and manipulation of dates, times
25 and time zones without the need of timestamps, which is a huge
26 limitation for PHP programs. Includes time zone data, time zone
27 conversions and many date/time conversions. It does not rely on 32-bit
28 system date stamps, so you can display calendars and compare dates
29 that date pre 1970 and post 2038. This package also provides a class
30 to convert date strings between Gregorian and Human calendar formats.
32 In PEAR status of this package is: %{_status}.
35 Podstawowe klasy do pokazywania i manipulowania datami, czasem i
36 strefami czasowymi bez potrzeby u¿ywania timestamps, które s± ogromnym
37 ograniczeniem programów w PHP. Zawiera konwersjê stref czasowych,
38 czasu, daty, bazowane na Date::Calc. Nie zale¿y od 32-bitowych
39 systemowych timestampów, wiêc mo¿e wy¶wietlaæ kalendarz oraz
40 porównywaæ daty prze 1970 i po 2038 roku. Ten pakiet zawiera tak¿e
41 klasy do konwersji ci±gów znakowych pomiêdzy kalendarzem gregoriañskim
44 Ta klasa ma w PEAR status: %{_status}.
47 Summary: Tests for PEAR::%{_pearname}
48 Summary(pl): Testy dla PEAR::%{_pearname}
50 Requires: %{name} = %{epoch}:%{version}-%{release}
54 Tests for PEAR::%{_pearname}.
56 %description tests -l pl
57 Testy dla PEAR::%{_pearname}.
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{php_pear_dir}
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %doc docs/%{_pearname}/TODO
76 %dir %{php_pear_dir}/%{_class}
77 %{php_pear_dir}/.registry/*.reg
79 %{php_pear_dir}/%{_class}/*.php
82 %defattr(644,root,root,755)
83 %{php_pear_dir}/tests/*