Group :: Development/Other
RPM: perl-Devel-Comments
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-Devel-Comments
Version: 1.1.4
Release: alt2_22
Summary: Debug with executable smart comments to logs
License: GPL+ or Artistic
URL: https://metacpan.org/release/Devel-Comments
Source0: https://cpan.metacpan.org/authors/id/X/XI/XIONG/developer-tools/Devel-Comments-v%{version}.tar.gz
BuildArch: noarch
# Compile-time:
BuildRequires: rpm-build-perl
BuildRequires: perl(Module/Build.pm)
# Run-time:
BuildRequires: perl(Carp.pm)
BuildRequires: perl(Data/Dumper.pm)
BuildRequires: perl(Filter/Simple.pm)
BuildRequires: perl(IO/Capture/Tie_STDx.pm)
BuildRequires: perl(IO/Capture/Stdout.pm)
BuildRequires: perl(List/Util.pm)
BuildRequires: perl(Text/Balanced.pm)
BuildRequires: perl(version.pm)
# Tests only:
BuildRequires: perl(lib.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(Test/Deep.pm)
BuildRequires: perl(Try/Tiny.pm)
BuildRequires: perl(IO/Capture/Stderr/Extended.pm)
BuildRequires: perl(IO/Capture/Stdout/Extended.pm)
Requires: perl(Filter/Simple.pm) >= 0.800
Requires: perl(Test/More.pm) >= 0.940
Requires: perl(Text/Balanced.pm) >= 2
# Remove under-specifed dependencies
Source44: import.info
%filter_from_requires /^perl(Filter.Simple\|Text.Balanced\\)\\s*$/d
%description
Devel::Comments is a source filter for your Perl code, intended to be used
only during development. Specially-formatted 'smart' comments are replaced by
executable code to dump variables to screen or to file, display loop progress
bars, or enforce conditions. These smart comments can all be disabled at once
by commenting out the "use Devel::Comments" line, whereupon they return to
being simple, dumb comments. Your debugging code can remain in place,
guaranteed harmless, ready for the next development cycle.
%prep
%setup -q -n Devel-Comments-v%{version}
%build
/usr/bin/perl Build.PL installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%files
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here
# 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-Devel-Comments
Version: 1.1.4
Release: alt2_22
Summary: Debug with executable smart comments to logs
License: GPL+ or Artistic
URL: https://metacpan.org/release/Devel-Comments
Source0: https://cpan.metacpan.org/authors/id/X/XI/XIONG/developer-tools/Devel-Comments-v%{version}.tar.gz
BuildArch: noarch
# Compile-time:
BuildRequires: rpm-build-perl
BuildRequires: perl(Module/Build.pm)
# Run-time:
BuildRequires: perl(Carp.pm)
BuildRequires: perl(Data/Dumper.pm)
BuildRequires: perl(Filter/Simple.pm)
BuildRequires: perl(IO/Capture/Tie_STDx.pm)
BuildRequires: perl(IO/Capture/Stdout.pm)
BuildRequires: perl(List/Util.pm)
BuildRequires: perl(Text/Balanced.pm)
BuildRequires: perl(version.pm)
# Tests only:
BuildRequires: perl(lib.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(Test/Deep.pm)
BuildRequires: perl(Try/Tiny.pm)
BuildRequires: perl(IO/Capture/Stderr/Extended.pm)
BuildRequires: perl(IO/Capture/Stdout/Extended.pm)
Requires: perl(Filter/Simple.pm) >= 0.800
Requires: perl(Test/More.pm) >= 0.940
Requires: perl(Text/Balanced.pm) >= 2
# Remove under-specifed dependencies
Source44: import.info
%filter_from_requires /^perl(Filter.Simple\|Text.Balanced\\)\\s*$/d
%description
Devel::Comments is a source filter for your Perl code, intended to be used
only during development. Specially-formatted 'smart' comments are replaced by
executable code to dump variables to screen or to file, display loop progress
bars, or enforce conditions. These smart comments can all be disabled at once
by commenting out the "use Devel::Comments" line, whereupon they return to
being simple, dumb comments. Your debugging code can remain in place,
guaranteed harmless, ready for the next development cycle.
%prep
%setup -q -n Devel-Comments-v%{version}
%build
/usr/bin/perl Build.PL installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%files
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here