# # spec file for package perl-App-perlbrew # # 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/ # %if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120 %define with_test 1 %endif Name: perl-App-perlbrew Version: 0.29 Release: 1 License: MIT %define cpan_name App-perlbrew Summary: Manage perl installations in your $HOME Url: http://search.cpan.org/dist/App-perlbrew/ Group: Development/Libraries/Perl 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(Devel::PatchPerl) >= 0.26 BuildRequires: perl(Path::Class) BuildRequires: perl(IO::All) BuildRequires: perl(Try::Tiny) BuildRequires: perl(File::Path::Tiny) %if 0%{?with_test} BuildRequires: perl(Test::Spec) BuildRequires: perl(Test::Output) BuildRequires: perl(Test::Exception) %endif Requires: perl(Devel::PatchPerl) >= 0.26 Requires: perl(Path::Class) Requires: perl(IO::All) Requires: perl(Try::Tiny) Requires: perl(File::Path::Tiny) %{perl_requires} %description perlbrew is a program to automate the building and installation of perl in the users HOME. At the moment, it installs everything to '~/perl5/perlbrew', and requires you to tweak your PATH by including a bashrc/cshrc file it provides. You then can benefit from not having to run 'sudo' commands to install cpan modules because those are installed inside your HOME too. It's a completely separate perl environment. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %if 0%{?with_test} %check %{__make} test %endif %install %perl_make_install %perl_process_packlist %perl_gen_filelist %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(-,root,root,755) %doc Changes doc LICENSE README %changelog