Package init
This commit is contained in:
commit
0499fc946b
BIN
File-Listing-6.04.tar.gz
Normal file
BIN
File-Listing-6.04.tar.gz
Normal file
Binary file not shown.
45
perl-File-Listing.spec
Normal file
45
perl-File-Listing.spec
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
%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
|
||||||
|
Version: 6.04
|
||||||
|
Release: 20
|
||||||
|
Summary: Parse directory listing
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: https://metacpan.org/release/File-Listing
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/G/GA/GAAS/File-Listing-%{version}.tar.gz
|
||||||
|
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
|
||||||
|
* Tue Oct 22 2019 Huiming Xie <xiehuiming@huawei.com> - 6.04-20
|
||||||
|
- init package
|
||||||
Loading…
x
Reference in New Issue
Block a user