!1 Init package
From: @misaka00251 Reviewed-by: @geasscore Signed-off-by: @geasscore
This commit is contained in:
commit
34c32b0106
BIN
DateTime-TimeZone-SystemV-0.010.tar.gz
Normal file
BIN
DateTime-TimeZone-SystemV-0.010.tar.gz
Normal file
Binary file not shown.
63
perl-DateTime-TimeZone-SystemV.spec
Normal file
63
perl-DateTime-TimeZone-SystemV.spec
Normal file
@ -0,0 +1,63 @@
|
||||
%bcond_with perl_DateTime_TimeZone_SystemV_enables_optional_test
|
||||
|
||||
Name: perl-DateTime-TimeZone-SystemV
|
||||
Version: 0.010
|
||||
Release: 1
|
||||
Summary: System V and POSIX timezone strings
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/DateTime-TimeZone-SystemV
|
||||
Source0: https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/DateTime-TimeZone-SystemV-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
# Module Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(Module::Build)
|
||||
# Module Runtime
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Date::ISO8601)
|
||||
BuildRequires: perl(Params::Classify)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Test Suite
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_DateTime_TimeZone_SystemV_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))
|
||||
|
||||
%description
|
||||
An instance of this class represents a timezone that was specified by means
|
||||
of a System V timezone recipe or the POSIX extended form of the same
|
||||
syntax. These can express a plain offset from Universal Time, or a system
|
||||
of two offsets (standard and daylight saving time) switching on a yearly
|
||||
cycle according to certain types of rule.
|
||||
|
||||
This class implements the DateTime::TimeZone interface, so that its instances
|
||||
can be used with DateTime objects.
|
||||
|
||||
%prep
|
||||
%setup -q -n DateTime-TimeZone-SystemV-%{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::SystemV.3*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 30 2022 misaka00251 <liuxin@iscas.ac.cn> - 0.010-1
|
||||
- Init package (Thanks to fedora team)
|
||||
Loading…
x
Reference in New Issue
Block a user