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