]>
Commit | Line | Data |
---|---|---|
19a3257a JB |
1 | # |
2 | # Conditional build: | |
5a56ff83 | 3 | %bcond_without tests # do not perform "make test" |
19a3257a | 4 | # |
307ca709 | 5 | %include /usr/lib/rpm/macros.perl |
b649e443 | 6 | %define pdir PGPLOT |
307ca709 | 7 | Summary: PGPLOT perl module |
46014053 | 8 | Summary(pl.UTF-8): Moduł perla PGPLOT |
307ca709 | 9 | Name: perl-PGPLOT |
ba2f345b | 10 | Version: 2.20 |
2b2ef612 | 11 | Release: 2 |
ac871cf7 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
307ca709 | 14 | Group: Development/Languages/Perl |
05e8ea19 | 15 | Source0: http://www.cpan.org/modules/by-module/PGPLOT/%{pdir}-%{version}.tar.gz |
ba2f345b | 16 | # Source0-md5: 2843f43f2062f32a79aac9767203e0bb |
05e8ea19 | 17 | URL: http://search.cpan.org/dist/PGPLOT/ |
0a1b910e | 18 | BuildRequires: gcc-g77 |
c7b56004 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
ba2f345b | 20 | BuildRequires: perl-ExtUtils-F77 >= 1.13 |
19a3257a JB |
21 | BuildRequires: pgplot-devel >= 5.2.2-1 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
05e8ea19 | 23 | BuildRequires: xorg-lib-libX11-devel |
304555db | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
307ca709 | 25 | |
26 | %description | |
27 | PGPLOT - perl interface to the PGPLOT graphics library. | |
28 | ||
65ad2ab5 | 29 | %description -l pl.UTF-8 |
307ca709 | 30 | PGPLOT - interfejs perla do biblioteki graficznej PGPLOT. |
31 | ||
32 | %prep | |
b649e443 | 33 | %setup -q -n %{pdir}-%{version} |
307ca709 | 34 | |
35 | %build | |
ed317344 | 36 | %{__perl} Makefile.PL \ |
35667923 | 37 | INSTALLDIRS=vendor |
80a6e862 | 38 | %{__make} |
307ca709 | 39 | |
5a56ff83 | 40 | %{?with_tests:echo /NULL | %{__make} test} |
19a3257a | 41 | |
307ca709 | 42 | %install |
43 | rm -rf $RPM_BUILD_ROOT | |
307ca709 | 44 | |
5a56ff83 | 45 | %{__make} install \ |
46 | DESTDIR=$RPM_BUILD_ROOT | |
307ca709 | 47 | |
307ca709 | 48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
99a5ecc4 | 53 | %doc CHANGES README HELP |
ed317344 | 54 | %{perl_vendorarch}/PGPLOT.pm |
55 | %dir %{perl_vendorarch}/auto/PGPLOT | |
56 | %{perl_vendorarch}/auto/PGPLOT/PGPLOT.bs | |
57 | %attr(755,root,root) %{perl_vendorarch}/auto/PGPLOT/PGPLOT.so | |
307ca709 | 58 | %{_mandir}/man3/* |