3c1cb5
Name:           perl-local-lib
3c1cb5
Version:        2.000024
3c1cb5
Release:        7%{?dist}
3c1cb5
License:        GPL+ or Artistic
3c1cb5
Summary:        Create and use a local lib/ for perl modules
3c1cb5
Url:            https://metacpan.org/release/local-lib
3c1cb5
Source:         https://cpan.metacpan.org/authors/id/H/HA/HAARG/local-lib-%{version}.tar.gz
3c1cb5
Source10:       perl-homedir.sh
3c1cb5
Source11:       perl-homedir.csh
3c1cb5
BuildArch:      noarch
3c1cb5
# Build
3c1cb5
BuildRequires:  coreutils
3c1cb5
BuildRequires:  make
3c1cb5
BuildRequires:  perl-generators
3c1cb5
BuildRequires:  perl-interpreter
3c1cb5
BuildRequires:  perl(CPAN)
3c1cb5
BuildRequires:  perl(CPAN::HandleConfig)
3c1cb5
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.00
3c1cb5
BuildRequires:  perl(File::HomeDir)
3c1cb5
BuildRequires:  perl(File::Spec)
3c1cb5
BuildRequires:  perl(strict)
3c1cb5
BuildRequires:  perl(warnings)
3c1cb5
# Runtime
3c1cb5
BuildRequires:  perl(Carp)
3c1cb5
BuildRequires:  perl(Carp::Heavy)
3c1cb5
BuildRequires:  perl(Config)
3c1cb5
BuildRequires:  perl(File::Basename)
3c1cb5
BuildRequires:  perl(File::Glob)
3c1cb5
# Tests only
3c1cb5
BuildRequires:  perl(base)
3c1cb5
BuildRequires:  perl(Cwd)
3c1cb5
BuildRequires:  perl(Data::Dumper)
3c1cb5
BuildRequires:  perl(Exporter)
3c1cb5
BuildRequires:  perl(File::Path)
3c1cb5
BuildRequires:  perl(File::Spec::Functions)
3c1cb5
BuildRequires:  perl(File::Temp)
3c1cb5
BuildRequires:  perl(IPC::Open3)
3c1cb5
BuildRequires:  perl(lib)
3c1cb5
BuildRequires:  perl(Test::More)
3c1cb5
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
3c1cb5
Requires:       perl(Carp)
3c1cb5
Requires:       perl(Carp::Heavy)
3c1cb5
Requires:       perl(File::Basename)
3c1cb5
Requires:       perl(File::Glob)
3c1cb5
Requires:       perl(File::Spec)
3c1cb5
3c1cb5
%description
3c1cb5
This module provides a quick, convenient way of bootstrapping a user-
3c1cb5
local Perl module library located within the user's home directory. It
3c1cb5
also constructs and prints out for the user the list of environment
3c1cb5
variables using the syntax appropriate for the user's current shell (as
3c1cb5
specified by the 'SHELL' environment variable), suitable for directly
3c1cb5
adding to one's shell configuration file.
3c1cb5
3c1cb5
More generally, local::lib allows for the bootstrapping and usage of a
3c1cb5
directory containing Perl modules outside of Perl's '@INC'. This makes
3c1cb5
it easier to ship an application with an app-specific copy of a Perl module,
3c1cb5
or collection of modules. Useful in cases like when an upstream maintainer
3c1cb5
hasn't applied a patch to a module of theirs that you need for your
3c1cb5
application.
3c1cb5
3c1cb5
%package -n perl-homedir
3c1cb5
License:    GPL+ or Artistic
3c1cb5
Summary:    Per-user Perl local::lib setup
3c1cb5
Requires:   %{name} = %{version}-%{release}
3c1cb5
Requires:   sed
3c1cb5
3c1cb5
%description -n perl-homedir
3c1cb5
perl-homedir configures the system to automatically create a ~/perl5
3c1cb5
directory in each user's $HOME on user login.  This allows each user to
3c1cb5
install CPAN packages via the CPAN to their $HOME, with no additional
3c1cb5
configuration or privileges, and without installing them system-wide.
3c1cb5
3c1cb5
If you want your users to be able to install and use their own Perl modules,
3c1cb5
install this package.
3c1cb5
3c1cb5
%prep
3c1cb5
%setup -q -n local-lib-%{version}
3c1cb5
3c1cb5
%build
3c1cb5
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
3c1cb5
make %{?_smp_mflags}
3c1cb5
3c1cb5
%install
3c1cb5
make pure_install DESTDIR=%{buildroot}
3c1cb5
%{_fixperms} %{buildroot}/*
3c1cb5
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
3c1cb5
install -pm0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/profile.d/
3c1cb5
install -pm0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/profile.d/
3c1cb5
3c1cb5
%check
3c1cb5
make test
3c1cb5
3c1cb5
%files
3c1cb5
%doc Changes
3c1cb5
%{perl_vendorlib}/*
3c1cb5
%{_mandir}/man3/*
3c1cb5
3c1cb5
%files -n perl-homedir
3c1cb5
%{_sysconfdir}/profile.d/*
3c1cb5
3c1cb5
%changelog
3c1cb5
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.000024-7
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3c1cb5
3c1cb5
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 2.000024-6
3c1cb5
- Perl 5.30 rebuild
3c1cb5
3c1cb5
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.000024-5
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3c1cb5
3c1cb5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000024-4
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3c1cb5
3c1cb5
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 2.000024-3
3c1cb5
- Perl 5.28 rebuild
3c1cb5
3c1cb5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.000024-2
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3c1cb5
3c1cb5
* Thu Oct 12 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.000024-1
3c1cb5
- 2.000024 bump
3c1cb5
3c1cb5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.000023-2
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3c1cb5
3c1cb5
* Mon Jun 12 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.000023-1
3c1cb5
- 2.000023 bump
3c1cb5
3c1cb5
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 2.000019-4
3c1cb5
- Perl 5.26 rebuild
3c1cb5
3c1cb5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.000019-3
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3c1cb5
3c1cb5
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.000019-2
3c1cb5
- Perl 5.24 rebuild
3c1cb5
3c1cb5
* Fri Apr 22 2016 Jitka Plesnikova <jplesnik@redhat.com> - 2.000019-1
3c1cb5
- 2.000019 bump
3c1cb5
3c1cb5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.000018-2
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3c1cb5
3c1cb5
* Mon Nov 02 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.000018-1
3c1cb5
- 2.000018 bump
3c1cb5
3c1cb5
* Tue Oct 06 2015 Petr Šabata <contyk@redhat.com> - 2.000017-1
3c1cb5
- 2.000017 bump
3c1cb5
- Drop the hard CPAN dependency from perl-homedir
3c1cb5
3c1cb5
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.000015-4
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3c1cb5
3c1cb5
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.000015-3
3c1cb5
- Perl 5.22 rebuild
3c1cb5
3c1cb5
* Thu Jan 15 2015 Petr Pisar <ppisar@redhat.com> - 2.000015-2
3c1cb5
- Do not hard-code /usr/bin
3c1cb5
3c1cb5
* Wed Dec 17 2014 Petr Šabata <contyk@redhat.com> - 2.000015-1
3c1cb5
- 2.000015 bump
3c1cb5
3c1cb5
* Tue Nov 11 2014 Jitka Plesnikova <jplesnik@redhat.com> - 2.000014-1
3c1cb5
- 2.000014 bump
3c1cb5
3c1cb5
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.008010-8
3c1cb5
- Perl 5.20 rebuild
3c1cb5
3c1cb5
* Mon Jul 28 2014 Petr Pisar <ppisar@redhat.com> - 1.008010-7
3c1cb5
- sed(1) is packaged as /bin/sed
3c1cb5
3c1cb5
* Fri Jul 25 2014 Petr Pisar <ppisar@redhat.com> - 1.008010-6
3c1cb5
- Parse perl-homedir configuration bash syntax by csh profile script
3c1cb5
  (bug #1122993)
3c1cb5
3c1cb5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008010-5
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3c1cb5
3c1cb5
* Thu Nov 21 2013 Petr Pisar <ppisar@redhat.com> - 1.008010-4
3c1cb5
- Fix setting undefined variable in CSH (bug #1033018)
3c1cb5
3c1cb5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008010-3
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3c1cb5
3c1cb5
* Fri Aug 02 2013 Petr Pisar <ppisar@redhat.com> - 1.008010-2
3c1cb5
- Perl 5.18 rebuild
3c1cb5
3c1cb5
* Fri Jun 07 2013 Iain Arnell <iarnell@gmail.com> 1.008010-1
3c1cb5
- update to latest upstream version
3c1cb5
3c1cb5
* Fri Apr 19 2013 Iain Arnell <iarnell@gmail.com> 1.008009-2
3c1cb5
- rebase append-semicolon patch
3c1cb5
3c1cb5
* Fri Mar 08 2013 Iain Arnell <iarnell@gmail.com> 1.008009-1
3c1cb5
- update to latest upstream version
3c1cb5
3c1cb5
* Tue Feb 19 2013 Iain Arnell <iarnell@gmail.com> 1.008007-1
3c1cb5
- update to latest upstream version
3c1cb5
3c1cb5
* Fri Feb 15 2013 Iain Arnell <iarnell@gmail.com> 1.008006-1
3c1cb5
- udpate to latest upstream version
3c1cb5
3c1cb5
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008004-12
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3c1cb5
3c1cb5
* Tue Nov 20 2012 Petr Šabata <contyk@redhat.com> - 1.008004-11
3c1cb5
- Add missing buildtime dependencies
3c1cb5
- Drop useless deps
3c1cb5
- Drop command macros
3c1cb5
- Modernize the spec
3c1cb5
3c1cb5
* Mon Aug 20 2012 Petr Pisar <ppisar@redhat.com> - 1.008004-10
3c1cb5
- Fix CSH support (bug #849609)
3c1cb5
3c1cb5
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008004-9
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3c1cb5
3c1cb5
* Thu Jun 21 2012 Petr Pisar <ppisar@redhat.com> - 1.008004-8
3c1cb5
- Perl 5.16 rebuild
3c1cb5
3c1cb5
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.008004-7
3c1cb5
- Trim Module::Build depencency version to 2 digits because upstream has
3c1cb5
  regressed the version
3c1cb5
3c1cb5
* Sun Jun 17 2012 Petr Pisar <ppisar@redhat.com> - 1.008004-6
3c1cb5
- Perl 5.16 rebuild
3c1cb5
3c1cb5
* Thu May 31 2012 Petr Pisar <ppisar@redhat.com> - 1.008004-5
3c1cb5
- Round Module::Build version to 2 digits
3c1cb5
3c1cb5
* Fri Feb 10 2012 Iain Arnell <iarnell@gmail.com> 1.008004-4
3c1cb5
- avoid creating ~/perl5/ for all users (rhbz#789146)
3c1cb5
- drop defattr in files lists
3c1cb5
3c1cb5
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008004-3
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3c1cb5
3c1cb5
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.008004-2
3c1cb5
- Perl mass rebuild
3c1cb5
3c1cb5
* Wed Mar 16 2011 Iain Arnell <iarnell@gmail.com> 1.008004-1
3c1cb5
- update to latest upstream version
3c1cb5
3c1cb5
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.008001-3
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3c1cb5
3c1cb5
* Sun Jan 23 2011 Iain Arnell <iarnell@gmail.com> 1.008001-2
3c1cb5
- update requires perl(Module::Build) >= 0.3600
3c1cb5
3c1cb5
* Sun Jan 23 2011 Iain Arnell <iarnell@gmail.com> 1.008001-1
3c1cb5
- update to latest upstream version
3c1cb5
- drop R/BR perl(ExtUtils::CBuilder) and perl(ExtUtils::ParseXS)
3c1cb5
3c1cb5
* Fri Dec 17 2010 Iain Arnell <iarnell@gmail.com> 1.007000-1
3c1cb5
- update to latest upstream version
3c1cb5
- fix typo in description
3c1cb5
3c1cb5
* Sun Nov 21 2010 Iain Arnell <iarnell@gmail.com> 1.006007-1
3c1cb5
- update to latest upstream version
3c1cb5
- clean up spec for modern rpmbuild
3c1cb5
- BR perl(Capture::Tiny)
3c1cb5
3c1cb5
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.004009-3
3c1cb5
- Mass rebuild with perl-5.12.0
3c1cb5
3c1cb5
* Tue Jan 05 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.004009-2
3c1cb5
- add perl-homedir subpackage
3c1cb5
3c1cb5
* Tue Jan 05 2010 Chris Weyl <cweyl@alumni.drew.edu> 1.004009-1
3c1cb5
- add perl_default_filter
3c1cb5
- auto-update to 1.004009 (by cpan-spec-update 0.01)
3c1cb5
3c1cb5
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.004007-2
3c1cb5
- rebuild against perl 5.10.1
3c1cb5
3c1cb5
* Sat Sep 19 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.004007-1
3c1cb5
- auto-update to 1.004007 (by cpan-spec-update 0.01)
3c1cb5
3c1cb5
* Sat Aug 29 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.004006-1
3c1cb5
- auto-update to 1.004006 (by cpan-spec-update 0.01)
3c1cb5
3c1cb5
* Tue Aug 25 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.004005-1
3c1cb5
- auto-update to 1.004005 (by cpan-spec-update 0.01)
3c1cb5
3c1cb5
* Tue Aug 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.004004-1
3c1cb5
- auto-update to 1.004004 (by cpan-spec-update 0.01)
3c1cb5
- added a new br on perl(ExtUtils::Install) (version 1.43)
3c1cb5
- added a new req on perl(CPAN) (version 1.80)
3c1cb5
- added a new req on perl(ExtUtils::CBuilder) (version 0)
3c1cb5
- added a new req on perl(ExtUtils::Install) (version 1.43)
3c1cb5
- added a new req on perl(ExtUtils::MakeMaker) (version 6.31)
3c1cb5
- added a new req on perl(ExtUtils::ParseXS) (version 0)
3c1cb5
- added a new req on perl(Module::Build) (version 0.28)
3c1cb5
3c1cb5
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.004001-2
3c1cb5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3c1cb5
3c1cb5
* Wed Jun 03 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.004001-1
3c1cb5
- auto-update to 1.004001 (by cpan-spec-update 0.01)
3c1cb5
3c1cb5
* Tue May 19 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.004000-1
3c1cb5
- auto-update to 1.004000 (by cpan-spec-update 0.01)
3c1cb5
- altered br on perl(ExtUtils::MakeMaker) (6.31 => 6.42)
3c1cb5
3c1cb5
* Sun Mar 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.003002-1
3c1cb5
- submission
3c1cb5
3c1cb5
* Sun Mar 08 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.003002-0
3c1cb5
- initial RPM packaging
3c1cb5
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)