perl-DateTime-Tiny/perl-DateTime-Tiny.spec

62 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2025-04-17 01:05:45 +02:00
#
# spec file for package perl-DateTime-Tiny
#
2025-04-17 01:20:32 +02:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
2025-04-17 01:05:45 +02: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.
2025-04-17 01:20:32 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
2025-04-17 01:05:45 +02:00
#
Name: perl-DateTime-Tiny
2025-04-17 01:20:32 +02:00
Version: 1.07
2025-04-17 01:05:45 +02:00
Release: 0
2025-04-17 01:20:32 +02:00
%define cpan_name DateTime-Tiny
Summary: Date Object, with As Little Code As Possible
2025-04-17 01:05:45 +02:00
License: Artistic-1.0 OR GPL-1.0-or-later
2025-04-17 01:20:32 +02:00
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-Tiny/
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz
2025-04-17 01:05:45 +02:00
Source1: cpanspec.yml
BuildArch: noarch
2025-04-17 01:20:32 +02:00
BuildRoot: %{_tmppath}/%{name}-%{version}-build
2025-04-17 01:05:45 +02:00
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
*DateTime::Tiny* is a most prominent member of the DateTime::Tiny suite of
time modules.
It implements an extremely lightweight object that represents a datetime.
%prep
2025-04-17 01:20:32 +02:00
%setup -q -n %{cpan_name}-%{version}
2025-04-17 01:05:45 +02:00
%build
2025-04-17 01:20:32 +02:00
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
2025-04-17 01:05:45 +02:00
%check
2025-04-17 01:20:32 +02:00
%{__make} test
2025-04-17 01:05:45 +02:00
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
2025-04-17 01:20:32 +02:00
%defattr(-,root,root,755)
2025-04-17 01:05:45 +02:00
%doc Changes CONTRIBUTING.mkdn README
%license LICENSE
%changelog