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