]> git.pld-linux.org Git - packages/perl-Math-Round.git/blame - perl-Math-Round.spec
- macros for perl autodeps
[packages/perl-Math-Round.git] / perl-Math-Round.spec
CommitLineData
c1fe28ee
ER
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
c1fe28ee
ER
5%define pdir Math
6%define pnam Round
7Summary: Math::Round - Perl extension for rounding numbers
981aa195 8Summary(pl.UTF-8): Math::Round - perlowe rozszerzenie do zaokrąglania liczb
c1fe28ee 9Name: perl-Math-Round
9175989a 10Version: 0.07
2fd82fd0 11Release: 1
c1fe28ee
ER
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
f2f65138 15Source0: http://www.cpan.org/modules/by-module/Math/%{pdir}-%{pnam}-%{version}.tar.gz
9175989a 16# Source0-md5: b74c5d2a3f891c19dafd7ce638732fd1
c6f5bc43 17URL: https://metacpan.org/release/Math-Round
c1fe28ee
ER
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
c6f5bc43 20BuildRequires: rpmbuild(macros) >= 1.745
c1fe28ee
ER
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Math::Round supplies functions that will round numbers in different
26ways. The functions round and nearest are exported by default; others
b127cdf5
JB
27are available as described in the manual. "use ... qw(:all)" exports
28all functions.
29
0a63ff17
JR
30%description -l pl.UTF-8
31Math::Round udostępnia funkcje zaokrąglające liczby w różny sposób.
32Funkcje round i nearest są eksportowane domyślnie; inne są dostępne w
33sposób opisany w manualu. "use ... qw(:all)" eksportuje wszystkie
b127cdf5 34funkcje.
c1fe28ee
ER
35
36%prep
37%setup -q -n %{pdir}-%{pnam}-%{version}
38
39%build
40%{__perl} Makefile.PL \
41 INSTALLDIRS=vendor
42%{__make}
43
44%{?with_tests:%{__make} test}
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
57%doc Changes README
5a44b686 58%{perl_vendorlib}/Math/Round.pm
b127cdf5 59%dir %{perl_vendorlib}/auto/Math/Round
c1fe28ee 60%{perl_vendorlib}/auto/Math/Round/autosplit.ix
5a44b686 61%{_mandir}/man3/Math::Round.3pm*
This page took 0.083396 seconds and 4 git commands to generate.