]> git.pld-linux.org Git - packages/perl-PGPLOT.git/blobdiff - perl-PGPLOT.spec
perl 5.38.0 rebuild
[packages/perl-PGPLOT.git] / perl-PGPLOT.spec
index 9ec33ec1e1e060e31f3e8ad3838b55bccea8badb..2a864c9b84c8757ed698aaf9f7d3eef12dfa2d60 100644 (file)
@@ -1,62 +1,58 @@
-%include       /usr/lib/rpm/macros.perl
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%define        pdir    PGPLOT
 Summary:       PGPLOT perl module
-Summary(pl):   Modu³ perla PGPLOT
+Summary(pl.UTF-8):     Moduł perla PGPLOT
 Name:          perl-PGPLOT
-Version:       2.15
-Release:       3
-Copyright:     GPL
+Version:       2.21
+Release:       19
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source:                ftp://ftp.perl.org/pub/CPAN/modules/by-module/PGPLOT/PGPLOT-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.005_03-14
-BuildRequires: XFree86-devel
-BuildRequires: pgplot-devel
-BuildRequires: perl-ExtUtils-F77 >= 1.11
-%requires_eq   perl
-Requires:      %{perl_sitearch}
-BuildRoot:     /tmp/%{name}-%{version}-root
+Source0:       http://www.cpan.org/modules/by-module/PGPLOT/%{pdir}-%{version}.tar.gz
+# Source0-md5: 836d8eb09bfcadd5d4edf668a551f17a
+URL:           http://search.cpan.org/dist/PGPLOT/
+BuildRequires: gcc-g77
+BuildRequires: perl-ExtUtils-F77 >= 1.13
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: pgplot-devel >= 5.2.2-1
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: xorg-lib-libX11-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 PGPLOT - perl interface to the PGPLOT graphics library.
 
-%description -l pl
+%description -l pl.UTF-8
 PGPLOT - interfejs perla do biblioteki graficznej PGPLOT.
 
 %prep
-%setup -q -n PGPLOT-%{version}
+%setup -q -n %{pdir}-%{version}
 
 %build
-perl Makefile.PL
-make OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:echo /NULL | %{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-
-strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/PGPLOT/*.so
 
-(
-  cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/PGPLOT
-  sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
-  mv .packlist.new .packlist
-)
+%{__make} pure_install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
-        CHANGES README HELP
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/PGPLOT/.packlist
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {CHANGES,README,HELP}.gz
-
-%{perl_sitearch}/PGPLOT.pm
-
-%dir %{perl_sitearch}/auto/PGPLOT
-%{perl_sitearch}/auto/PGPLOT/.packlist
-%{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
+%attr(755,root,root) %{perl_vendorarch}/auto/PGPLOT/PGPLOT.so
 %{_mandir}/man3/*
This page took 0.116339 seconds and 4 git commands to generate.