]> git.pld-linux.org Git - packages/perl-PGPLOT.git/blobdiff - perl-PGPLOT.spec
- BR: perl-devel; do not BR: perl
[packages/perl-PGPLOT.git] / perl-PGPLOT.spec
index 914efa3fa2101873cd2615ee5554b95b2588f911..08d9ab31c660ec5b21c4f5ebfc0feb92c370f3c5 100644 (file)
@@ -1,18 +1,22 @@
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 Summary:       PGPLOT perl module
 Summary(pl):   Modu³ perla PGPLOT
 Name:          perl-PGPLOT
 Version:       2.18
-Release:       3
+Release:       5
 License:       GPL
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/PGPLOT/PGPLOT-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/PGPLOT/PGPLOT-%{version}.tar.gz
 BuildRequires: XFree86-devel
-BuildRequires: pgplot-devel
-BuildRequires: perl-ExtUtils-F77 >= 1.11
 BuildRequires: gcc-g77
+BuildRequires: perl-devel >= 5.6
+BuildRequires: perl-ExtUtils-F77 >= 1.11
+BuildRequires: pgplot-devel >= 5.2.2-1
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -25,24 +29,25 @@ PGPLOT - interfejs perla do biblioteki graficznej PGPLOT.
 %setup -q -n PGPLOT-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor 
 %{__make}
 
+%{!?_without_tests:echo /NULL | %{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf CHANGES README HELP
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitearch}/PGPLOT.pm
-%dir %{perl_sitearch}/auto/PGPLOT
-%{perl_sitearch}/auto/PGPLOT/PGPLOT.bs
-%attr(755,root,root) %{perl_sitearch}/auto/PGPLOT/PGPLOT.so
+%doc CHANGES README HELP
+%{perl_vendorarch}/PGPLOT.pm
+%dir %{perl_vendorarch}/auto/PGPLOT
+%{perl_vendorarch}/auto/PGPLOT/PGPLOT.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/PGPLOT/PGPLOT.so
 %{_mandir}/man3/*
This page took 0.071309 seconds and 4 git commands to generate.