]>
Commit | Line | Data |
---|---|---|
b9750115 | 1 | %include /usr/lib/rpm/macros.php |
47de94ea | 2 | %define _class HTML |
3 | %define _subclass CSS | |
aeacd556 | 4 | %define _status stable |
b9750115 | 5 | %define _pearname %{_class}_%{_subclass} |
47de94ea | 6 | |
b9750115 | 7 | Summary: %{_pearname} - class for generating CSS declarations |
2cb43ff8 | 8 | Summary(pl.UTF-8): %{_pearname} - klasa do generowania deklaracji CSS |
b9750115 | 9 | Name: php-pear-%{_pearname} |
20a31082 | 10 | Version: 1.2.0 |
47ed915f | 11 | Release: 1 |
a59f4515 | 12 | Epoch: 0 |
20a31082 | 13 | License: BSD |
b9750115 | 14 | Group: Development/Languages/PHP |
aeacd556 | 15 | Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz |
20a31082 | 16 | # Source0-md5: b6b9e697fb1aeb88b28e799470a02785 |
874f5352 | 17 | URL: http://pear.php.net/package/HTML_CSS/ |
4568aa1d | 18 | BuildRequires: php-pear-PEAR |
04ad78a4 | 19 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
c27f06f6 | 20 | BuildRequires: rpmbuild(macros) >= 1.300 |
b9750115 | 21 | Requires: php-pear |
0266cd9c | 22 | Requires: php-pear-HTML_Common >= 1.2 |
e5a52419 | 23 | Requires: php-pear-PEAR-core >= 1:1.3.1 |
b9750115 AG |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
04ad78a4 | 27 | # included in tests |
bdb48052 | 28 | %define _noautoreq 'pear(HTML_TestListener.php)' 'pear(TestUnit.php)' 'pear(PEAR.*)' |
04ad78a4 | 29 | |
b9750115 AG |
30 | %description |
31 | %{_pearname} provides a simple interface for generating a stylesheet | |
32 | declaration. It is completely standards compliant, and has some great | |
33 | features: | |
34 | - simple OO interface to CSS definitions | |
35 | - output to: | |
038a1149 | 36 | - inline stylesheet declarations |
b9750115 AG |
37 | - document internal stylesheet declarations |
38 | - standalone stylesheet declarations | |
39 | - array of definitions | |
40 | ||
41 | In addition, it shares the following with HTML_Common based classes: | |
42 | - indent style support | |
43 | - line ending style | |
44 | ||
af37cfad | 45 | In PEAR status of this package is: %{_status}. |
b9750115 | 46 | |
1a6a8f19 | 47 | %description -l pl.UTF-8 |
b9750115 | 48 | %{_pearname} dostarcza prostego interfejsu do generowania deklaracji |
1a6a8f19 JR |
49 | arkusza stylów. Jest całkowicie zgodny ze standardami, i ma kilka |
50 | świetnych cech: | |
038a1149 | 51 | - prosty obiektowo zorientowany interfejs do definicji CSS |
1a6a8f19 JR |
52 | - wyjście do: |
53 | - deklaracji arkusza stylów w miejscu | |
54 | - wewnętrznych deklaracji arkusza stylów w dokumencie | |
038a1149 JB |
55 | - samodzielnego pliku z definicjami |
56 | - tablicy definicji | |
b9750115 | 57 | |
1a6a8f19 | 58 | Ponadto współdzieli następujące cechy z klasami opartymi na |
b9750115 | 59 | HTML_Common: |
1a6a8f19 JR |
60 | - różne style wcięć |
61 | - różne rodzaje znaków końca linii | |
b9750115 AG |
62 | |
63 | Ta klasa ma w PEAR status: %{_status}. | |
64 | ||
04ad78a4 ER |
65 | %package tests |
66 | Summary: Tests for PEAR::%{_pearname} | |
2cb43ff8 | 67 | Summary(pl.UTF-8): Testy dla PEAR::%{_pearname} |
06eb72d2 | 68 | Group: Development/Languages/PHP |
9aac2a3b | 69 | Requires: %{name} = %{epoch}:%{version}-%{release} |
c02e06b9 | 70 | AutoReq: no |
25ca8545 | 71 | AutoProv: no |
04ad78a4 ER |
72 | |
73 | %description tests | |
74 | Tests for PEAR::%{_pearname}. | |
75 | ||
1a6a8f19 | 76 | %description tests -l pl.UTF-8 |
04ad78a4 ER |
77 | Testy dla PEAR::%{_pearname}. |
78 | ||
b9750115 | 79 | %prep |
04ad78a4 | 80 | %pear_package_setup |
b9750115 AG |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
04ad78a4 ER |
84 | install -d $RPM_BUILD_ROOT%{php_pear_dir} |
85 | %pear_package_install | |
b9750115 AG |
86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
bdb48052 ER |
90 | %post |
91 | if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then | |
92 | cat %{_docdir}/%{name}-%{version}/optional-packages.txt | |
93 | fi | |
94 | ||
b9750115 AG |
95 | %files |
96 | %defattr(644,root,root,755) | |
bdb48052 | 97 | %doc install.log optional-packages.txt |
04ad78a4 ER |
98 | %doc docs/%{_pearname}/examples |
99 | %{php_pear_dir}/.registry/*.reg | |
b9750115 | 100 | %{php_pear_dir}/%{_class}/*.php |
cebe96d5 | 101 | %{php_pear_dir}/%{_class}/%{_subclass} |
04ad78a4 ER |
102 | |
103 | %files tests | |
104 | %defattr(644,root,root,755) | |
105 | %{php_pear_dir}/tests/* |