%include /usr/lib/rpm/macros.php %define _class Image %define _subclass GraphViz %define _status stable %define _pearname %{_class}_%{_subclass} Summary: %{_pearname} - Interface to AT&T's GraphViz tools Summary(pl): %{_pearname} - interfejs do narzędzi GraphViz AT&T Name: php-pear-%{_pearname} Version: 1.0.3 Release: 2 License: PHP 2.02 Group: Development/Languages/PHP Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz # Source0-md5: 19e0fae22907225db28a0c8cce80a74f URL: http://pear.php.net/package/Image_GraphViz/ BuildRequires: rpm-php-pearprov >= 4.0.2-98 Requires: php-pear BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The GraphViz class allows for the creation of and the work with directed and undirected graphs and their visualization with AT&T's GraphViz tools. In PEAR status of this package is: %{_status}. %description -l pl Klasa GraphViz pozwala na tworzenie oraz pracę z bezpośrednimi i niebezpośrednimi grafami, a także ich wizualizację za pomocą narzędzi GraphViz AT&T. 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) %{php_pear_dir}/%{_class}/*.php