Package init
This commit is contained in:
commit
f3922a1bff
BIN
Time-Local-1.28.tar.gz
Normal file
BIN
Time-Local-1.28.tar.gz
Normal file
Binary file not shown.
56
perl-Time-Local.spec
Normal file
56
perl-Time-Local.spec
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
%global base_name Time-Local
|
||||||
|
%global base_version 1.28
|
||||||
|
|
||||||
|
Name: perl-Time-Local
|
||||||
|
Epoch: 2
|
||||||
|
Version: %{base_version}0
|
||||||
|
Release: 5
|
||||||
|
Summary: Efficiently compute time from local and GMT time
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
URL: https://metacpan.org/release/Time-Local
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{base_name}-%{base_version}.tar.gz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: make perl-generators perl-interpreter perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
|
BuildRequires: perl(strict) perl(warnings) perl(Carp) perl(constant) perl(Exporter)
|
||||||
|
BuildRequires: perl(parent) perl(File::Spec) perl(Test::More) >= 0.96
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
|
%description
|
||||||
|
This module provides functions that are the inverse of built-in perl functions localtime()
|
||||||
|
and gmtime(). They accept a date as a six-element array, and return the corresponding time(2)
|
||||||
|
value in seconds since the system epoch (Midnight, January 1, 1970 GMT on Unix, for example).
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{base_name}-%{base_version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc Changes CONTRIBUTING.md
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Sep 27 2019 chengquan<chengquan3@huawei.com> - 2:1.280-5
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:merge package
|
||||||
|
|
||||||
|
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 2:1.280-4
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user