3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Convert::Units::* - objects for performing unit conversions
9 Summary(pl): Convert::Units::* - obiekty do przeliczania jednostek
10 Name: perl-Convert-Units
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 4fa0ccd591bac873b8d0f32771699b3d
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The Units package is a collection of modules for parsing strings with
25 unit measurements (such as "12pt" or "3 meters") and converting them
26 to some other unit (such as "picas" or "inches").
28 It uses a base package (Units::Base) which does the dirty work. Other
29 modules define what units they handle and how they are related.
32 Pakiet Units to zbiór modu³ów do przetwarzania ³añcuchów zawieraj±cych
33 jednostki miar (takich jak "12pt" czy "3 meters") i konwertuj±cych je
34 do innych jednostek (takich jak "picas" czy "inches").
36 Pakiet u¿ywa podstawowego modu³u (Units::Base), który wykonuje
37 w³a¶ciw± robotê. Inne modu³y definiuj± które jednostki mog± obs³u¿yæ i
38 jak s± miêdzy sob± powi±zane.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %{perl_vendorlib}/Convert/Units