forked from pool/perl-App-perlbrew
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-perlbrew?expand=0&rev=34
94 lines
3.2 KiB
RPMSpec
94 lines
3.2 KiB
RPMSpec
#
|
|
# spec file for package perl-App-perlbrew
|
|
#
|
|
# Copyright (c) 2014 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-App-perlbrew
|
|
Version: 0.71
|
|
Release: 0
|
|
%define cpan_name App-perlbrew
|
|
Summary: Manage perl installations in your $HOME
|
|
License: MIT
|
|
Group: Development/Libraries/Perl
|
|
Url: http://search.cpan.org/dist/App-perlbrew/
|
|
Source: http://www.cpan.org/authors/id/G/GU/GUGOD/%{cpan_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(CPAN::Perl::Releases) >= 1.84
|
|
BuildRequires: perl(Capture::Tiny) >= 0.25
|
|
BuildRequires: perl(Devel::PatchPerl) >= 1.24
|
|
BuildRequires: perl(File::Temp) >= 0.2304
|
|
BuildRequires: perl(IO::All) >= 0.51
|
|
BuildRequires: perl(Path::Class) >= 0.33
|
|
BuildRequires: perl(Pod::Parser) >= 1.62
|
|
BuildRequires: perl(Pod::Usage) >= 1.64
|
|
BuildRequires: perl(Test::Exception) >= 0.32
|
|
BuildRequires: perl(Test::More) >= 1.001002
|
|
BuildRequires: perl(Test::NoWarnings) >= 1.04
|
|
BuildRequires: perl(Test::Output) >= 1.03
|
|
BuildRequires: perl(Test::Simple) >= 1.001002
|
|
BuildRequires: perl(Test::Spec) >= 0.47
|
|
BuildRequires: perl(local::lib) >= 2.000014
|
|
Requires: perl(CPAN::Perl::Releases) >= 1.84
|
|
Requires: perl(Capture::Tiny) >= 0.25
|
|
Requires: perl(Devel::PatchPerl) >= 1.24
|
|
Requires: perl(Pod::Parser) >= 1.62
|
|
Requires: perl(Pod::Usage) >= 1.64
|
|
Requires: perl(local::lib) >= 2.000014
|
|
%{perl_requires}
|
|
# MANUAL
|
|
BuildRequires: groff
|
|
BuildRequires: wget
|
|
|
|
%description
|
|
perlbrew is a program to automate the building and installation of perl in
|
|
an easy way. It provides multiple isolated perl environments, and a
|
|
mechanism for you to switch between them.
|
|
|
|
Everything are installed unter '~/perl5/perlbrew'. You then need to include
|
|
a bashrc/cshrc provided by perlbrew to tweak the PATH for you. You then can
|
|
benefit from not having to run 'sudo' commands to install cpan modules
|
|
because those are installed inside your HOME too.
|
|
|
|
For the documentation of perlbrew usage see the perlbrew manpage command on
|
|
CPAN, or by running 'perlbrew help'. The following documentation features
|
|
the API of 'App::perlbrew' module, and may not be remotely close to what
|
|
your want to read.
|
|
|
|
%prep
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
find . -type f -print0 | xargs -0 chmod 644
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%check
|
|
%{__make} test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%defattr(-,root,root,755)
|
|
%doc Changes doc LICENSE README
|
|
|
|
%changelog
|