]> git.pld-linux.org Git - packages/perl-PGPLOT.git/blobdiff - perl-PGPLOT.spec
- standarized
[packages/perl-PGPLOT.git] / perl-PGPLOT.spec
index f61fa1c25a703f621ca7201f654ca96ee129a1ac..0a7ab8709fa9cbbe41d34cbda718910382e3e91f 100644 (file)
@@ -1,18 +1,25 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
+%define        pdir    PGPLOT
 Summary:       PGPLOT perl module
 Summary(pl):   Modu³ perla PGPLOT
 Name:          perl-PGPLOT
 Version:       2.18
-Release:       3
-License:       GPL
+Release:       5
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/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/%{pdir}/%{pdir}-%{version}.tar.gz
+# Source0-md5: 0c27c49f6443eb4fdcc9eaee4c756c87
 BuildRequires: XFree86-devel
-BuildRequires: pgplot-devel
-BuildRequires: perl-ExtUtils-F77 >= 1.11
 BuildRequires: gcc-g77
+BuildRequires: perl-devel >= 1:5.8.0
+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
@@ -22,16 +29,20 @@ PGPLOT - perl interface to the PGPLOT graphics library.
 PGPLOT - interfejs perla do biblioteki graficznej PGPLOT.
 
 %prep
-%setup -q -n PGPLOT-%{version}
+%setup -q -n %{pdir}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:echo /NULL | %{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -39,8 +50,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGES README HELP
-%{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
+%{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.035582 seconds and 4 git commands to generate.