!1 Init package
From: @misaka00251 Reviewed-by: @geasscore Signed-off-by: @geasscore
This commit is contained in:
commit
abad7f2a1b
BIN
DateTime-TimeZone-Tzfile-0.011.tar.gz
Normal file
BIN
DateTime-TimeZone-Tzfile-0.011.tar.gz
Normal file
Binary file not shown.
67
perl-DateTime-TimeZone-Tzfile.spec
Normal file
67
perl-DateTime-TimeZone-Tzfile.spec
Normal file
@ -0,0 +1,67 @@
|
||||
%bcond_with perl_DateTime_TimeZone_Tzfile_enables_optional_test
|
||||
|
||||
Name: perl-DateTime-TimeZone-Tzfile
|
||||
Version: 0.011
|
||||
Release: 1
|
||||
Summary: Tzfile (zoneinfo) timezone files
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/DateTime-TimeZone-Tzfile
|
||||
Source0: https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/DateTime-TimeZone-Tzfile-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(Module::Build)
|
||||
# Runtime
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Date::ISO8601)
|
||||
BuildRequires: perl(DateTime::TimeZone::SystemV) >= 0.009
|
||||
BuildRequires: perl(integer)
|
||||
BuildRequires: perl(IO::File) >= 1.13
|
||||
BuildRequires: perl(IO::Handle) >= 1.08
|
||||
BuildRequires: perl(Params::Classify)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_DateTime_TimeZone_Tzfile_enables_optional_test}
|
||||
# Optional Tests
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Test::Pod::Coverage)
|
||||
%endif
|
||||
# Dependencies
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
||||
Requires: perl(DateTime::TimeZone::SystemV) >= 0.009
|
||||
|
||||
%description
|
||||
An instance of this class represents a timezone that was encoded in a file
|
||||
in the tzfile(5) format. These can express arbitrary patterns of offsets
|
||||
from Universal Time, changing over time. Offsets and change times are
|
||||
limited to a resolution of one second.
|
||||
|
||||
This class implements the DateTime::TimeZone interface, so that its instances
|
||||
can be used with DateTime objects.
|
||||
|
||||
%prep
|
||||
%setup -q -n DateTime-TimeZone-Tzfile-%{version}
|
||||
|
||||
%build
|
||||
perl Build.PL --installdirs=vendor
|
||||
./Build
|
||||
|
||||
%install
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%{_fixperms} -c %{buildroot}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/DateTime/
|
||||
%{_mandir}/man3/DateTime::TimeZone::Tzfile.3*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 30 2022 misaka00251 <liuxin@iscas.ac.cn> - 0.011-1
|
||||
- Init package (Thanks to fedora team)
|
||||
Loading…
x
Reference in New Issue
Block a user