2011-01-14 11:29:09 +00:00
|
|
|
#
|
2011-04-27 19:00:04 +00:00
|
|
|
# spec file for package perl-App-perlbrew (Version 0.19)
|
2011-01-14 11:29:09 +00:00
|
|
|
#
|
2011-05-02 08:57:27 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-01-14 11:29:09 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-06-04 23:01:10 +00:00
|
|
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1120
|
|
|
|
%define with_test 1
|
|
|
|
%endif
|
|
|
|
|
2011-01-14 11:29:09 +00:00
|
|
|
Name: perl-App-perlbrew
|
2011-06-01 21:55:32 +00:00
|
|
|
Version: 0.23
|
2011-01-14 11:29:09 +00:00
|
|
|
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
|
2011-04-27 19:00:04 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/G/GU/GUGOD/%{cpan_name}-%{version}.tar.gz
|
2011-04-03 14:54:55 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-01-14 11:29:09 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-04-27 19:00:04 +00:00
|
|
|
BuildRequires: perl(Devel::PatchPerl) >= 0.26
|
2011-05-26 19:49:49 +00:00
|
|
|
BuildRequires: perl(Path::Class)
|
|
|
|
BuildRequires: perl(IO::All)
|
|
|
|
BuildRequires: perl(Try::Tiny)
|
2011-06-04 23:01:10 +00:00
|
|
|
%if 0%{?with_test}
|
|
|
|
BuildRequires: perl(Test::Output)
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
%endif
|
2011-04-27 19:00:04 +00:00
|
|
|
Requires: perl(Devel::PatchPerl) >= 0.26
|
2011-05-26 19:49:49 +00:00
|
|
|
Requires: perl(Path::Class)
|
|
|
|
Requires: perl(IO::All)
|
|
|
|
Requires: perl(Try::Tiny)
|
2011-01-14 11:29:09 +00:00
|
|
|
%{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}
|
|
|
|
|
2011-06-04 23:01:10 +00:00
|
|
|
%if 0%{?with_test}
|
2011-01-14 11:29:09 +00:00
|
|
|
%check
|
|
|
|
%{__make} test
|
2011-06-04 23:01:10 +00:00
|
|
|
%endif
|
2011-01-14 11:29:09 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2011-04-27 19:00:04 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes doc LICENSE README
|
2011-01-14 11:29:09 +00:00
|
|
|
|
|
|
|
%changelog
|