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

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
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)

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_:


You can specify an alternate install command:

    install_command = cpanm .

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

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

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

./Build test

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

%files -f %{name}.files

openSUSE Build Service is sponsored by