diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..53c3e96 --- /dev/null +++ b/LICENSE @@ -0,0 +1,17 @@ +The ISC License. + +---------------------------------------------------------------------------- +Copyright (c) 2002-2011, Anno Siegel +Copyright (c) 2011, Shlomi Fish + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 48aa0fc..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# perl-Text-Aligner - -#### Description -VERSION - -#### 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 998621e..0000000 --- a/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# perl-Text-Aligner - -#### 介绍 -VERSION - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -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/Text-Aligner-0.16.tar.gz b/Text-Aligner-0.16.tar.gz new file mode 100644 index 0000000..b96bd6c Binary files /dev/null and b/Text-Aligner-0.16.tar.gz differ diff --git a/perl-Text-Aligner.spec b/perl-Text-Aligner.spec new file mode 100644 index 0000000..e39e0f7 --- /dev/null +++ b/perl-Text-Aligner.spec @@ -0,0 +1,67 @@ +#from https://fedoraproject.org to https://openeuler.org/ + +Name: perl-Text-Aligner +Version: 0.16 +Release: 1 +Summary: Text::Aligner Perl module +License: ISC +URL: https://metacpan.org/release/Text-Aligner +Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Text-Aligner-%{version}.tar.gz +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: sed +# Run-time +BuildRequires: perl(Exporter) +BuildRequires: perl(Term::ANSIColor) >= 2.02 +BuildRequires: perl(vars) +# Tests only +BuildRequires: perl(blib) +BuildRequires: perl(constant) +BuildRequires: perl(File::Spec) +BuildRequires: perl(IO::Handle) +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%{?perl_default_filter} +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Term::ANSIColor\\)$ + +%description +Text::Aligner exports a single function, align(), which is used to justify +strings to various alignment styles. The alignment specification is the +first argument, followed by any number of scalars which are subject to +alignment. + +%prep +%setup -q -n Text-Aligner-%{version} +rm -r inc +sed -i -e '/^inc\// d' MANIFEST +find -type f -exec chmod -x {} + + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue May 11 2021 wangyueliang - 0.16-1 +- Package init diff --git a/perl-Text-Aligner.yaml b/perl-Text-Aligner.yaml new file mode 100644 index 0000000..92def7a --- /dev/null +++ b/perl-Text-Aligner.yaml @@ -0,0 +1,4 @@ +version_control: metacpan +src_repo: Text-Aligner +tag_prefix: "^Text-Aligner-" +separator: "."