This commit is contained in:
liuwei 2020-01-11 17:35:21 +08:00
parent be57294ead
commit 4486c8af96
5 changed files with 83 additions and 73 deletions

View File

@ -0,0 +1,25 @@
From fc4e65f8d43226739624e15fe3eefa0d05fd8f96 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 17 May 2017 16:48:56 +0200
Subject: [PATCH] Fix building on Perl without "." in @INC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
Makefile.PL | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.PL b/Makefile.PL
index 93b5ed5..fffb0d1 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,3 +1,4 @@
+BEGIN { push @INC, '.'; }
use inc::Module::Package 'Ingy:modern 0.17';
# The default module 'lib/Module/Package.pm' has to be very strict
--
2.9.4

BIN
Module-Package-0.30.tar.gz Normal file

Binary file not shown.

View File

@ -1,36 +0,0 @@
# perl-Module-Package
#### Description
Postmodern Perl Module Packaging
#### 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/)

View File

@ -1,37 +0,0 @@
# perl-Module-Package
#### 介绍
Postmodern Perl Module Packaging
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

58
perl-Module-Package.spec Normal file
View File

@ -0,0 +1,58 @@
Name: perl-Module-Package
Version: 0.30
Release: 22
Summary: Postmodern Perl Module Packaging
License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Package
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/Module-Package-%{version}.tar.gz
Patch0: Module-Package-0.30-Fix-building-on-Perl-without-.-in-INC.patch
BuildArch: noarch
BuildRequires: perl-generators perl(ExtUtils::MakeMaker) perl(Cwd) perl(Data::Dumper) perl(File::Path)
BuildRequires: perl(IO::All) >= 0.41 perl(Module::Install) >= 1.01 perl(Module::Install::AuthorRequires) >= 0.02
BuildRequires: perl(Module::Install::Base) perl(Module::Install::ManifestSkip) >= 0.19 perl(Moo) >= 0.009008
BuildRequires: perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))
Requires: perl(Data::Dumper) perl(File::Path)
%description
This module is a dropin replacement for Module::Install. It does everything Module::Install does,
but just a bit better.
Actually this module is simply a wrapper around Module::Install. It attempts to drastically reduce
what goes in a Makefile.PL, while at the same time, fixing many of the problems that people have
had with Module::Install (and other module frameworks) over the years.
%package_help
%prep
%autosetup -n Module-Package-%{version} -p1
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
make test
%files
%defattr(-,root,root)
%doc README
%license LICENSE
%{perl_vendorlib}/*
%files help
%defattr(-,root,root)
%doc Changes
%{_mandir}/man3/*
%changelog
* Fri Jan 10 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.30-22
- Package init