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