perl-Text-Tabs-Wrap/perl-Text-Tabs+Wrap.spec
xujing f95f191642 optimize the specfile
(cherry picked from commit 23a99c0c1aa1c2e08a2fdc29e028e81fc8d457dc)
2022-10-24 16:27:10 +08:00

66 lines
2.0 KiB
RPMSpec

Name: perl-Text-Tabs+Wrap
Version: 2021.0814
Release: 2
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/A/AR/ARISTOTLE/Text-Tabs+Wrap-%{version}.tar.gz
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 Oct 24 2022 xujing <xujing125@huawei.com> - 2021.0814-2
- optimize the specfile
* Fri Dec 3 2021 guozhaorui <guozhaorui1@huawei.com> - 2021.0814-1
- update version to 2021.0814
* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 2013.0523-419
- Delete redundant file
* Mon Sep 16 2019 luhuaxin <luhuaxin@huawei.com> - 2013.0523-418
- Package init