]> git.pld-linux.org Git - packages/perl-Math-Units.git/blob - perl-Math-Units.spec
6854c0d82c2ad6ec1f351bc63de1c712281be4b6
[packages/perl-Math-Units.git] / perl-Math-Units.spec
1 %define         pdir    Math
2 %define         pnam    Units
3 %include        /usr/lib/rpm/macros.perl
4 Summary:        Math::Units Perl module - unit conversion
5 Summary(pl.UTF-8):      Moduł Perla Math::Units - przelicznie jednostek
6 Name:           perl-Math-Units
7 Version:        1.3
8 Release:        1
9 License:        GPL v1+ or Artistic
10 Group:          Development/Languages/Perl
11 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
12 # Source0-md5:  3674c769147eacdc0d22957d8288c104
13 URL:            http://search.cpan.org/dist/Math-Units/
14 BuildRequires:  perl-devel >= 1:5.8.0
15 BuildRequires:  rpm-perlprov >= 4.1-13
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The Math::Units module converts a numeric value in one unit of
21 measurement to some other unit. The units must be compatible, i.e.
22 length can not be converted to volume. If a conversion can not be made
23 an exception is thrown.
24
25 %description -l pl.UTF-8
26 Moduł Math::Units przelicza wartości numeryczne z jednej jednostki
27 miary na inną. Jednostki muszą być zgodne, tzn. długość nie może być
28 przeliczona na objętość. Jeśli konwersja nie może zostać wykonana,
29 rzucany jest wyjątek.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
37 %{__make}
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 %{__make} install \
43         DESTDIR=$RPM_BUILD_ROOT
44
45 %clean
46 rm -rf $RPM_BUILD_ROOT
47
48 %files
49 %defattr(644,root,root,755)
50 %doc README examples/convert.pl
51 %{perl_vendorlib}/Math/Units.pm
52 %{_mandir}/man3/*
This page took 0.062081 seconds and 2 git commands to generate.