File perl-Dist-Zilla-Plugin-InstallRelease.spec of Package perl-Dist-Zilla-Plugin-InstallRelease

#
# spec file for package perl-Dist-Zilla-Plugin-InstallRelease
#
# Copyright (c) 2015 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-Dist-Zilla-Plugin-InstallRelease
Version:        0.008
Release:        0
%define cpan_name Dist-Zilla-Plugin-InstallRelease
Summary:        installs your dist after releasing
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Dist-Zilla-Plugin-InstallRelease/
Source:         http://www.cpan.org/authors/id/D/DO/DOHERTY/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Dist::Zilla::Role::AfterRelease)
BuildRequires:  perl(Dist::Zilla::Role::Plugin)
BuildRequires:  perl(File::pushd)
BuildRequires:  perl(Module::Build) >= 0.3601
BuildRequires:  perl(Moose)
BuildRequires:  perl(autodie)
Requires:       perl(Dist::Zilla::Role::AfterRelease)
Requires:       perl(Dist::Zilla::Role::Plugin)
Requires:       perl(File::pushd)
Requires:       perl(Moose)
Requires:       perl(autodie)
%{perl_requires}

%description
After doing 'dzil release', this plugin will install your dist so you are
always the first person to have the latest and greatest version. It's like
getting first post, only useful.

To use it, add the following in _dist.ini_:

    [InstallRelease]

You can specify an alternate install command:

    [InstallRelease]
    install_command = cpanm .

This plugin must always come before the Dist::Zilla::Plugin::Clean manpage.

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

%build
%{__perl} Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}

%check
./Build test

%install
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist

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

%changelog
openSUSE Build Service is sponsored by