]> git.pld-linux.org Git - packages/php-pear-Date.git/blob - php-pear-Date.spec
- rel 4
[packages/php-pear-Date.git] / php-pear-Date.spec
1 %include        /usr/lib/rpm/macros.php
2 %define         _class          Date
3 %define         _status         stable
4 %define         _pearname       %{_class}
5
6 Summary:        %{_pearname} - date and time zone classes
7 Summary(pl):    %{_pearname} - klasy daty i stref czasowych
8 Name:           php-pear-%{_pearname}
9 Version:        1.4.3
10 Release:        4
11 License:        PHP 2.02
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
19 Requires:       php-pear
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
31
32 In PEAR status of this package is: %{_status}.
33
34 %description -l pl
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
42 i ludzkim.
43
44 Ta klasa ma w PEAR status: %{_status}.
45
46 %package tests
47 Summary:        Tests for PEAR::%{_pearname}
48 Summary(pl):    Testy dla PEAR::%{_pearname}
49 Group:          Development
50 Requires:       %{name} = %{epoch}:%{version}-%{release}
51 AutoReq:        no
52
53 %description tests
54 Tests for PEAR::%{_pearname}.
55
56 %description tests -l pl
57 Testy dla PEAR::%{_pearname}.
58
59 %prep
60 %pear_package_setup
61 cd ./%{php_pear_dir}
62 %patch0 -p1
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{php_pear_dir}
67 %pear_package_install
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc install.log
75 %doc docs/%{_pearname}/TODO
76 %dir %{php_pear_dir}/%{_class}
77 %{php_pear_dir}/.registry/*.reg
78 %{php_pear_dir}/*.php
79 %{php_pear_dir}/%{_class}/*.php
80
81 %files tests
82 %defattr(644,root,root,755)
83 %{php_pear_dir}/tests/*
This page took 0.054602 seconds and 3 git commands to generate.