]> git.pld-linux.org Git - packages/php-pear-Date.git/blob - php-pear-Date.spec
- fix requires for -tests (typo)
[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:        3.2
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-pear
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
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.
30
31 In PEAR status of this package is: %{_status}.
32
33 %description -l pl
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
41 i ludzkim.
42
43 Ta klasa ma w PEAR status: %{_status}.
44
45 %package tests
46 Summary:        Tests for PEAR::%{_pearname}
47 Summary(pl):    Testy dla PEAR::%{_pearname}
48 Group:          Development
49 Requires:       %{name} = %{epoch}:%{version}-%{release}
50
51 %description tests
52 Tests for PEAR::%{_pearname}.
53
54 %description tests -l pl
55 Testy dla PEAR::%{_pearname}.
56
57 %prep
58 %pear_package_setup
59 cd ./%{php_pear_dir}
60 %patch0 -p1
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{php_pear_dir}
65 %pear_package_install
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc install.log
73 %doc docs/%{_pearname}/TODO
74 %dir %{php_pear_dir}/%{_class}
75 %{php_pear_dir}/.registry/*.reg
76 %{php_pear_dir}/*.php
77 %{php_pear_dir}/%{_class}/*.php
78
79 %files tests
80 %defattr(644,root,root,755)
81 %{php_pear_dir}/tests/*
This page took 0.132143 seconds and 4 git commands to generate.