%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.1 Release: 1 License: PHP 2.02 Group: Development/Languages/PHP # Source0-md5: 808bcaf329a8cd17db45385e6497c506 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz URL: http://pear.php.net/ 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. This class has in PEAR status: %{_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