2 %define pearname Date_Holidays
3 Summary: %{pearname} - driver based class to calculate holidays
4 Summary(pl.UTF-8): %{pearname} - klasa oparta na sterownikach do wyliczania świąt
5 Name: php-pear-%{pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{pearname}-%{version}.tgz
11 # Source0-md5: 1530a1a62a7f5d7a863d01740da5550c
12 URL: http://pear.php.net/package/Date_Holidays/
13 BuildRequires: php-pear-PEAR >= 1:1.6.0
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.654
17 Requires: php-pear-Date
18 Requires: php-pear-PEAR-core >= 1:1.3.1
19 Requires: php-pear-XML_Serializer
20 Suggests: php-pear-Console_Getargs
21 Obsoletes: php-pear-Date_Holidays-tests
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _noautoreq_pear Console/Getargs.php
28 Date_Holidays helps you calculating the dates and titles of holidays
29 and other special celebrations. The calculation is driver-based so it
30 is easy to add new drivers that calculate a country's holidays. The
31 methods of the class can be used to get a holiday's date and title in
34 In PEAR status of this package is: %{status}.
36 %description -l pl.UTF-8
37 Klasa Date_Holidays pomaga przy wyliczaniu dat i nazw świąt oraz
38 innych specjalnych okazji. Obliczenia są oparte na sterownikach, więc
39 łatwo można dodać nowe sterowniki obliczające święta narodowe. Metody
40 klasy mogą być używane do uzyskania dat i nazw świąt w różnych
43 Ta klasa ma w PEAR status: %{status}.
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{php_pear_dir}
54 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
55 cat %{_docdir}/%{name}-%{version}/optional-packages.txt
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %doc install.log optional-packages.txt
64 %doc docs/%{pearname}/examples
65 %{php_pear_dir}/.registry/*.reg
66 %{php_pear_dir}/Date/*.php
67 %{php_pear_dir}/Date/Holidays
68 %{php_pear_dir}/data/%{pearname}