--- /dev/null
+# ToDo:
+# - pl description
+# - think about renaming generate script
+%include /usr/lib/rpm/macros.php
+%define _class Text
+%define _subclass Highlighter
+%define _status beta
+%define _pearname %{_class}_%{_subclass}
+
+Summary: %{_pearname} - Syntax highlighting
+Summary(pl): %{_pearname} - Pod¶wietlanie sk³adni
+Name: php-pear-%{_pearname}
+Version: 0.4.1
+Release: 1
+License: PHP 2.02
+Group: Development/Languages/PHP
+Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
+# Source0-md5: 22b1b6a72dbaa86499e263151c35fbcb
+URL: http://pear.php.net/package/Class_Subclass/
+BuildRequires: rpm-php-pearprov >= 4.0.2-98
+Requires: php-pear
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Text_Highlighter is a package for syntax highlighting.
+
+It provides a base class providing all the functionality,
+and a descendent classes geneator class.
+
+The main idea is to simplify creation of subclasses
+implementing syntax highlighting for particular language.
+Subclasses do not implement any new functioanality,
+they just provide syntax highlighting rules.
+The rules sources are in XML format.
+
+To create a highlighter for a language, there is no need
+to code a new class manually. Simply describe the rules
+in XML file and use Text_Highlighter_Generator to create
+a new class.
+
+In PEAR status of this package is: %{_status}.
+
+#%description -l pl
+#
+#Ta klasa ma w PEAR status: %{_status}.
+
+%prep
+%setup -q -c
+
+%build
+cd %{_pearname}-%{version}
+sed 's,@php_bin@,%{_bindir}/php,' generate > a
+mv -f a generate
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir}/%{_class}/%{_subclass}}
+
+install %{_pearname}-%{version}/generate $RPM_BUILD_ROOT%{_bindir}
+install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}
+install %{_pearname}-%{version}/*.xml $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
+install %{_pearname}-%{version}/%{_subclass}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class}/%{_subclass}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc %{_pearname}-%{version}/tutorials
+%attr(755,root,root) %{_bindir}/*
+%{php_pear_dir}/%{_class}/*.php
+%{php_pear_dir}/%{_class}/%{_subclass}