# # Conditional build: %bcond_without tests # do not perform "make test" %define pdir Convert %define pnam Units Summary: Convert::Units::* - objects for performing unit conversions Summary(pl.UTF-8): Convert::Units::* - obiekty do przeliczania jednostek Name: perl-Convert-Units Version: 0.43 Release: 2 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 4fa0ccd591bac873b8d0f32771699b3d URL: http://search.cpan.org/dist/Convert-Units/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The Units package is a collection of modules for parsing strings with unit measurements (such as "12pt" or "3 meters") and converting them to some other unit (such as "picas" or "inches"). It uses a base package (Units::Base) which does the dirty work. Other modules define what units they handle and how they are related. %description -l pl.UTF-8 Pakiet Units to zbiór modułów do przetwarzania łańcuchów zawierających jednostki miar (takich jak "12pt" czy "3 meters") i konwertujących je do innych jednostek (takich jak "picas" czy "inches"). Pakiet używa podstawowego modułu (Units::Base), który wykonuje właściwą robotę. Inne moduły definiują które jednostki mogą obsłużyć i jak są między sobą powiązane. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes %{perl_vendorlib}/Convert/Units %{_mandir}/man3/*