Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-A
perl-App-rlibperl
perl-App-rlibperl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-App-rlibperl.spec of Package perl-App-rlibperl
# # spec file for package perl-App-rlibperl # # Copyright (c) 2016 SUSE LINUX 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-rlibperl Version: 0.700 Release: 0 %define cpan_name App-rlibperl Summary: Execute perl prepending relative lib to @INC License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/App-rlibperl/ Source0: http://www.cpan.org/authors/id/R/RW/RWSTAUNER/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.88 %{perl_requires} %description The 'rlibperl' script simplifies the inclusion of relative library directories with perl. Upon execution the script will look for lib directories relative to the location of the script then re-invoke perl with all supplied command line arguments and any found lib directories added to '@INC'. The script was designed to be installed via local::lib (though local::lib is not required). Once installed, executing the script is just like executing perl except that it adds the local lib directories to '@INC' for you. It also adds the directory of the script to '$PATH' like local::lib does which enables 'system'/'qx'/'exec'/etc. to find executables in that directory. So this: $HOME/perl5/bin/rlibperl -MSome::Module -e 'do_something' is roughly the equivalent of: PATH=$HOME/perl5/bin:$PATH perl \ -I$HOME/perl5/lib/perl5 -MSome::Module -e 'do_something' If that isn't useful enough (it probably isn't) check out App::rbinperl which automatically adds '-S' which makes it just as easy to execute another script in that bin directory. %prep %setup -q -n %{cpan_name}-%{version} %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 LICENSE README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor