File perl-ExtUtils-Install.spec of Package perl-ExtUtils-Install

#
# spec file for package perl-ExtUtils-Install (Version 1.54)
#
# Copyright (c) 2010 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-ExtUtils-Install
%define cpan_name ExtUtils-Install
Summary:        Install files from here to there
Version:        1.54
Release:        1
License:        CHECK(GPL+ or Artistic)
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/ExtUtils-Install/
#Source:         http://www.cpan.org/authors/id/Y/YV/YVES/ExtUtils-Install-%{version}.tar.gz
Source:         %{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Compare)
BuildRequires:  perl(File::Copy)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
Requires:       perl(Carp)
Requires:       perl(Cwd)
Requires:       perl(File::Basename)
Requires:       perl(File::Compare)
Requires:       perl(File::Copy)
Requires:       perl(File::Find)
Requires:       perl(File::Path)
Requires:       perl(File::Spec)

%description
Handles the installing and uninstalling of perl modules, scripts, man
pages, etc...

Both install() and uninstall() are specific to the way ExtUtils::MakeMaker
handles the installation and deinstallation of perl modules. They are not
designed as general purpose tools.

On some operating systems such as Win32 installation may not be possible
until after a reboot has occured. This can have varying consequences:
removing an old DLL does not impact programs using the new one, but if a
new DLL cannot be installed properly until reboot then anything depending
on it must wait. The package variable

  $ExtUtils::Install::MUST_REBOOT

is used to store this status.

If this variable is true then such an operation has occured and anything
depending on this module cannot proceed until a reboot has occured.

If this value is defined but false then such an operation has ocurred, but
should not impact later operations.

Authors:
--------
     Original author lost in the mists of time. Probably the same as Makemaker.
     Production release currently maintained by demerphq C<yves at cpan.org>,
     extensive changes by Michael G. Schwern.
     Send bug reports via http://rt.cpan.org/. Please send your generated
     Makefile along with your report.

%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=$RPM_BUILD_ROOT create_packlist=0
%perl_gen_filelist

%clean
%{__rm} -rf $RPM_BUILD_ROOT

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

%changelog