]> git.pld-linux.org Git - SPECS.git/blob - perl-Class-C3-Adopt-NEXT.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Class-C3-Adopt-NEXT.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Class
6 %define pnam    C3-Adopt-NEXT
7 Summary:        Class::C3::Adopt::NEXT - make NEXT suck less
8 #Summary(pl.UTF-8):     
9 Name:           perl-Class-C3-Adopt-NEXT
10 Version:        0.13
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/Class/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  4b4a59b5004ab7e715315e3131773e04
17 URL:            http://search.cpan.org/dist/Class-C3-Adopt-NEXT/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-List-MoreUtils
22 BuildRequires:  perl-MRO-Compat
23 BuildRequires:  perl-Test-Exception
24 %endif
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This module is intended as a drop-in replacement for NEXT, supporting
30 the same interface, but using Class::C3 to do the hard work. You can
31 then write new code without NEXT, and migrate individual source files
32 to use Class::C3 or method modifiers as appropriate, at whatever pace
33 you're comfortable with.
34
35 # %description -l pl.UTF-8
36 # TODO
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
60 %{perl_vendorlib}/Class/C3/Adopt
61 %{_mandir}/man3/*
This page took 0.272672 seconds and 3 git commands to generate.