%include /usr/lib/rpm/macros.php %define _class XML %define _subclass Beautifier %define _status beta %define _pearname %{_class}_%{_subclass} Summary: %{_pearname} - class to format XML documents Summary(pl): %{_pearname} - klasa do formatowania dokumentów XML Name: php-pear-%{_pearname} Version: 0.3 Release: 1 License: PHP 2.02 Group: Development/Languages/PHP Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz # Source0-md5: 3c996c9d9a122687ad70a3a64aca0edf URL: http://pear.php.net/package/XML_Beautifier/ BuildRequires: rpm-php-pearprov >= 4.0.2-98 Requires: php-pear BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description XML_Beautifier will add indentation and linebreaks to you XML files, replace all entities, format your comments and makes your document easier to read. You can influence the way your document is beautified with several options. This class has in PEAR status: %{_status}. %description -l pl XML_Beautifier dodaje wcięcia i znaki końca linii do plików XML, zastępuje wszelkie encje, przeformatowuje komentarze i sprawia, że dokument jest łatwiejszy do czytania. Za pomoc± wielu opcji można wpłyn±ć na sposób, w jaki dokument będzie upiększony. Ta klasa ma w PEAR status: %{_status}. %prep %setup -q -c %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} install %{_pearname}-%{version}/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{_class} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc %{_pearname}-%{version}/examples %{php_pear_dir}/%{_class}/*.php