perl-Time-Moment: initial submission (#1306299)
parent
80621b19cb
commit
27b6e82369
@ -0,0 +1 @@
|
||||
/Time-Moment-0.38.tar.gz
|
@ -0,0 +1,102 @@
|
||||
%global _hardened_build 1
|
||||
|
||||
Name: perl-Time-Moment
|
||||
Version: 0.38
|
||||
Release: 2%{?dist}
|
||||
Summary: Represents a date and time of day with an offset from UTC
|
||||
License: (GPL+ or Artistic) and BSD
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Time-Moment/
|
||||
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/C/CH/CHANSEN/Time-Moment-%{version}.tar.gz
|
||||
|
||||
Provides: bundled(c-dt)
|
||||
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
Buildrequires: perl-devel
|
||||
BuildRequires: perl(Config)
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59
|
||||
BuildRequires: perl(ExtUtils::MM_Unix)
|
||||
BuildRequires: perl(Fcntl)
|
||||
BuildRequires: perl(File::Basename)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(File::Spec)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Pod::Text)
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(vars)
|
||||
BuildRequires: perl(warnings)
|
||||
|
||||
# Run-time
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(XSLoader) >= 0.02
|
||||
|
||||
# Testing
|
||||
BuildRequires: perl(CBOR::XS) >= 1.3
|
||||
BuildRequires: perl(DateTime)
|
||||
BuildRequires: perl(JSON::XS)
|
||||
BuildRequires: perl(Params::Coerce)
|
||||
BuildRequires: perl(Sereal) >= 2.060
|
||||
BuildRequires: perl(Storable)
|
||||
BuildRequires: perl(Test::Builder)
|
||||
BuildRequires: perl(Test::Fatal) >= 0.006
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(Test::Number::Delta) >= 1.06
|
||||
BuildRequires: perl(Test::Requires)
|
||||
BuildRequires: perl(Time::Piece)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(Exporter)
|
||||
Requires: perl(XSLoader) >= 0.02
|
||||
|
||||
%description
|
||||
Time::Moment is an immutable object representing a date and time of day
|
||||
with an offset from UTC in the ISO 8601 calendar system.
|
||||
|
||||
%prep
|
||||
%setup -q -n Time-Moment-%{version}
|
||||
|
||||
%build
|
||||
# partially fixing hardening if not fully supported
|
||||
export CFLAGS="%{optflags} -Wl,-z,relro -Wl,-z,now"
|
||||
export LDFLAGS="%{?__global_ldflags} -Wl,-z,now -Wl,--as-needed"
|
||||
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$CFLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
# fixing scripts provided in docs
|
||||
chmod a-x -c eg/*.pl
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README eg/
|
||||
%{perl_vendorarch}/auto/*
|
||||
%{perl_vendorarch}/Time*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 11 2016 Denis Fateyev <denis@fateyev.com> - 0.38-2
|
||||
- Spec cleanup
|
||||
|
||||
* Tue Feb 09 2016 Denis Fateyev <denis@fateyev.com> - 0.38-1
|
||||
- Initial release
|
Loading…
Reference in new issue