]> git.pld-linux.org Git - SPECS.git/blob - perl-Class-Accessor-Lite.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Class-Accessor-Lite.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Class
6 %define         pnam    Accessor-Lite
7 Summary:        Class::Accessor::Lite - a minimalistic variant of Class::Accessor
8 Name:           perl-Class-Accessor-Lite
9 Version:        0.08
10 Release:        1
11 License:        GPL v1+ or Artistic
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5:  6ed2f281887efa598183433c09695489
15 URL:            http://search.cpan.org/dist/Class-Accessor-Lite/
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with tests}
19 %endif
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 The module is a variant of Class::Accessor. It is fast and requires
25 less typing, has no dependencies to other modules, and does not mess
26 up the @ISA.
27
28 %prep
29 %setup -q -n %{pdir}-%{pnam}-%{version}
30
31 %build
32 %{__perl} Makefile.PL \
33         INSTALLDIRS=vendor
34 %{__make}
35
36 %{?with_tests:%{__make} test}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 %{__make} pure_install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc Changes README
50 %{perl_vendorlib}/Class/Accessor/*.pm
51 %{_mandir}/man3/*
This page took 0.066927 seconds and 3 git commands to generate.