diff --git a/Module-Install-ReadmeFromPod-0.26-Regenerate-README-in-UTF-8.patch b/Module-Install-ReadmeFromPod-0.26-Regenerate-README-in-UTF-8.patch new file mode 100644 index 0000000..e902536 --- /dev/null +++ b/Module-Install-ReadmeFromPod-0.26-Regenerate-README-in-UTF-8.patch @@ -0,0 +1,29 @@ +From 84707bf14b51ed9ffc0d7de626e9aaeaa54d2168 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Tue, 26 Apr 2016 10:48:59 +0200 +Subject: [PATCH] Regenerate README in UTF-8 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 10be6eb..74b488d 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -21,7 +21,7 @@ requires 'Pod::Html' => 0; + requires 'Pod::Man' => 0; + requires 'Pod::Markdown' => 2.0; + recommends 'App::pod2pdf'; +-readme_from; # Self hosting! ++readme_from '', { clean => 1, options => [ utf8 => 1 ]}; # Self hosting! + githubmeta; + clean_files 'dist have_make LICENSE'; + if ( $Config{make} and can_run( $Config{make} ) ) { +-- +2.5.5 + diff --git a/Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch b/Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch new file mode 100644 index 0000000..f67eee5 --- /dev/null +++ b/Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch @@ -0,0 +1,44 @@ +From 83987c6c69aa34a60eeb0dda95dd40cf6cbcb24d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 29 Jul 2019 09:13:05 +0200 +Subject: [PATCH] Do not test PDF file for new-lines +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +A PDF file can contain a stream object that contains "\r\n"byte +sequence. Therefore it does not make sense to test the PDF file for +new-lines. + +CPAN RT#130221 + +Signed-off-by: Petr Písař +--- + t/05_cleanpdf.t | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/t/05_cleanpdf.t b/t/05_cleanpdf.t +index bb8f863..59b8ab7 100644 +--- a/t/05_cleanpdf.t ++++ b/t/05_cleanpdf.t +@@ -14,7 +14,7 @@ unless ( -e 'have_make' ) { + eval { require App::pod2pdf; }; + plan skip_all => 'App::pod2pdf not installed' if $@; + +-plan tests => 13; ++plan tests => 12; + + { + my $make = $Config{make}; +@@ -70,7 +70,7 @@ ok( -e 'Foobar.man', 'There is a Foobar.man file' ); + ok( -e 'Foobar.pdf', 'There is a Foobar.pdf file' ); + + unlike io->file($_)->all, qr/\r\n/, "$_ contains only unix newlines" +- for qw( Foobar.txt Foobar.htm Foobar.man Foobar.pdf ); ++ for qw( Foobar.txt Foobar.htm Foobar.man ); + + my $distclean = capture_merged { system "$make distclean" }; + diag("$distclean"); +-- +2.20.1 + diff --git a/Module-Install-ReadmeFromPod-0.30.tar.gz b/Module-Install-ReadmeFromPod-0.30.tar.gz new file mode 100644 index 0000000..2b27b17 Binary files /dev/null and b/Module-Install-ReadmeFromPod-0.30.tar.gz differ diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 0261ca0..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# perl-Module-Install-ReadmeFromPod - -#### Description -Module::Install extension to automatically convert POD to a README - -#### 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/) diff --git a/README.md b/README.md deleted file mode 100644 index 9857086..0000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# perl-Module-Install-ReadmeFromPod - -#### 介绍 -Module::Install extension to automatically convert POD to a README - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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/) diff --git a/perl-Module-Install-ReadmeFromPod.spec b/perl-Module-Install-ReadmeFromPod.spec new file mode 100644 index 0000000..ea95004 --- /dev/null +++ b/perl-Module-Install-ReadmeFromPod.spec @@ -0,0 +1,74 @@ +%{bcond_without perl_Module_Install_ReadmeFromPod_enablas_optional_test} +%{bcond_with perl_Module_Install_ReadmeFromPod_enables_pdf} + +Name: perl-Module-Install-ReadmeFromPod +Version: 0.30 +Release: 11 +Summary: A Module::Install extension to automatically convert POD to a README +License: GPL+ or Artistic +URL: https://metacpan.org/release/Module-Install-ReadmeFromPod + +Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-ReadmeFromPod-%{version}.tar.gz +Patch0: Module-Install-ReadmeFromPod-0.26-Regenerate-README-in-UTF-8.patch +Patch1: Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch + +BuildArch: noarch +BuildRequires: coreutils make perl-generators perl-interpreter perl(Config) perl(inc::Module::Install) +BuildRequires: perl(lib) perl(Module::Install::AutoLicense) perl(Module::Install::AuthorRequires) >= 0.02 +BuildRequires: perl(Module::Install::GithubMeta) perl(Module::Install::Metadata) perl(strict) sed +BuildRequires: perl(base) perl(Capture::Tiny) >= 0.05 perl(IO::All) perl(Module::Install::Base) >= 1 +BuildRequires: perl(Pod::Html) perl(Pod::Man) perl(Pod::Markdown) >= 2 perl(Pod::Text) >= 3.13 perl(vars) +BuildRequires: perl(warnings) perl(File::Path) perl(File::Temp) perl(Test::InDistDir) perl(Test::More) >= 0.47 +%if %{with perl_Module_Install_ReadmeFromPod_enables_pdf} +BuildRequires: perl(App::pod2pdf) +%endif +%if %{with perl_Module_Install_ReadmeFromPod_enablas_optional_test} +BuildRequires: perl(Test::Pod) >= 1.00 perl(Test::Pod::Coverage) >= 1.00 +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +%if %{with perl_Module_Install_ReadmeFromPod_enables_pdf} +Suggests: perl(App::pod2pdf) +%endif +Requires: perl(Capture::Tiny) >= 0.05 perl(IO::All) perl(Module::Install::Base) >= 1 perl(Pod::Html) +Requires: perl(Pod::Man) perl(Pod::Markdown) >= 2 perl(Pod::Text) >= 3.13 + +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Module::Install::Base\\)$ + +%description +Module::Install::ReadmeFromPod is a Module::Install extension that generates a "README" file automatically +from an indicated file containing POD, whenever the author runs "Makefile.PL". Several output formats are +supported: plain-text, HTML, PDF or manpage. + +%package_help + +%prep +%autosetup -n Module-Install-ReadmeFromPod-%{version} -p1 +rm -rf inc +sed -i -e '/^inc\// d' MANIFEST +chmod -x tools/git-log.pl + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%defattr(-,root,root) +$doc README +%license LICENSE +%{perl_vendorlib}/* + +%files help +%defattr(-,root,root) +%doc Changes tools +%{_mandir}/man3/* + +%changelog +* Fri Jan 10 2020 openEuler Buildteam - 0.30-11 +- Package init