]> git.pld-linux.org Git - SPECS.git/blob - perl-Devel-Caller.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Devel-Caller.spec
1
2 # Conditional build:
3 %bcond_with     tests   # do perform "make test"
4
5 %define         pdir    Devel
6 %define         pnam    Caller
7 Summary:        Devel::Caller - meatier versions of Perl function "caller"
8 Summary(pl.UTF-8):      Devel::Caller - treściwsza wersja perlowej funkcji "caller"
9 Name:           perl-Devel-Caller
10 Version:        2.05
11 Release:        12
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  2d197318ce8e8d736f23b7f751e8b093
17 URL:            http://search.cpan.org/dist/Devel-Caller/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-PadWalker >= 0.08
22 %endif
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Devel::Caller Perl module provides meatier versions of "caller"
27 function.
28
29 %description -l pl.UTF-8
30 Moduł Perla Devel::Caller udostępnia treściwszą wersję funkcji
31 "caller".
32
33 %prep
34 %setup -q -n %{pdir}-%{pnam}-%{version}
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39
40 %{__make} \
41         CC="%{__cc}" \
42         OPTIMIZE="%{rpmcflags}"
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Changes
58 %{perl_vendorarch}/Devel/*.pm
59 %dir %{perl_vendorarch}/auto/Devel/Caller
60 %attr(755,root,root) %{perl_vendorarch}/auto/Devel/Caller/*.so
61 %{_mandir}/man3/*
This page took 0.122566 seconds and 3 git commands to generate.