Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
0c9d22f6b5
!5 upgrade version to 2.000029
From: @renxichen 
Reviewed-by: @openeuler-basic 
Signed-off-by: @openeuler-basic
2023-07-25 02:45:18 +00:00
renxichen
49444809b9 upgrade version to 2.000029 2023-07-18 09:41:06 +08:00
openeuler-ci-bot
3e79375d25 !4 Add yaml file
Merge pull request !4 from jeff200902/master
2020-05-09 19:03:26 +08:00
jeff200902
06f724a7f2 Add yaml file 2020-05-07 19:16:44 +08:00
openeuler-ci-bot
ee6e1a4cda !3 fix mainline build depend
Merge pull request !3 from HukunaMatata/init
2020-01-14 21:03:33 +08:00
HukunaMatata
571bbb8f10 fix build dependence 2020-01-14 21:01:17 +08:00
openeuler-ci-bot
2819d4bffc !2 fix mainline build depend
Merge pull request !2 from HukunaMatata/init
2020-01-14 20:18:20 +08:00
HukunaMatata
fed71ef298 fix build error 2020-01-14 19:53:53 +08:00
openeuler-ci-bot
59f91114a9 !1 Package init
Merge pull request !1 from HukunaMatata/init
2020-01-13 20:03:12 +08:00
HukunaMatata
c52172a4ca package init 2020-01-13 19:58:30 +08:00
6 changed files with 136 additions and 36 deletions

View File

@ -1,36 +0,0 @@
# perl-local-lib
#### Description
Create and use a local lib/ for perl modules
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
local-lib-2.000029.tar.gz Normal file

Binary file not shown.

17
perl-homedir.csh Normal file
View File

@ -0,0 +1,17 @@
# invoke local::lib
# default -- invoke local::lib for all users
setenv PERL_HOMEDIR 1
# load our configs, aka opportunities to set PERL_HOMEDIR=0
[ -f /etc/sysconfig/perl-homedir ] && . /etc/sysconfig/perl-homedir
[ -f $HOME/.perl-homedir ] && . $HOME/.perl-homedir
alias perlll="eval `perl -Mlocal::lib`"
# if system default
if [ "x$PERL_HOMEDIR" = "x1" ] ; then
eval `perl -Mlocal::lib`
fi

17
perl-homedir.sh Normal file
View File

@ -0,0 +1,17 @@
# invoke local::lib
# default -- invoke local::lib for all users
PERL_HOMEDIR=1
# load our configs, aka opportunities to set PERL_HOMEDIR=0
[ -f /etc/sysconfig/perl-homedir ] && . /etc/sysconfig/perl-homedir
[ -f $HOME/.perl-homedir ] && . $HOME/.perl-homedir
alias perlll='eval `perl -Mlocal::lib`'
# if system default
if [ "x$PERL_HOMEDIR" = "x1" ] ; then
eval `perl -Mlocal::lib`
fi

98
perl-local-lib.spec Normal file
View File

@ -0,0 +1,98 @@
Name: perl-local-lib
Version: 2.000029
Release: 1
%define pkg_name local-lib
License: GPL+ or Artistic
Group: Development/Libraries
Summary: Create and use a local lib/ for perl modules with Perl5lib
Url: https://metacpan.org/release/local-lib
Source0: https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{pkg_name}-%{version}.tar.gz
Source1: perl-homedir.sh
Source2: perl-homedir.csh
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Carp::Heavy)
BuildRequires: perl(Config)
BuildRequires: perl(CPAN)
BuildRequires: perl(CPAN::HandleConfig)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.00
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Glob)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(Carp)
Requires: perl(Carp::Heavy)
Requires: perl(File::Basename)
Requires: perl(File::Glob)
Requires: perl(File::Spec)
%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 application.
%package -n perl-homedir
Group: Development/Libraries
Summary: Automatically setup user $HOME
Requires: %{name} = %{version}-%{release}
%description -n perl-homedir
perl-homedir automatically create a ~/perl5 directory in user's $HOME when user login.
%prep
%setup -q -n local-lib-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -pm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/
install -pm0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/
%files
%{perl_vendorlib}/*
%{_mandir}/man3/*
%files -n perl-homedir
%{_sysconfdir}/profile.d/*
%changelog
* Tue Jul 18 2023 renhongxun <renhongxun@h-partners.com> - 2.000029 - 1
- upgrade version to 2.000029
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.000024 - 2
- Fix build dependence
* Mon Aug 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.000024 - 1
- Package Init

4
perl-local-lib.yaml Normal file
View File

@ -0,0 +1,4 @@
version-ctrl: metacpan
src_repo: local-lib
tag_prefix: "^v"
seperator: "."