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
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
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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,
32 %setup -q -n %{pdir}-%{pnam}-%{version}
35 %{__perl} Makefile.PL \
40 rm -rf $RPM_BUILD_ROOT
43 DESTDIR=$RPM_BUILD_ROOT
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc README examples/convert.pl
51 %{perl_vendorlib}/Math/Units.pm