perl-local-lib/perl-local-lib.spec

394 lines
14 KiB
RPMSpec
Raw Normal View History

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