]>
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 |
65ad2ab5 | 8 | Summary(pl.UTF-8): Moduł perla PGPLOT |
307ca709 | 9 | Name: perl-PGPLOT |
6807c1a8 | 10 | Version: 2.18 |
19a3257a | 11 | Release: 5 |
ac871cf7 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
307ca709 | 14 | Group: Development/Languages/Perl |
b649e443 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz |
a5157b28 | 16 | # Source0-md5: 0c27c49f6443eb4fdcc9eaee4c756c87 |
307ca709 | 17 | BuildRequires: XFree86-devel |
0a1b910e | 18 | BuildRequires: gcc-g77 |
c7b56004 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
19a3257a JB |
20 | BuildRequires: perl-ExtUtils-F77 >= 1.11 |
21 | BuildRequires: pgplot-devel >= 5.2.2-1 | |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
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 | |
5a56ff83 | 44 | %{__make} install \ |
45 | DESTDIR=$RPM_BUILD_ROOT | |
307ca709 | 46 | |
307ca709 | 47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
99a5ecc4 | 52 | %doc CHANGES README HELP |
ed317344 | 53 | %{perl_vendorarch}/PGPLOT.pm |
54 | %dir %{perl_vendorarch}/auto/PGPLOT | |
55 | %{perl_vendorarch}/auto/PGPLOT/PGPLOT.bs | |
56 | %attr(755,root,root) %{perl_vendorarch}/auto/PGPLOT/PGPLOT.so | |
307ca709 | 57 | %{_mandir}/man3/* |