File perl-CPAN-DistroBuilder.spec of Package perl-CPAN-DistroBuilder

#
# spec file for package perl-CPAN-DistroBuilder
#
# Copyright (c) 2016 SUSE LINUX 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/
#


Name:           perl-CPAN-DistroBuilder
Version:        0.01
Release:        0
%define cpan_name CPAN-DistroBuilder
Summary:        Create a distro from a bundle or a number of modules from CPAN
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/CPAN-DistroBuilder/
Source0:        http://www.cpan.org/authors/id/S/ST/STAS/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
%{perl_requires}

%description
This package does a very simple thing. It fetches the source packages from
CPAN, using 'CPAN.pm' and puts them all into a single _tar.gz_ package
ready for distribution. This distribution package later can be installed in
one command and therefore very useful for users who have to use our
software, but know little or no Perl at all and don't know how to use CPAN
shell to fetch and install all the required packages. Releasing Bundles and
properly defining prerequisites in the CPAN modules is very important, and
we go one step further to actually provide sort of SDK.

This package relies on the locally working 'CPAN.pm''s shell. If you didn't
configure your 'CPAN.pm', do it before using this package. If normally
'CPAN.pm' works for you, this package should work too.

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

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README

%changelog
openSUSE Build Service is sponsored by