3 %bcond_without tests # do not perform "make test"
6 %define pnam Fractal-Mandelbrot
7 Summary: Math::Fractal::Mandelbrot - calculate points in the Mandelbrot fractal
8 Summary(pl.UTF-8): Math::Fractal::Mandelbrot - obliczanie punktów we fraktalu Mandelbrota
9 Name: perl-Math-Fractal-Mandelbrot
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: b3658ce83d925e109b678dfcfa21dabf
17 URL: http://search.cpan.org/dist/Math-Fractal-Mandelbrot/
18 BuildRequires: perl-YAML
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This module calculates points, horizontal/vertical stripes or
25 rectangular areas of the famous Mandelbrot fractal.
27 %description -l pl.UTF-8
28 Ten moduł oblicza punkty, poziome lub pionowe pasy lub prostokątne
29 obszary słynnego fraktala Mandelbrota.
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
40 OPTIMIZE="%{rpmcflags}"
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
55 %doc BUGS CHANGES CREDITS README TODO
56 %dir %{perl_vendorarch}/Math/Fractal
57 %{perl_vendorarch}/Math/Fractal/Mandelbrot.pm
58 %dir %{perl_vendorarch}/auto/Math/Fractal
59 %dir %{perl_vendorarch}/auto/Math/Fractal/Mandelbrot
60 %attr(755,root,root) %{perl_vendorarch}/auto/Math/Fractal/Mandelbrot/Mandelbrot.so