File perl-App-Build.spec of Package perl-App-Build
#
# spec file for package perl-App-Build
#
# 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-App-Build
Version: 0.74
Release: 0
%define cpan_name App-Build
Summary: Extends Module::Build to Build/Install/Configure Entire Applications (I.[cut]
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/App-Build/
Source0: http://www.cpan.org/authors/id/M/MB/MBARBON/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(App::Options)
BuildRequires: perl(Module::Build) >= 0.360000
BuildRequires: perl(Test::Differences) >= 0.47
Requires: perl(App::Options)
Requires: perl(Module::Build) >= 0.280000
%{perl_requires}
%description
App::Build is a subclass of Module::Build, so you can use it in place of
Module::Build when creating your "Build.PL" installation scripts.
Module::Build is good at installing perl modules and programs/scripts. Full
applications (i.e. web applications) need to install other files such as
web pages, images, CSS style sheets, javascript files, CGI programs, data
files, and configuration data. App::Build addresses these issues.
The vision of App::Build is to make installing entirely functional perl
applications (particularly web applications) as easy as installing
individual modules from CPAN.
An ISP customer (or other unprivileged user) who has shell access should be
able to install any number of available applications from CPAN simply by
typing the usual
perl -MCPAN -e "install App::Build::Foo"
and the "Foo" application is installed on his account.
App::Build does this by implementing the following features.
1. Distributions that use App::Build instead of Module::Build can easily
install files to other places, besides just "lib" and "bin". e.g. "htdocs",
"cgi-bin", "etc". (see the "extra_dirs" argument in the example in the
Synopsis above)
2. App::Build also adds a hook into the "install" action to call the
"configure()" method. If you are subclassing App::Build, you can override
this method and perform customized configuration tasks.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
%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 README TODO
%changelog