]> git.pld-linux.org Git - SPECS.git/blob - perl-MooseX-Types-Path-Class.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-MooseX-Types-Path-Class.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    MooseX
6 %define pnam    Types-Path-Class
7 Summary:        MooseX::Types::Path::Class - A Path::Class type library for Moose
8 Summary(pl.UTF-8):      MooseX::Types::Path::Class - biblioteka typu Path::Class dla Moose
9 Name:           perl-MooseX-Types-Path-Class
10 Version:        0.05
11 Release:        2
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/MooseX/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  79a0d19fe8b4547b232605645c75aaad
17 URL:            http://search.cpan.org/dist/MooseX-Types-Path-Class/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-Class-MOP
22 BuildRequires:  perl-Moose >= 0.39
23 BuildRequires:  perl-MooseX-Types >= 0.04
24 BuildRequires:  perl-Path-Class >= 0.16
25 %endif
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 MooseX::Types::Path::Class creates common Moose types, coercions and
31 option specifications useful for dealing with Path::Class objects as
32 Moose attributes.
33
34 Coercions (see Moose::Util::TypeConstraints) are made from both 'Str'
35 and 'ArrayRef' to both Path::Class::Dir and Path::Class::File objects.
36 If you have MooseX::Getopt installed, the Getopt option type ("=s")
37 will be added for both Path::Class::Dir and Path::Class::File.
38
39 %description -l pl.UTF-8
40 MooseX::Types::Path::Class tworzy wspólne typy Moose, konieczne i
41 pocjonalne specyfikacje użyteczne do radzenia sobnie z obiektami
42 Path:Class jako atrybutami Moose.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-%{version}
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} pure_install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes README
66 %dir %{perl_vendorlib}/MooseX/Types/Path
67 %{perl_vendorlib}/MooseX/Types/Path/*.pm
68 %{_mandir}/man3/*
This page took 0.579439 seconds and 3 git commands to generate.