commit b4d5b0d51fcf1f91498e638e294fdac5518cab88 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:13:28 2019 -0400 Package init diff --git a/Text-Tabs+Wrap-2013.0523-Build-from-lib.patch b/Text-Tabs+Wrap-2013.0523-Build-from-lib.patch new file mode 100644 index 0000000..82c76ec --- /dev/null +++ b/Text-Tabs+Wrap-2013.0523-Build-from-lib.patch @@ -0,0 +1,56 @@ +From 425354918f774c39c68b79de55691ee262cdcb84 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Wed, 25 Mar 2015 17:57:05 +0100 +Subject: [PATCH] Build from lib +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Building from lib.modern adds "modern::" prefix to manual pages. + +This is a work-around for CPAN RT#103116. Creating symlink is not +enough for EU::MM. + +Signed-off-by: Petr Písař + +diff --git a/Makefile.PL b/Makefile.PL +index a8dbc7e..1b5b51a 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -1,10 +1,15 @@ + + use ExtUtils::MakeMaker; + ++if (!-d 'lib') { ++ rename (($] > 5.010 ? 'lib.modern' : 'lib.old'), 'lib') or ++ die "Could not rename to lib: $!"; ++} ++ + WriteMakefile( + 'NAME' => 'Text-Wrap', + 'DISTNAME' => 'Text-Tabs+Wrap', +- 'VERSION_FROM' => 'lib.modern/Text/Wrap.pm', ++ 'VERSION_FROM' => 'lib/Text/Wrap.pm', + ($] >= 5.005 ? + ( + ABSTRACT => 'Expand tabs and do simple line wrapping', +@@ -21,16 +26,5 @@ WriteMakefile( + 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" }, + 'INSTALLDIRS' => 'perl', + +- PM => ($] > 5.010 ? +- { +- 'lib.modern/Text/Tabs.pm' => '$(INST_LIBDIR)/Text/Tabs.pm', +- 'lib.modern/Text/Wrap.pm' => '$(INST_LIBDIR)/Text/Wrap.pm', +- } +- : +- { +- 'lib.old/Text/Tabs.pm' => '$(INST_LIBDIR)/Text/Tabs.pm', +- 'lib.old/Text/Wrap.pm' => '$(INST_LIBDIR)/Text/Wrap.pm', +- }) +- + ); + +-- +2.1.0 + diff --git a/Text-Tabs+Wrap-2013.0523.tar.gz b/Text-Tabs+Wrap-2013.0523.tar.gz new file mode 100644 index 0000000..1f710ca Binary files /dev/null and b/Text-Tabs+Wrap-2013.0523.tar.gz differ diff --git a/perl-Text-Tabs+Wrap.spec b/perl-Text-Tabs+Wrap.spec new file mode 100644 index 0000000..0c47bd5 --- /dev/null +++ b/perl-Text-Tabs+Wrap.spec @@ -0,0 +1,57 @@ +Name: perl-Text-Tabs+Wrap +Version: 2013.0523 +Release: 418 +Summary: Expand tabs and do simple line wrapping +License: TTWL +URL: https://metacpan.org/release/Text-Tabs%2BWrap +Source0: https://cpan.metacpan.org/authors/id/M/MU/MUIR/modules/Text-Tabs+Wrap-%{version}.tar.gz +Patch0: Text-Tabs+Wrap-2013.0523-Build-from-lib.patch +BuildArch: noarch +BuildRequires: perl-interpreter perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Conflicts: perl < 4:5.20.2-325 + +%description +Text::Tabs does most of what the unix utilities expand(1) and unexpand(1) do. Given +a line with tabs in it, expand replaces those tabs with the appropriate number of +spaces. Given a line with or without tabs in it, unexpand adds tabs when it can save +bytes by doing so, like the unexpand -a command. + +Unlike the old unix utilities, this module correctly accounts for any Unicode combining +characters (such as diacriticals) that may occur in each line for both expansion and +unexpansion. These are overstrike characters that do not increment the logical position. +Make sure you have the appropriate Unicode settings enabled. + +%package help +Summary: Doc files for %{name} +Buildarch: noarch +requires: man + +%description help +The %{name}-help package contains doc files for %{name}. + +%prep +%autosetup -n Text-Tabs+Wrap-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +%make_build + +%install +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%{perl_vendorlib}/* + +%files help +%doc CHANGELOG README +%{_mandir}/man3/* + +%changelog +* Mon Sep 16 2019 luhuaxin - 2013.0523-418 +- Package init