]>
Commit | Line | Data |
---|---|---|
1433d09d JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
9881de6e | 5 | %define pdir Math |
6 | %define pnam Fractal-Mandelbrot | |
1433d09d | 7 | Summary: Math::Fractal::Mandelbrot - calculate points in the Mandelbrot fractal |
7d09922a | 8 | Summary(pl.UTF-8): Math::Fractal::Mandelbrot - obliczanie punktów we fraktalu Mandelbrota |
1433d09d | 9 | Name: perl-Math-Fractal-Mandelbrot |
e0f97bec | 10 | Version: 0.04 |
a4fdee83 | 11 | Release: 14 |
1433d09d | 12 | # same as perl |
7bec9244 | 13 | License: GPL v1+ or Artistic |
1433d09d | 14 | Group: Development/Languages/Perl |
d8326c93 | 15 | Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz |
e0f97bec | 16 | # Source0-md5: b3658ce83d925e109b678dfcfa21dabf |
d8326c93 | 17 | URL: http://search.cpan.org/dist/Math-Fractal-Mandelbrot/ |
e0f97bec | 18 | BuildRequires: perl-YAML |
1b72fffa | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
1433d09d JB |
20 | BuildRequires: rpm-perlprov >= 4.1-13 |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | This module calculates points, horizontal/vertical stripes or | |
25 | rectangular areas of the famous Mandelbrot fractal. | |
26 | ||
cbf9091b JR |
27 | %description -l pl.UTF-8 |
28 | Ten moduł oblicza punkty, poziome lub pionowe pasy lub prostokątne | |
29 | obszary słynnego fraktala Mandelbrota. | |
1433d09d JB |
30 | |
31 | %prep | |
32 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
33 | ||
34 | %build | |
35 | %{__perl} Makefile.PL \ | |
36 | INSTALLDIRS=vendor | |
37 | ||
38 | %{__make} \ | |
fa0a0035 | 39 | CC="%{__cc}" \ |
1433d09d JB |
40 | OPTIMIZE="%{rpmcflags}" |
41 | ||
42 | %{?with_tests:%{__make} test} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
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 | |
1433d09d JB |
60 | %attr(755,root,root) %{perl_vendorarch}/auto/Math/Fractal/Mandelbrot/Mandelbrot.so |
61 | %{_mandir}/man3/* |