]> git.pld-linux.org Git - packages/perl-Devel-Caller.git/commitdiff
- up to 0.09
authormigo <migo@pld-linux.org>
Tue, 7 Oct 2003 14:31:40 +0000 (14:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- switch to Module::Build
- new bcond style
- compiler optimization flags are not passed

Changed files:
    perl-Devel-Caller.spec -> 1.5

perl-Devel-Caller.spec

index 9095960018b73a3299d66a58dabd022a860742c7..c910ff8fad9510c69882934c098fd967f097b9bc 100644 (file)
@@ -1,25 +1,26 @@
-#
+
 # Conditional build:
-# _without_tests - do not perform "make test"
-#
+%bcond_without tests   # do not perform "make test"
+
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    Devel
 %define        pnam    Caller
 Summary:       Devel::Caller - meatier versions of C<caller>
 Summary(pl):   Devel::Caller - tre¶ciwsza wersja C<caller>
 Name:          perl-Devel-Caller
-Version:       0.08
+Version:       0.09
 Release:       1
 # same as perl
 License:       GPL/Artistic
 Group:         Development/Languages/Perl
 Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: fd2708cd60d1a24edf7fdf53438c725d
+# Source0-md5: b510d88edf40e368cbc4d659fc6c7bd0
 BuildRequires: perl-devel >= 5.6
 BuildRequires: rpm-perlprov >= 4.1-13
-%if %{!?_without_tests:1}0
+BuildRequires: perl-Module-Build >= 0.20
+%if %{?with tests}
 BuildRequires: perl-PadWalker
-BuildRequires: perl-Test-Simple
+BuildRequires: perl(Test::More)
 %endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,17 +34,17 @@ Modu
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-%{__perl} Makefile.PL \
-       INSTALLDIRS=vendor
-%{__make} OPTIMIZE="%{rpmcflags}"
+%{__perl} Build.PL \
+       installdirs=vendor \
+       destdir=$RPM_BUILD_ROOT
+./Build
 
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+./Build install
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.113239 seconds and 4 git commands to generate.