]> git.pld-linux.org Git - packages/perl-Statistics-Descriptive.git/blobdiff - perl-Statistics-Descriptive.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Statistics-Descriptive.git] / perl-Statistics-Descriptive.spec
index 4bda12561a0a66ea97007b0c31b9d707569b6118..450cfe9fec4b7017f0e01b4148e803fec1d81975 100644 (file)
@@ -1,47 +1,71 @@
-%include       /usr/lib/rpm/macros.perl
-Summary:       Statistics-Descriptive perl module
-Summary(pl):   Modu³ perla Statistics-Descriptive
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define                pdir    Statistics
+%define                pnam    Descriptive
+Summary:       Statistics::Descriptive Perl module
+Summary(cs.UTF-8):     Modul Statistics::Descriptive pro Perl
+Summary(da.UTF-8):     Perlmodul Statistics::Descriptive
+Summary(de.UTF-8):     Statistics::Descriptive Perl Modul
+Summary(es.UTF-8):     Módulo de Perl Statistics::Descriptive
+Summary(fr.UTF-8):     Module Perl Statistics::Descriptive
+Summary(it.UTF-8):     Modulo di Perl Statistics::Descriptive
+Summary(ja.UTF-8):     Statistics::Descriptive Perl モジュール
+Summary(ko.UTF-8):     Statistics::Descriptive 펄 모줄
+Summary(nb.UTF-8):     Perlmodul Statistics::Descriptive
+Summary(pl.UTF-8):     Moduł perla Statistics::Descriptive
+Summary(pt_BR.UTF-8):  Módulo Perl Statistics::Descriptive
+Summary(pt.UTF-8):     Módulo de Perl Statistics::Descriptive
+Summary(ru.UTF-8):     Модуль для Perl Statistics::Descriptive
+Summary(sv.UTF-8):     Statistics::Descriptive Perlmodul
+Summary(uk.UTF-8):     Модуль для Perl Statistics::Descriptive
+Summary(zh_CN.UTF-8):  Statistics::Descriptive Perl 模块
 Name:          perl-Statistics-Descriptive
-Version:       2.4
-Release:       5
-License:       GPL
+Version:       3.0203
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/Statistics/Statistics-Descriptive-%{version}.tar.gz
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 2595c7c2e32eb33b6e730455a0313516
 Patch0:                %{name}-fix.patch
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+URL:           http://search.cpan.org/dist/Statistics-Descriptive/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Statistics-Descriptive module provides basic functions used in
+Statistics::Descriptive module provides basic functions used in
 descriptive statistics.
 
-%description -l pl
-Statistics-Descriptive udostêpnia podstawowe funkcje stosowane w
+%description -l pl.UTF-8
+Statistics::Descriptive udostępnia podstawowe funkcje stosowane w
 statystyce opisowej.
 
 %prep
-%setup -q -n Statistics-Descriptive-%{version}
-%patch -p0
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p0
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf Changes README
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
-%{perl_sitelib}/Statistics/Descriptive.pm
+%doc Changes README
+%{perl_vendorlib}/Statistics/Descriptive.pm
 %{_mandir}/man3/*
This page took 1.172054 seconds and 4 git commands to generate.