2 %define _pearname Text_Highlighter
3 Summary: %{_pearname} - syntax highlighting
4 Summary(pl.UTF-8): %{_pearname} - podświetlanie składni
5 Name: php-pear-%{_pearname}
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
11 # Source0-md5: 0eb11e9588ad5c7a1046ffad3ca2aed8
12 URL: http://pear.php.net/package/Text_Highlighter/
13 BuildRequires: php-pear-PEAR >= 1:1.4.0-0.b1
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.300
16 Requires: php(core) >= 5.4.0
18 Requires: php-pear-Console_Getopt >= 1.4.1
19 Requires: php-pear-PEAR-core >= 1:1.10.3
20 Requires: php-pear-XML_Parser >= 1.3.7
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Text_Highlighter is a package for syntax highlighting.
27 It provides a base class providing all the functionality, and a
28 descendent classes geneator class.
30 The main idea is to simplify creation of subclasses implementing
31 syntax highlighting for particular language. Subclasses do not
32 implement any new functionality, they just provide syntax highlighting
33 rules. The rules sources are in XML format.
35 To create a highlighter for a language, there is no need to code a new
36 class manually. Simply describe the rules in XML file and use
37 Text_Highlighter_Generator to create a new class.
39 In PEAR status of this package is: %{_status}.
41 %description -l pl.UTF-8
42 Text_Highlighter to pakiet do podświetlania składni.
44 Zawiera klasę bazową dostarczającą całą funkcjonalność i klasę
45 generującą klasy dziedziczące.
47 Główną ideą jest uproszczenie tworzenia podklas implementujących
48 podświetlanie składni dla danego języka. Podklasy nie implementują
49 żadnej nowej funkcjonalności, a jedynie dostarczają reguły
50 podświetlania składni. Źródła reguł są w formacie XML.
52 Aby stworzyć podświetlanie dla języka, nie trzeba kodować ręcznie
53 nowej klasy. Wystarczy opisać reguły w pliku XML i użyć
54 Text_Highlighter_Generator, aby utworzyć nową klasę.
56 Ta klasa ma w PEAR status: %{_status}.
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
72 %doc docs/%{_pearname}/*
73 %{php_pear_dir}/.registry/*.reg
74 %{php_pear_dir}/Text/*.php
75 %{php_pear_dir}/Text/Highlighter
77 %{php_pear_dir}/data/%{_pearname}