File perl-PAR-Packer-test.spec of Package perl-PAR-Packer

#
# spec file for package perl-PAR-Packer-test
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define cpan_name PAR-Packer

Name:           perl-PAR-Packer-test
Summary:        Test PAR Packager
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Version:        1.017
Release:        0
Url:            http://search.cpan.org/dist/PAR-Packer/
Source:         %{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  lzma
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Archive::Zip) >= 1
BuildRequires:  perl(Compress::Zlib) >= 1.3
BuildRequires:  perl(Getopt::ArgvFile) >= 1.07
BuildRequires:  perl(Module::ScanDeps) >= 1.09
BuildRequires:  perl(PAR) >= 1.005
BuildRequires:  perl(PAR::Dist) >= 0.22
Requires:       perl(Archive::Zip) >= 1
Requires:       perl(Compress::Zlib) >= 1.3
Requires:       perl(Getopt::ArgvFile) >= 1.07
Requires:       perl(Module::ScanDeps) >= 1.09
Requires:       perl(PAR) >= 1.005
Requires:       perl(PAR::Dist) >= 0.22
Recommends:     perl(Digest) >= Module::Signature

%description
This module tests the App::Packer::Backend interface for generating
stand-alone executables, perl scripts and PAR files.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__make}

%check
export PERL_TEST_POD=1
%{__make} test || true

%install

%clean
%{__rm} -rf %{buildroot}

%changelog
openSUSE Build Service is sponsored by