!1 Init package

From: @misaka00251 
Reviewed-by: @geasscore 
Signed-off-by: @geasscore
This commit is contained in:
openeuler-ci-bot 2022-10-19 07:20:48 +00:00 committed by Gitee
commit 34c32b0106
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 63 additions and 0 deletions

Binary file not shown.

View 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)