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