]>
Commit | Line | Data |
---|---|---|
6c74bf97 | 1 | %include /usr/lib/rpm/macros.php |
b6e4e8fe | 2 | %define _class File |
3 | %define _subclass PDF | |
6c74bf97 AG |
4 | %define _status beta |
5 | %define _pearname %{_class}_%{_subclass} | |
6 | ||
7 | Summary: %{_pearname} - PDF generation using only PHP | |
4f3158f8 | 8 | Summary(pl.UTF-8): %{_pearname} - generowanie PDF za pomocą samego PHP |
6c74bf97 | 9 | Name: php-pear-%{_pearname} |
771b776a AG |
10 | Version: 0.1.0 |
11 | Release: 1 | |
2e38a205 | 12 | Epoch: 0 |
6c74bf97 AG |
13 | License: LGPL |
14 | Group: Development/Languages/PHP | |
15 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
771b776a | 16 | # Source0-md5: 8e62a88fcb680c787b4933b35a8b8cba |
2802d214 | 17 | URL: http://pear.php.net/package/File_PDF/ |
177da147 | 18 | BuildRequires: php-pear-PEAR |
a8a50e21 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
8531301e | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
2fa7516f | 21 | Requires: php-common >= 3:4.2.0 |
6c74bf97 AG |
22 | Requires: php-pear |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
a8a50e21 ER |
26 | # exclude optional dependencies |
27 | %define _noautoreq 'pear(HTTP/Download.*)' | |
28 | ||
6c74bf97 AG |
29 | %description |
30 | This package provides PDF generation using only PHP, without requiring | |
31 | any external libraries. | |
32 | ||
33 | In PEAR status of this package is: %{_status}. | |
34 | ||
c30e7ebb JR |
35 | %description -l pl.UTF-8 |
36 | Ta klasa umożliwia generowanie dokumentów PDF za pomocą samego PHP, bez | |
37 | konieczności posiadania zewnętrznych bibliotek. | |
6c74bf97 AG |
38 | |
39 | Ta klasa ma w PEAR status: %{_status}. | |
40 | ||
a8a50e21 ER |
41 | %package tests |
42 | Summary: Tests for PEAR::%{_pearname} | |
4f3158f8 | 43 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
79a0acfa | 44 | Group: Development/Languages/PHP |
c4c2c5cb | 45 | Requires: %{name} = %{epoch}:%{version}-%{release} |
9df7cac4 | 46 | AutoReq: no |
b011bb49 | 47 | AutoProv: no |
a8a50e21 ER |
48 | |
49 | %description tests | |
50 | Tests for PEAR::%{_pearname}. | |
51 | ||
c30e7ebb | 52 | %description tests -l pl.UTF-8 |
a8a50e21 ER |
53 | Testy dla PEAR::%{_pearname}. |
54 | ||
6c74bf97 | 55 | %prep |
a8a50e21 | 56 | %pear_package_setup |
6c74bf97 AG |
57 | |
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
a8a50e21 ER |
60 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
61 | %pear_package_install | |
6c74bf97 AG |
62 | |
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
a8a50e21 ER |
66 | %post |
67 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
68 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
69 | fi | |
70 | ||
6c74bf97 AG |
71 | %files |
72 | %defattr(644,root,root,755) | |
a8a50e21 ER |
73 | %doc install.log optional-packages.txt |
74 | %{php_pear_dir}/.registry/*.reg | |
6c74bf97 AG |
75 | %{php_pear_dir}/%{_class}/*.php |
76 | %{php_pear_dir}/%{_class}/%{_subclass} | |
a8a50e21 ER |
77 | |
78 | %files tests | |
79 | %defattr(644,root,root,755) | |
80 | %{php_pear_dir}/tests/* |