Files
perl-Dist-Zilla-Plugin-Apac…/perl-Dist-Zilla-Plugin-ApacheTest.spec

94 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Dist-Zilla-Plugin-ApacheTest
#
# Copyright (c) 2011 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/
#
Name: perl-Dist-Zilla-Plugin-ApacheTest
Version: 0.01
Release: 1
License: GPL+ or Artistic
%define cpan_name Dist-Zilla-Plugin-ApacheTest
Summary: build a Makefile.PL that uses ExtUtils::MakeMaker with Apache::Test
Url: http://search.cpan.org/dist/Dist-Zilla-Plugin-ApacheTest/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/M/MS/MSCHOUT/Dist-Zilla-Plugin-ApacheTest-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Dist::Zilla::File::InMemory)
BuildRequires: perl(Dist::Zilla::Role::BuildRunner)
BuildRequires: perl(Dist::Zilla::Role::InstallTool)
BuildRequires: perl(Dist::Zilla::Role::PrereqSource)
BuildRequires: perl(Dist::Zilla::Role::TestRunner)
BuildRequires: perl(Dist::Zilla::Role::TextTemplate)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Module::Signature)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Socket)
BuildRequires: perl
BuildRequires: perl-macros
Requires: perl(Data::Dumper)
Requires: perl(Dist::Zilla::File::InMemory)
Requires: perl(Dist::Zilla::Role::BuildRunner)
Requires: perl(Dist::Zilla::Role::InstallTool)
Requires: perl(Dist::Zilla::Role::PrereqSource)
Requires: perl(Dist::Zilla::Role::TestRunner)
Requires: perl(Dist::Zilla::Role::TextTemplate)
Requires: perl(List::MoreUtils)
Requires: perl(Moose)
Requires: perl(Moose::Autobox)
Requires: perl(namespace::autoclean)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
This plugin will produce an the ExtUtils::MakeMaker manpage-powered
_Makefile.PL_ with Apache::Test hooks for the distribution. If loaded, the
Dist::Zilla::Plugin::Manifest plugin should also be loaded, and the
Dist::Zilla::Plugin::MakeMaker plugin should not be loaded.
At this time, this module is essentially a copy of the
Dist::Zilla::Plugin::MakeMaker plugin. Hopefully, over time, the
Dist::Zilla::Plugin::MakeMaker plugin will allow more customization so that
this module will not need to reimplement all of it.
%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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes dist.ini LICENSE README
%changelog