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
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Generic classes for representation and manipulation of dates, times
24 and time zones without the need of timestamps, which is a huge
25 limitation for PHP programs. Includes time zone data, time zone
26 conversions and many date/time conversions. It does not rely on 32-bit
27 system date stamps, so you can display calendars and compare dates
28 that date pre 1970 and post 2038. This package also provides a class
29 to convert date strings between Gregorian and Human calendar formats.
31 In PEAR status of this package is: %{_status}.
34 Podstawowe klasy do pokazywania i manipulowania datami, czasem i
35 strefami czasowymi bez potrzeby u¿ywania timestamps, które s± ogromnym
36 ograniczeniem programów w PHP. Zawiera konwersjê stref czasowych,
37 czasu, daty, bazowane na Date::Calc. Nie zale¿y od 32-bitowych
38 systemowych timestampów, wiêc mo¿e wy¶wietlaæ kalendarz oraz
39 porównywaæ daty prze 1970 i po 2038 roku. Ten pakiet zawiera tak¿e
40 klasy do konwersji ci±gów znakowych pomiêdzy kalendarzem gregoriañskim
43 Ta klasa ma w PEAR status: %{_status}.
46 Summary: Tests for PEAR::%{_pearname}
47 Summary(pl): Testy dla PEAR::%{_pearname}
49 Requires: %{name} = %{epoch}:%{version}-%{release}
52 Tests for PEAR::%{_pearname}.
54 %description tests -l pl
55 Testy dla PEAR::%{_pearname}.
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}/TODO
74 %dir %{php_pear_dir}/%{_class}
75 %{php_pear_dir}/.registry/*.reg
77 %{php_pear_dir}/%{_class}/*.php
80 %defattr(644,root,root,755)
81 %{php_pear_dir}/tests/*