]> git.pld-linux.org Git - packages/perl-MooseX-Getopt.git/blob - perl-MooseX-Getopt.spec
- updated to 0.75
[packages/perl-MooseX-Getopt.git] / perl-MooseX-Getopt.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define pdir    MooseX
6 %define pnam    Getopt
7 Summary:        MooseX::Getopt - A Moose role for processing command line options
8 Summary(pl.UTF-8):      MooseX::Getopt - narzędzie Moose do przetwarzania opcji z linii poleceń
9 Name:           perl-MooseX-Getopt
10 Version:        0.75
11 Release:        1
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:  1b9112b9b8723bf2ec225a0fa09285f1
17 URL:            https://metacpan.org/dist/MooseX-Getopt
18 BuildRequires:  perl-ExtUtils-MakeMaker
19 BuildRequires:  perl-Module-Build-Tiny >= 0.034
20 BuildRequires:  perl-devel >= 1:5.8.0
21 BuildRequires:  rpm-perlprov >= 4.1-13
22 BuildRequires:  rpmbuild(macros) >= 1.745
23 %if %{with tests}
24 BuildRequires:  perl-Getopt-Long >= 2.37
25 BuildRequires:  perl-Getopt-Long-Descriptive >= 0.088
26 BuildRequires:  perl-Module-Metadata
27 BuildRequires:  perl-Module-Runtime
28 BuildRequires:  perl-Moose >= 0.56
29 BuildRequires:  perl-MooseX-Role-Parameterized >= 1.01
30 BuildRequires:  perl-Path-Tiny >= 0.009
31 BuildRequires:  perl-Scalar-List-Utils
32 BuildRequires:  perl-Test-Deep
33 BuildRequires:  perl-Test-Exception >= 0.21
34 BuildRequires:  perl-Test-Fatal
35 BuildRequires:  perl-Test-Needs
36 BuildRequires:  perl-Test-Simple >= 0.88
37 BuildRequires:  perl-Test-Trap
38 BuildRequires:  perl-Test-Warnings >= 0.009
39 BuildRequires:  perl-Try-Tiny
40 BuildRequires:  perl-namespace-autoclean
41 %endif
42 BuildArch:      noarch
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 This is a role which provides an alternate constructor for creating
47 objects using parameters passed in from the command line.
48
49 %description -l pl.UTF-8
50 Jest to narzędzie udostępniające alternatywny konstruktor do tworzenia
51 obiektów korzystających z parametrów przekazanych z linii poleceń.
52
53 %prep
54 %setup -q -n %{pdir}-%{pnam}-%{version}
55
56 %build
57 %{__perl} Makefile.PL \
58         INSTALLDIRS=vendor
59 %{__make}
60
61 %{?with_tests:%{__make} test}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} pure_install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc Changes README
75 %{perl_vendorlib}/MooseX/Getopt.pm
76 %{perl_vendorlib}/MooseX/Getopt
77 %{_mandir}/man3/MooseX::Getopt*.3pm*
This page took 0.065877 seconds and 3 git commands to generate.