perl-File-Listing/perl-File-Listing.spec

52 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-19 11:52:01 +08:00
%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(HTTP::Date\\)\s*$
%global __provides_exclude %{?__provides_exclude:__provides_exclude|}^perl\\(File::Listing::
Name: perl-File-Listing
2022-06-15 15:26:28 +08:00
Version: 6.15
2021-12-14 16:59:15 +08:00
Release: 1
2019-11-19 11:52:01 +08:00
Summary: Parse directory listing
License: GPL+ or Artistic
URL: https://metacpan.org/release/File-Listing
2021-12-14 16:59:15 +08:00
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Listing-%{version}.tar.gz
2019-11-19 11:52:01 +08:00
BuildArch: noarch
BuildRequires: perl-interpreter perl-generators perl(Carp) perl(Exporter) perl(Time::Local) perl(Test)
BuildRequires: perl(ExtUtils::MakeMaker) perl(HTTP::Date) >= 6 perl(strict) perl(vars) perl(Test::More)
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires: perl(HTTP::Date) >= 6 perl(Time::Local)
Conflicts: perl-libwww-perl < 6
%description
This module exports a single function called parse_dir(), which can be used to parse directory listings.
%prep
%autosetup -n File-Listing-%{version} -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
2022-06-15 15:26:28 +08:00
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 6.15-1
- Upgrade to version 6.15
2021-12-14 16:59:15 +08:00
* Tue Dec 14 2021 guozhaorui <guozhaorui1@huawei.com> - 6.14-1
- update version to 6.14
2019-11-19 11:52:01 +08:00
* Tue Oct 22 2019 Huiming Xie <xiehuiming@huawei.com> - 6.04-20
- init package