Sisyphus repository
Last update: 19 october 2019 | SRPMs: 17506 | Visits: 15300116
en ru br
ALT Linux repos
S:0.25-alt1_10

Group :: Development/Other
RPM: perl-Test-CPAN-Meta-YAML

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(YAML.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-CPAN-Meta-YAML
Version: 0.25
Release: alt1_10
Summary: Validate a META.yml file within a CPAN distribution
Group: Development/Other
License: Artistic 2.0
URL: https://metacpan.org/release/Test-CPAN-Meta-YAML
Source0: https://cpan.metacpan.org/authors/id/B/BA/BARBIE/Test-CPAN-Meta-YAML-%{version}.tar.gz
Patch0: Test-CPAN-Meta-YAML-0.25-utf8.patch
BuildArch: noarch
# Module Build
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Module Runtime
BuildRequires: perl(strict.pm)
BuildRequires: perl(Test/Builder.pm)
BuildRequires: perl(Test/YAML/Valid.pm)
BuildRequires: perl(vars.pm)
BuildRequires: perl(warnings.pm)
BuildRequires: perl(YAML/Syck.pm)
# Test Suite
BuildRequires: perl(IO/File.pm)
BuildRequires: perl(Test/Builder/Tester.pm)
BuildRequires: perl(Test/More.pm)
# Optional Tests
BuildRequires: perl(Test/CPAN/Meta/JSON.pm)
BuildRequires: perl(Test/Pod.pm)
BuildRequires: perl(Test/Pod/Coverage.pm)
# Runtime
# Explicitly requests the YAML::Syck backend for Test::YAML::Valid
Requires: perl(YAML/Syck.pm)
Source44: import.info

%description
This module was written to ensure that a META.yml file, provided with a
standard distribution uploaded to CPAN, meets the specifications that are
slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker,
Module::Build and Module::Install.

See CPAN::Meta for further details of the CPAN Meta Specification.

%prep
%setup -q -n Test-CPAN-Meta-YAML-%{version}

# Recode documentation as UTF-8

%patch0

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
# %{_fixperms} %{buildroot}

%check
make test AUTOMATED_TESTING=1

%files
%if 0%{?_licensedir:1}
%doc --no-dereference LICENSE
%else
%doc LICENSE
%endif
%doc Changes README
%{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