-
+#
# Conditional build:
%bcond_without tests # do perform "make test"
+%define pdir Devel
+%define pnam Caller-Perl
%include /usr/lib/rpm/macros.perl
-%define pdir Devel
-%define pnam Caller-Perl
-Summary: Devel::Caller::Perl
+Summary: Devel::Caller::Perl - allow method to get arguments passed to higher subroutines
+Summary(pl.UTF-8): Devel::Caller::Perl - umożliwienie metodzie pobranie argumentów z wyższych funkcji
Name: perl-Devel-Caller-Perl
Version: 1.4
-Release: 0.1
+Release: 2
# same as perl
-License: GPL/Artistic
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: b510d88edf40e368cbc4d659fc6c7bd0
-BuildRequires: perl-devel >= 5.6
-BuildRequires: rpm-perlprov >= 4.1-13
+# Source0-md5: ef4407ab5c506e4daa63ee1496b5872f
+URL: http://search.cpan.org/dist/Devel-Caller-Perl/
BuildRequires: perl-Module-Build >= 0.21-2
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
%if %{with tests}
-BuildRequires: perl(Test::More)
+BuildRequires: perl-Test-Simple
%endif
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Devel::Caller::Perl Perl module
+Devel::Caller::Perl Perl module allows a method to get arguments
+passed to subroutines higher up in the call stack.
+
+%description -l pl.UTF-8
+Moduł Perla Devel::Caller::Perl pozwala metodzie odczytać argumenty
+przekazane do funkcji wyżej w stosie wywołań.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%build
%{__perl} Build.PL \
installdirs=vendor \
- destdir=$RPM_BUILD_ROOT \
- config='optimize=%{rpmcflags}'
+ destdir=$RPM_BUILD_ROOT
./Build
%{?with_tests:./Build test}
%install
rm -rf $RPM_BUILD_ROOT
+
./Build install
%clean
%files
%defattr(644,root,root,755)
-%{perl_vendorlib}
+%dir %{perl_vendorlib}/Devel/Caller
+%{perl_vendorlib}/Devel/Caller/Perl.pm
%{_mandir}/man3/*