Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37043056
en ru br
ALT Linux repos
S:0.17-alt1

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
# 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}
# noarch, but to avoid debug* files interfering with manifest test:
%global debug_package %{nil}

Name: perl-Test-Synopsis
Version: 0.17
Release: alt1
Summary: Test your SYNOPSIS code
Group: Development/Other
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-Synopsis
Source0: http://www.cpan.org/authors/id/Z/ZO/ZOFFIX/Test-Synopsis-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: perl-devel
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Module Runtime
BuildRequires: perl(ExtUtils/Manifest.pm)
BuildRequires: perl(parent.pm)
BuildRequires: perl(Pod/Simple.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(Test/Builder/Module.pm)
BuildRequires: perl(warnings.pm)
# Test Suite
BuildRequires: perl(File/Spec.pm)
BuildRequires: perl(IO/Handle.pm)
BuildRequires: perl(IPC/Open3.pm)
BuildRequires: perl(Test/Builder.pm)
BuildRequires: perl(Test/Builder/Tester.pm)
BuildRequires: perl(Test/More.pm)
# Extra Tests; can't run these when bootstrapping or in EL since many
# of these packages won't be available
%if 0%{!?perl_bootstrap:1} && 0%{!?rhel:1}
BuildRequires: perl(Pod/Coverage/TrustPod.pm)
BuildRequires: perl(Pod/Wordlist.pm)
BuildRequires: perl(Test/CPAN/Changes.pm)
BuildRequires: perl(Test/CPAN/Meta.pm)
BuildRequires: perl(Test/CPAN/Meta/JSON.pm)
BuildRequires: perl(Test/DistManifest.pm)
BuildRequires: perl(Test/EOL.pm)
BuildRequires: perl(Test/Kwalitee.pm)
BuildRequires: perl(Test/MinimumVersion.pm)
BuildRequires: perl(Test/Mojibake.pm)
BuildRequires: perl(Test/More.pm)
BuildRequires: perl(Test/NoTabs.pm)
BuildRequires: perl(Test/Pod.pm)
BuildRequires: perl(Test/Pod/Coverage.pm)
BuildRequires: perl(Test/Portability/Files.pm)
BuildRequires: perl(Test/Spelling.pm), hunspell-en
BuildRequires: perl(Test/Version.pm)
%endif
# Runtime
Requires: perl(Test/Builder/Module.pm)
Source44: import.info

%description
Test::Synopsis is an (author) test module to find .pm or .pod files under your
lib directory and then make sure the example snippet code in your SYNOPSIS
section passes the perl compile check.

Note that this module only checks the perl syntax (by wrapping the code with
sub) and doesn't actually run the code.

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

%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
%if 0%{!?perl_bootstrap:1} && 0%{!?rhel:1}
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%endif

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