perl-Pod-Usage/perl-Pod-Usage.spec

69 lines
2.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:13:12 -04:00
Name: perl-Pod-Usage
Epoch: 4
2021-01-26 17:15:29 +08:00
Version: 2.01
2021-07-28 16:39:27 +08:00
Release: 2
2019-09-30 11:13:12 -04:00
Summary: Print a usage message from embedded pod documentation
2021-01-26 17:15:29 +08:00
License: GPL+ or Artistic-1.0
2019-09-30 11:13:12 -04:00
URL: https://metacpan.org/release/Pod-Usage
2021-01-26 17:15:29 +08:00
Source0: https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Pod-Usage-%{version}.tar.gz
2019-09-30 11:13:12 -04:00
2021-07-28 16:39:27 +08:00
Patch0: backport-output-shoud-be-empty.patch
2019-09-30 11:13:12 -04:00
BuildArch: noarch
2020-07-27 10:58:55 +08:00
BuildRequires: perl make sed coreutils perl-generators perl-interpreter perl(Config) perl(warnings)
2019-09-30 11:13:12 -04:00
BuildRequires: perl(Cwd) perl(ExtUtils::MakeMaker) perl(File::Basename) perl(File::Spec) perl(strict)
BuildRequires: perl(Carp) perl(Config) perl(Exporter) perl-Pod-Perldoc perl(Pod::Text) perl(vars)
#tests
BuildRequires: perl(blib) perl(FileHandle) perl(Pod::PlainText) perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(File::Spec) perl-Pod-Perldoc perl(Pod::Text)
%description
Pod2usage will print a usage message for the invoking script (using its embedded pod documentation)
and then exit the script with the desired exit status. The usage message printed may have any one
of three levels of "verboseness": If the verbose level is 0, then only a synopsis is printed. If
the verbose level is 1, then the synopsis is printed along with a description (if present) of the
command line options and arguments. If the verbose level is 2, then the entire manual page is printed.
%package_help
%prep
%autosetup -n Pod-Usage-%{version} -p1
%build
2020-07-27 10:58:55 +08:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
2019-09-30 11:13:12 -04:00
%install
2020-07-27 10:58:55 +08:00
%{make_install}
2019-09-30 11:13:12 -04:00
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%defattr(-,root,root)
2021-01-26 17:15:29 +08:00
%doc README Changes
2019-09-30 11:13:12 -04:00
%{_bindir}/pod2usage
%{perl_vendorlib}/*
%files help
%defattr(-,root,root)
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
2021-07-28 16:39:27 +08:00
* Wed Jul 28 2021 tianwei <tianwei12@huawei.com> - 4:2.01-2
- output should be empty for issue #I42T4q
2021-01-26 17:15:29 +08:00
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 4:2.01-1
- upgrade version to 2.01
2020-07-27 10:58:55 +08:00
* Sat Jul 25 2020 zhanzhimin <zhanzhimin@huawei.com> - 4:1.70-1
- 1.70 bump
2019-09-30 11:13:12 -04:00
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 4:1.69-418
- Package init