]>
Commit | Line | Data |
---|---|---|
2e4268a1 | 1 | %include /usr/lib/rpm/macros.php |
6fc9bdef | 2 | %define _class PHP |
3 | %define _subclass Beautifier | |
7e017ab9 | 4 | %define _status beta |
2e4268a1 | 5 | %define _pearname %{_class}_%{_subclass} |
e50392d2 | 6 | Summary: %{_pearname} - beautifier for PHP |
ba6172b1 | 7 | Summary(pl.UTF-8): %{_pearname} - upiększacz dla PHP |
2e4268a1 | 8 | Name: php-pear-%{_pearname} |
3e33e890 AG |
9 | Version: 0.1.14 |
10 | Release: 1 | |
b9b3148e | 11 | Epoch: 0 |
75a12a25 | 12 | License: PHP 3.0 |
2e4268a1 AG |
13 | Group: Development/Languages/PHP |
14 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz | |
3e33e890 | 15 | # Source0-md5: 588e9645a6e885dcb382a9f255652333 |
db51674f | 16 | Patch0: %{name}-path_fix.patch |
8f903a1a | 17 | URL: http://pear.php.net/package/PHP_Beautifier/ |
61a90121 | 18 | BuildRequires: php-pear-PEAR |
f6ac9805 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
4b16dc33 | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
ea3e9908 | 21 | Requires: php(tokenizer) |
1d0364e4 ER |
22 | Requires: php-common >= 3:5 |
23 | Requires: php-pear >= 4:1.0-7 | |
24 | Requires: php-pear-Log >= 1.8 | |
2e4268a1 AG |
25 | BuildArch: noarch |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
ee936159 ER |
28 | # exclude optional dependencies |
29 | %define _noautoreq 'pear(Console/Getopt.*)' 'pear(Archive/Tar.*)' | |
30 | ||
2e4268a1 | 31 | %description |
e50392d2 | 32 | This program reformat and beautify PHP source code files |
33 | automatically. | |
2e4268a1 AG |
34 | |
35 | In PEAR status of this package is: %{_status}. | |
36 | ||
3cad3f3b JR |
37 | %description -l pl.UTF-8 |
38 | Ten program automatycznie przeformatuje i upiększy kod źródłowy | |
2e4268a1 AG |
39 | aplikacji napisanych w PHP. |
40 | ||
41 | Ta klasa ma w PEAR status: %{_status}. | |
42 | ||
f6ac9805 ER |
43 | %package tests |
44 | Summary: Tests for PEAR::%{_pearname} | |
ba6172b1 | 45 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
5f23efdf | 46 | Group: Development/Languages/PHP |
79a96d2d | 47 | Requires: %{name} = %{epoch}:%{version}-%{release} |
d080bb59 | 48 | AutoReq: no |
26c75ac7 | 49 | AutoProv: no |
f6ac9805 ER |
50 | |
51 | %description tests | |
52 | Tests for PEAR::%{_pearname}. | |
53 | ||
3cad3f3b | 54 | %description tests -l pl.UTF-8 |
f6ac9805 ER |
55 | Testy dla PEAR::%{_pearname}. |
56 | ||
2e4268a1 | 57 | %prep |
f6ac9805 | 58 | %pear_package_setup |
75a12a25 | 59 | %patch0 -p1 |
2e4268a1 | 60 | |
2e4268a1 AG |
61 | %install |
62 | rm -rf $RPM_BUILD_ROOT | |
f6ac9805 ER |
63 | install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}} |
64 | %pear_package_install | |
65 | cp -a ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir} | |
2e4268a1 AG |
66 | |
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
ee936159 ER |
70 | %post |
71 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
72 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
73 | fi | |
74 | ||
2e4268a1 AG |
75 | %files |
76 | %defattr(644,root,root,755) | |
f6ac9805 ER |
77 | %doc install.log optional-packages.txt |
78 | %doc docs/%{_pearname}/examples | |
79 | %{php_pear_dir}/.registry/*.reg | |
8f903a1a | 80 | %attr(755,root,root) %{_bindir}/php_beautifier |
2e4268a1 AG |
81 | %{php_pear_dir}/%{_class}/*.php |
82 | %{php_pear_dir}/%{_class}/%{_subclass} | |
f6ac9805 ER |
83 | |
84 | %{php_pear_dir}/data/%{_pearname} | |
85 | ||
86 | %files tests | |
87 | %defattr(644,root,root,755) | |
88 | %{php_pear_dir}/tests/* |