3 %bcond_without tests # do not perform "make test"
6 Summary: GraphViz Perl module - interface to the GraphViz graphing tool
7 Summary(pl.UTF-8): Moduł Perla GraphViz - interfejs do narzędzia grafowego GraphViz
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/GraphViz/%{pdir}-%{version}.tgz
15 # Source0-md5: b57b32444e73d24cf9c374bf38bad699
16 Patch0: %{name}-path.patch
17 URL: http://search.cpan.org/dist/GraphViz/
19 BuildRequires: graphviz
21 BuildRequires: perl-Graph
22 BuildRequires: perl-IPC-Run >= 0.6
23 BuildRequires: perl-Math-Bezier
24 BuildRequires: perl-Parse-RecDescent
25 BuildRequires: perl-devel >= 1:5.8.0
26 BuildRequires: rpm-perlprov >= 4.1-13
28 Requires: perl-IPC-Run >= 0.6
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 # needed only for GraphViz::XML
33 %define _noautoreq 'perl(XML::Twig)'
36 This modules provides an interface to layout and generate images of
37 directed graphs in a variety of formats (PostScript, PNG, etc.) using
38 the "dot" and "neato" programs from the GraphViz project.
40 %description -l pl.UTF-8
41 Ten moduł udostępnia interfejs do planowania i generowania obrazów
42 skierowanych grafów w różnych formatach (PostScript, PNG itd.) przy
43 użyciu programów "dot" i "neato" z projektu GraphViz.
46 %setup -q -n %{pdir}-%{version}
50 %{__perl} Makefile.PL \
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 DESTDIR=$RPM_BUILD_ROOT
63 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
71 %{perl_vendorlib}/Devel/*.pm
72 %{perl_vendorlib}/GraphViz.pm
73 %{perl_vendorlib}/GraphViz
75 %dir %{_examplesdir}/%{name}-%{version}
76 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
77 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.graphviz
78 %{_examplesdir}/%{name}-%{version}/*.output
79 %{_examplesdir}/%{name}-%{version}/*.out
80 %{_examplesdir}/%{name}-%{version}/README