]> git.pld-linux.org Git - packages/perl-Convert-Units.git/blob - perl-Convert-Units.spec
- license fixes and cosmetics
[packages/perl-Convert-Units.git] / perl-Convert-Units.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Convert
7 %define pnam    Units
8 Summary:        Convert::Units::* - objects for performing unit conversions
9 Summary(pl):    Convert::Units::* - obiekty do przeliczania jednostek
10 Name:           perl-Convert-Units
11 Version:        0.43
12 Release:        1
13 # same as perl
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
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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").
27
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.
30
31 %description -l pl
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").
35
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.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc Changes
63 %{perl_vendorlib}/Convert/Units
64 %{_mandir}/man3/*
This page took 0.050034 seconds and 3 git commands to generate.