3 %bcond_without tests # do not perform "make test"
6 Summary: PGPLOT perl module
7 Summary(pl.UTF-8): ModuĊ perla PGPLOT
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/PGPLOT/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 836d8eb09bfcadd5d4edf668a551f17a
16 URL: http://search.cpan.org/dist/PGPLOT/
17 BuildRequires: gcc-g77
18 BuildRequires: perl-ExtUtils-F77 >= 1.13
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: pgplot-devel >= 5.2.2-1
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: xorg-lib-libX11-devel
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 PGPLOT - perl interface to the PGPLOT graphics library.
28 %description -l pl.UTF-8
29 PGPLOT - interfejs perla do biblioteki graficznej PGPLOT.
32 %setup -q -n %{pdir}-%{version}
35 %{__perl} Makefile.PL \
39 %{?with_tests:echo /NULL | %{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} pure_install \
45 DESTDIR=$RPM_BUILD_ROOT
47 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/PGPLOT/.packlist
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc CHANGES README HELP
55 %{perl_vendorarch}/PGPLOT.pm
56 %dir %{perl_vendorarch}/auto/PGPLOT
57 %attr(755,root,root) %{perl_vendorarch}/auto/PGPLOT/PGPLOT.so