8
0
Files
perl-App-perlbrew/perl-App-perlbrew.spec

71 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-App-perlbrew (Version 0.16)
#
# 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-App-perlbrew
Version: 0.16
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/App-perlbrew-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl
BuildRequires: perl-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{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%{?suse_version} == 0 || 0%{?suse_version} >= 1120
%check
%{__make} test
%endif
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%__chmod 0755 "%{buildroot}%{_bindir}"/*
%__perl -n -i -e 'print unless m|%{_bindir}|' "%{name}.files"
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root)
%doc Changes LICENSE README
%{_bindir}/perlbrew
%changelog