perl-HTTP-Date/perl-HTTP-Date.spec

60 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:52:13 +08:00
Name: perl-HTTP-Date
2020-07-23 21:15:41 +08:00
Version: 6.05
Release: 2
2019-11-19 11:52:13 +08:00
Summary: Date conversion routines
License: GPL+ or Artistic
Group: Development/Libraries
URL: https://metacpan.org/release/HTTP-Date
2020-07-23 21:15:41 +08:00
Source0: https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Date-%{version}.tar.gz
2019-11-19 11:52:13 +08:00
BuildArch: noarch
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict) perl(Exporter) perl(Time::Local) perl(vars) perl(Test)
2020-07-23 21:15:41 +08:00
BuildRequires: perl(:VERSION) >= 5.6.2 perl(warnings) perl(blib) perl(File::Spec) perl(IO::Handle) perl(IPC::Open3) perl(Test::More)
2019-11-19 11:52:13 +08:00
2020-07-23 21:15:41 +08:00
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) perl(Time::Zone) perl(Time::Local) >= 1.28
2019-11-19 11:52:13 +08:00
Conflicts: perl-libwww-perl < 6
%description
This module provides functions that deal the date formats used by the HTTP
protocol (and then some more). Only the first two functions, time2str() and
str2time(), are exported by default.
%package help
Summary: Documentation for perl-HTTP-Date
%description help
Documentation for perl-HTTP-Date.
%prep
%autosetup -n HTTP-Date-%{version} -p1
%build
2020-07-23 21:15:41 +08:00
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
2019-11-19 11:52:13 +08:00
%make_build
%install
2020-07-23 21:15:41 +08:00
%{make_install}
2019-11-19 11:52:13 +08:00
%{_fixperms} %{buildroot}/*
%check
make test
%files
2020-07-23 21:15:41 +08:00
%license LICENSE
2019-11-19 11:52:13 +08:00
%{perl_vendorlib}/*
%exclude %{_libdir}/perl5/perllocal.pod
%files help
2020-07-23 21:15:41 +08:00
%doc Changes CONTRIBUTORS README.md
2019-11-19 11:52:13 +08:00
%{_mandir}/man3/*
%changelog
* Thu Oct 20 2022 xujing <xujing125@huawei.com> - 6.05-2
- fix date error in %changelog
* Thu Jul 23 2020 xinghe <xinghe1@huawei.com> - 6.05-1
2020-07-23 21:15:41 +08:00
- update version to 6.05
2019-11-19 11:52:13 +08:00
* Wed Oct 23 2019 Zaiwang Li <lizaiwang1@huawei.com> - 6.02-21
- Init Package.