]> git.pld-linux.org Git - packages/php-pear-Text_Highlighter.git/blob - php-pear-Text_Highlighter.spec
- converted to UTF-8
[packages/php-pear-Text_Highlighter.git] / php-pear-Text_Highlighter.spec
1 # TODO:
2 # - think about renaming generate script
3 # - error: php-pear-Text_Highlighter-0.6.5-1 (cnfl rails = 0.12.1-1) conflicts with installed rails-0.12.1-1
4 %include        /usr/lib/rpm/macros.php
5 %define         _class          Text
6 %define         _subclass       Highlighter
7 %define         _status         beta
8 %define         _pearname       %{_class}_%{_subclass}
9 Summary:        %{_pearname} - syntax highlighting
10 Summary(pl.UTF-8):   %{_pearname} - podświetlanie składni
11 Name:           php-pear-%{_pearname}
12 Version:        0.6.9
13 Release:        1
14 License:        PHP 2.02
15 Group:          Development/Languages/PHP
16 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
17 # Source0-md5:  59f4f5b8cd666b5126e972ed96fd629c
18 URL:            http://pear.php.net/package/Text_Highlighter/
19 BuildRequires:  php-pear-PEAR
20 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
21 BuildRequires:  rpmbuild(macros) >= 1.300
22 Requires:       php-common >= 3:4.3.3
23 Requires:       php-pear
24 Requires:       php-pear-Console_Getopt >= 1.0
25 Requires:       php-pear-PEAR-core >= 1:1.0
26 Requires:       php-pear-XML_Parser >= 1.0.1
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Text_Highlighter is a package for syntax highlighting.
32
33 It provides a base class providing all the functionality, and a
34 descendent classes geneator class.
35
36 The main idea is to simplify creation of subclasses implementing
37 syntax highlighting for particular language. Subclasses do not
38 implement any new functionality, they just provide syntax highlighting
39 rules. The rules sources are in XML format.
40
41 To create a highlighter for a language, there is no need to code a new
42 class manually. Simply describe the rules in XML file and use
43 Text_Highlighter_Generator to create a new class.
44
45 In PEAR status of this package is: %{_status}.
46
47 %description -l pl.UTF-8
48 Text_Highlighter to pakiet do podświetlania składni.
49
50 Zawiera klasę bazową dostarczającą całą funkcjonalność i klasę
51 generującą klasy dziedziczące.
52
53 Główną ideą jest uproszczenie tworzenia podklas implementujących
54 podświetlanie składni dla danego języka. Podklasy nie implementują
55 żadnej nowej funkcjonalności, a jedynie dostarczają reguły
56 podświetlania składni. Źródła reguł są w formacie XML.
57
58 Aby stworzyć podświetlanie dla języka, nie trzeba kodować ręcznie
59 nowej klasy. Wystarczy opisać reguły w pliku XML i użyć
60 Text_Highlighter_Generator, aby utworzyć nową klasę.
61
62 Ta klasa ma w PEAR status: %{_status}.
63
64 %prep
65 %pear_package_setup
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}}
70 %pear_package_install
71 install ./%{_bindir}/%{_class}/%{_subclass}/generate $RPM_BUILD_ROOT%{_bindir}/generate
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %doc install.log
79 %doc docs/%{_pearname}/*
80 %attr(755,root,root) %{_bindir}/*
81 %{php_pear_dir}/.registry/*.reg
82 %{php_pear_dir}/%{_class}/*.php
83 %{php_pear_dir}/%{_class}/%{_subclass}
84
85 %{php_pear_dir}/data/%{_pearname}
This page took 0.798624 seconds and 3 git commands to generate.