#
# Conditional build:
-%bcond_without tests # do not perform "make test"
+%bcond_without tests # unit tests
#
%define pdir Devel
%define pnam OverrideGlobalRequire
-Summary: Devel::OverrideGlobalRequire - Override CORE::GLOBAL::require safely
+Summary: Devel::OverrideGlobalRequire - override CORE::GLOBAL::require safely
+Summary(pl.UTF-8): Devel::OverrideGlobalRequire - nadpisywanie bezpieczeństwa CORE::GLOBAL::require
Name: perl-Devel-OverrideGlobalRequire
Version: 0.001
Release: 1
-# same as perl
+# same as perl 5
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Devel/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 9cc9b7c3e39629d2f3ae22d347c29f1a
-URL: http://search.cpan.org/dist/Devel-OverrideGlobalRequire/
+URL: https://metacpan.org/dist/Devel-OverrideGlobalRequire
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
%if %{with tests}
+BuildRequires: perl-Scalar-List-Utils
%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
way that plays nice with any existing overloading and ensures the
right calling package is in scope.
+%description -l pl.UTF-8
+Ten moduł nadpisuje CORE::GLOBAL::require referencją do kodu w taki
+sposób, aby działał z dowolnym istniejącym nadpisaniem i zapewnia, że
+właściwy pakiet wywołujący jest w kontekście.
+
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%files
%defattr(644,root,root,755)
-%doc Changes README
-%{perl_vendorlib}/Devel/*.pm
-%{_mandir}/man3/*
+%doc Changes
+%{perl_vendorlib}/Devel/OverrideGlobalRequire.pm
+%{_mandir}/man3/Devel::OverrideGlobalRequire.3pm*