]>
Commit | Line | Data |
---|---|---|
2a316bfb AG |
1 | %include /usr/lib/rpm/macros.php |
2 | %define _class Date | |
3 | %define _subclass Holidays_Discordian | |
4 | %define _status alpha | |
5 | %define _pearname Date_Holidays_Discordian | |
6 | Summary: %{_pearname} - Driver based class to calculate Discordian holidays | |
7 | Summary(pl.UTF-8): %{_pearname} - klasa do obliczania świąt dyskordiańskich | |
8 | Name: php-pear-%{_pearname} | |
e11f9f86 | 9 | Version: 0.1.1 |
2a316bfb AG |
10 | Release: 1 |
11 | License: PHP License | |
12 | Group: Development/Languages/PHP | |
13 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
e11f9f86 | 14 | # Source0-md5: d662c84dc43ac2f7496bd77914f90ede |
2a316bfb AG |
15 | URL: http://pear.php.net/package/Date_Holidays_Discordian/ |
16 | BuildRequires: php-pear-PEAR | |
17 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 | |
18 | Requires: php-pear | |
19 | Requires: php-pear-Date_Holidays >= 0.18.0 | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Date_Holidays helps you calculate the dates and titles of holidays and | |
25 | other special celebrations. This is the driver for calculating | |
26 | Discordian holidays. | |
27 | ||
28 | In PEAR status of this package is: %{_status}. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Date_Holidays pozwala na obliczenie dat oraz tytułów świąt oraz | |
32 | specjalnych okazji. Klasa ta pozwala na wyliczenie świąt | |
33 | dyskordiańskich. | |
34 | ||
35 | Ta klasa ma w PEAR status: %{_status}. | |
36 | ||
e11f9f86 AG |
37 | %package tests |
38 | Summary: Tests for PEAR::%{_pearname} | |
39 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} | |
40 | Group: Development/Languages/PHP | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | AutoReq: no | |
43 | AutoProv: no | |
44 | ||
45 | %description tests | |
46 | Tests for PEAR::%{_pearname}. | |
47 | ||
48 | %description tests -l pl.UTF-8 | |
49 | Testy dla PEAR::%{_pearname}. | |
50 | ||
2a316bfb AG |
51 | %prep |
52 | %pear_package_setup | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | install -d $RPM_BUILD_ROOT%{php_pear_dir} | |
57 | %pear_package_install | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc install.log | |
65 | %{php_pear_dir}/.registry/*.reg | |
66 | %{php_pear_dir}/Date/Holidays/Driver/Discordian.php | |
e11f9f86 AG |
67 | |
68 | %files tests | |
69 | %defattr(644,root,root,755) | |
70 | %{php_pear_dir}/tests/Date_Holidays_Discordian |