Group :: Development/Perl
RPM: perl-IO-Null
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Development/Perl
# 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-IO-Null
Version: 1.01
Release: alt2_34
Summary: Class for null filehandles
License: GPL+ or Artistic
URL: https://metacpan.org/release/IO-Null
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBURKE/IO-Null-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
BuildRequires: perl(strict.pm)
# Runtime
BuildRequires: perl(IO/Handle.pm)
BuildRequires: perl(vars.pm)
# Tests only
BuildRequires: perl(Test.pm)
Source44: import.info
%description
IO::Null is a class for null filehandles. Calling a constructor of
this class always succeeds, returning a new null filehandle. Writing
to any object of this class is always a no-operation, and returns
true. Reading from any object of this class is always no-operation,
and returns empty-string or empty-list, as appropriate.
%prep
%setup -q -n IO-Null-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc ChangeLog 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-IO-Null
Version: 1.01
Release: alt2_34
Summary: Class for null filehandles
License: GPL+ or Artistic
URL: https://metacpan.org/release/IO-Null
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBURKE/IO-Null-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
BuildRequires: perl(strict.pm)
# Runtime
BuildRequires: perl(IO/Handle.pm)
BuildRequires: perl(vars.pm)
# Tests only
BuildRequires: perl(Test.pm)
Source44: import.info
%description
IO::Null is a class for null filehandles. Calling a constructor of
this class always succeeds, returning a new null filehandle. Writing
to any object of this class is always a no-operation, and returns
true. Reading from any object of this class is always no-operation,
and returns empty-string or empty-list, as appropriate.
%prep
%setup -q -n IO-Null-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc ChangeLog README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here