perl-Pod-Usage/perl-Pod-Usage.spec
hongjinghao 0b8b1d1071
添加%{mod_name}宏
添加%{mod_name}宏

Signed-off-by: hongjinghao <hongjinghao@huawei.com>
2022-11-01 01:20:03 +00:00

76 lines
2.4 KiB
RPMSpec

%define mod_name Pod-Usage
Name: perl-%{mod_name}
Epoch: 4
Version: 2.03
Release: 2
Summary: Print a usage message from embedded pod documentation
License: GPL+ or Artistic-1.0
URL: https://metacpan.org/release/%{mod_name}
Source0: https://cpan.metacpan.org/authors/id/M/MA/MAREKR/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl make sed coreutils perl-generators perl-interpreter perl(Config) perl(warnings)
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 %{mod_name}-%{version} -p1
%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
%defattr(-,root,root)
%doc README Changes
%{_bindir}/pod2usage
%{perl_vendorlib}/*
%files help
%defattr(-,root,root)
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
* Tue Nov 1 2022 hongjinghao <hongjinghao@huawei.com> - 4:2.03-2
- use %{mod_name} marco
* Tue Oct 25 2022 zhangyao <zhangyao108@huawei.com> - 4:2.03-1
- upgrade version to 2.03
* Wed Jul 28 2021 tianwei <tianwei12@huawei.com> - 4:2.01-2
- output should be empty for issue #I42T4q
* Tue Jan 26 2021 liudabo <liudabo1@huawei.com> - 4:2.01-1
- upgrade version to 2.01
* Sat Jul 25 2020 zhanzhimin <zhanzhimin@huawei.com> - 4:1.70-1
- 1.70 bump
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 4:1.69-418
- Package init