Sisyphus repository
Last update: 19 september 2020 | SRPMs: 17690 | Visits: 19252906
en ru br
ALT Linux repos
S:0.014-alt1_13

Group :: Development/Other
RPM: perl-Test-Vars

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-Vars
Version: 0.014
Release: alt1_7
Summary: Detects unused variables
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-Vars
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Test-Vars-%{version}.tar.gz
BuildArch: noarch
# ===================================================================
# Build requirements
# ===================================================================
BuildRequires: coreutils
BuildRequires: perl-devel >= 5.10.0
BuildRequires: rpm-build-perl
BuildRequires: perl(Module/Build/Tiny.pm)
BuildRequires: sed
# ===================================================================
# Module requirements
# ===================================================================
BuildRequires: perl(B.pm)
BuildRequires: perl(constant.pm)
BuildRequires: perl(ExtUtils/Manifest.pm)
BuildRequires: perl(IO/Pipe.pm)
BuildRequires: perl(List/Util.pm)
BuildRequires: perl(parent.pm)
BuildRequires: perl(Storable.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(Symbol.pm)
BuildRequires: perl(Test/Builder/Module.pm)
BuildRequires: perl(warnings.pm)
# ===================================================================
# Test suite requirements
# ===================================================================
BuildRequires: perl(File/Spec/Functions.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(Test/Tester.pm)
# ===================================================================
# Optional test requirements
# ===================================================================
%if !0%{?rhel:1} && !0%{?perl_bootstrap:1}
BuildRequires: perl(Moose/Role.pm)
%endif
BuildRequires: perl(Test/Output.pm)
# ===================================================================
# Author/Release test requirements
# ===================================================================
BuildRequires: perl(Test/Pod/Coverage.pm)
BuildRequires: perl(Test/Pod.pm)
BuildRequires: perl(Test/Synopsis.pm)
Source44: import.info
# ===================================================================
# Runtime requirements
# ===================================================================

%description
Test::Vars finds unused variables in order to keep the source code tidy.

%prep
%setup -q -n Test-Vars-%{version}

# Placate rpmlint about script interpreters in examples

sed -i -e '1s|^#!perl|#!/usr/bin/perl|' example/*.t

%build
perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot} --create_packlist=0
# %{_fixperms} -c %{buildroot}

%check
./Build test
prove -Ilib $(echo $(find xt/ -name '*.t'))

%files
%if 0%{?_licensedir:1}
%doc --no-dereference LICENSE
%else
%doc LICENSE
%endif
%doc Changes README.md example/
%{perl_vendor_privlib}/Test/

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin