]> git.pld-linux.org Git - packages/php-pear-Date_Holidays.git/blob - php-pear-Date_Holidays.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/php-pear-Date_Holidays.git] / php-pear-Date_Holidays.spec
1 %define         status          alpha
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}
6 Version:        0.21.8
7 Release:        1
8 License:        PHP 2.02
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
16 Requires:       php-pear
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
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define _noautoreq_pear Console/Getargs.php
26
27 %description
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
32 various languages.
33
34 In PEAR status of this package is: %{status}.
35
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
41 językach.
42
43 Ta klasa ma w PEAR status: %{status}.
44
45 %prep
46 %pear_package_setup
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT%{php_pear_dir}
51 %pear_package_install
52
53 %post
54 if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
55         cat %{_docdir}/%{name}-%{version}/optional-packages.txt
56 fi
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
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}
This page took 0.090708 seconds and 4 git commands to generate.