64 lines
1.9 KiB
RPMSpec
64 lines
1.9 KiB
RPMSpec
%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)
|