]>
Commit | Line | Data |
---|---|---|
d10caead | 1 | # |
2 | # Conditional build: | |
785ada67 | 3 | %bcond_without tests # do not perform "make test" |
864db5ec | 4 | |
7c79465a | 5 | %define pdir Statistics |
6 | %define pnam Simpson | |
864db5ec | 7 | %include /usr/lib/rpm/macros.perl |
d10caead | 8 | Summary: Statistics::Simpson - Simpson index |
d0d5ead0 | 9 | Summary(pl.UTF-8): Statistics::Simpson - wskaźnik Simpsona |
d10caead | 10 | Name: perl-Statistics-Simpson |
11 | Version: 0.01 | |
d7193fad | 12 | Release: 5 |
f33f33dc | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
d10caead | 15 | Group: Development/Languages/Perl |
3cd8dbab | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
9559179e | 17 | # Source0-md5: a60893a4efc2023d35eece27b1ab6aa8 |
864db5ec | 18 | URL: http://search.cpan.org/dist/Statistics-Simpson/ |
ad524404 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
864db5ec | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
785ada67 | 21 | %if %{with tests} |
d10caead | 22 | BuildRequires: perl-Statistics-Frequency >= 0.03 |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
80d6ab84 JB |
28 | The Statistics::Simpson module can be used to compute the Simpson |
29 | index of data, which measures the variability of data. | |
d10caead | 30 | |
d7a496be JR |
31 | %description -l pl.UTF-8 |
32 | Moduł Statistics::Simpson może być używany do liczenia wskaźnika | |
33 | Simpsona danych, który jest miarą zmienności danych. | |
d10caead | 34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
83eeabc2 | 39 | %{__perl} Makefile.PL \ |
3cc02aaa | 40 | INSTALLDIRS=vendor |
d10caead | 41 | %{__make} |
42 | ||
785ada67 | 43 | %{?with_tests:%{__make} test} |
d10caead | 44 | |
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
785ada67 | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
d10caead | 50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc Change* | |
83eeabc2 | 57 | %{perl_vendorlib}/%{pdir}/*.pm |
d10caead | 58 | %{_mandir}/man3/* |