2009-06-27 23:16:37 +00:00
|
|
|
#
|
2015-04-15 07:24:45 +00:00
|
|
|
# spec file for package perl-Time-Piece
|
2009-06-27 23:16:37 +00:00
|
|
|
#
|
2025-01-13 21:47:20 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2009-06-27 23:16:37 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-03-02 07:59:34 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-06-27 23:16:37 +00:00
|
|
|
#
|
|
|
|
|
2015-04-15 07:24:45 +00:00
|
|
|
|
2024-08-25 18:45:35 +00:00
|
|
|
%define cpan_name Time-Piece
|
2009-06-27 23:16:37 +00:00
|
|
|
Name: perl-Time-Piece
|
2025-04-27 01:01:49 +00:00
|
|
|
Version: 1.36
|
2015-04-15 07:24:45 +00:00
|
|
|
Release: 0
|
2018-02-24 07:03:47 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2024-08-25 18:45:35 +00:00
|
|
|
Summary: Object Oriented time objects
|
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2025-04-27 01:01:49 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ES/ESAYM/%{cpan_name}-%{version}.tar.gz
|
2015-05-18 05:18:42 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:18:14 +02:00
|
|
|
Source100: README.md
|
2009-06-27 23:16:37 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2011-04-04 08:36:31 +00:00
|
|
|
%{perl_requires}
|
2007-09-14 18:40:05 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-15 07:24:45 +00:00
|
|
|
This module replaces the standard 'localtime' and 'gmtime' functions with
|
2011-04-04 08:36:31 +00:00
|
|
|
implementations that return objects. It does so in a backwards compatible
|
|
|
|
manner, so that using localtime/gmtime in the way documented in perlfunc
|
|
|
|
will still return what you expect.
|
2007-09-14 18:40:05 +00:00
|
|
|
|
2011-04-04 08:36:31 +00:00
|
|
|
The module actually implements most of an interface described by Larry Wall
|
|
|
|
on the perl5-porters mailing list here:
|
2020-03-02 07:59:34 +00:00
|
|
|
https://www.nntp.perl.org/group/perl.perl5.porters/2000/01/msg5283.html
|
2007-09-14 18:40:05 +00:00
|
|
|
|
|
|
|
%prep
|
2025-04-27 01:01:49 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version} -p1
|
2007-09-14 18:40:05 +00:00
|
|
|
|
|
|
|
%build
|
2020-03-02 07:59:34 +00:00
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2024-08-25 18:45:35 +00:00
|
|
|
%make_build
|
2007-09-14 18:40:05 +00:00
|
|
|
|
2009-06-27 23:16:37 +00:00
|
|
|
%check
|
2020-03-02 07:59:34 +00:00
|
|
|
make test
|
2009-06-27 23:16:37 +00:00
|
|
|
|
2007-09-14 18:40:05 +00:00
|
|
|
%install
|
2009-06-27 23:16:37 +00:00
|
|
|
%perl_make_install
|
2007-09-14 18:40:05 +00:00
|
|
|
%perl_process_packlist
|
2009-06-27 23:16:37 +00:00
|
|
|
%perl_gen_filelist
|
2007-09-14 18:40:05 +00:00
|
|
|
|
2009-06-27 23:16:37 +00:00
|
|
|
%files -f %{name}.files
|
2017-06-25 06:38:52 +00:00
|
|
|
%doc Changes README reverse_deps.txt TODO
|
|
|
|
%license LICENSE
|
2007-09-14 18:40:05 +00:00
|
|
|
|
|
|
|
%changelog
|