]> git.pld-linux.org Git - packages/perl-Role-Tiny.git/blob - perl-Role-Tiny.spec
- updated to 2.002004
[packages/perl-Role-Tiny.git] / perl-Role-Tiny.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Role
6 %define         pnam    Tiny
7 Summary:        Role::Tiny - Roles; like a nouvelle cuisine portion size slice of Moose
8 Summary(pl.UTF-8):      Role::Tiny - role; podobnie jak nowy kuzyn o ułamku rozmiaru Moose
9 Name:           perl-Role-Tiny
10 Version:        2.002004
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-authors/id/H/HA/HAARG/Role-Tiny-%{version}.tar.gz
16 # Source0-md5:  9ee45591befa3d0b1094ac75d282b6ba
17 URL:            https://metacpan.org/release/Role-Tiny
18 %if "%(rpm -q perl-devel --qf '%{VERSION}')" < "5.10"
19 BuildRequires:  perl-MRO-Compat
20 %endif
21 BuildRequires:  perl-devel >= 1:5.8.0
22 BuildRequires:  rpm-perlprov >= 4.1-13
23 BuildRequires:  rpmbuild(macros) >= 1.745
24 %if %{with tests}
25 BuildRequires:  perl(Exporter) >= 5.57
26 BuildRequires:  perl-Test-Fatal >= 0.003
27 BuildRequires:  perl-Test-Simple >= 0.96
28 %endif
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 Role::Tiny is a minimalist role composition tool.
34
35 %description -l pl.UTF-8
36 Role::Tiny to minimalistyczne narzędzie do kompozycji ról.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} pure_install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc Changes README
60 %{perl_vendorlib}/Role/Tiny.pm
61 %{perl_vendorlib}/Role/Tiny
62 %{_mandir}/man3/Role::Tiny.3pm*
63 %{_mandir}/man3/Role::Tiny::With.3pm*
This page took 0.132948 seconds and 4 git commands to generate.