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