Files
perl-DateTime-Format-DateManip/perl-DateTime-Format-DateManip.spec

78 lines
2.5 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-DateTime-Format-DateManip
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: perl-DateTime-Format-DateManip
Version: 0.04
Release: 0
Summary: Convert Date::Manip dates and durations to DateTimes and vice versa
Source: http://search.cpan.org/CPAN/authors/id/B/BB/BBENNETT/dt-fmt-datemanip/DateTime-Format-DateManip-%{version}.tar.gz
# see https://rt.cpan.org/Public/Bug/Display.html?id=55771
Patch1: perl-DateTime-Format-DateManip-fix_test_est.patch
URL: http://search.cpan.org/dist/DateTime-Format-DateManip/
Group: Development/Libraries/Perl
License: Artistic-1.0 OR GPL-1.0-or-later
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: make
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Carp)
BuildRequires: perl(Date::Manip)
BuildRequires: perl(DateTime)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
Requires: perl(Carp)
Requires: perl(Date::Manip)
Requires: perl(DateTime)
%description
DateTime::Format::DateManip is a class that knows how to convert between
Date::Manip dates and durations and DateTime and DateTime::Duration objects.
Recurrences are note yet supported.
%prep
%autosetup -n "DateTime-Format-DateManip-%{version}" -p0
%build
%__perl Build.PL
./Build
%install
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
%perl_process_packlist
%check
./Build test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/DateTime
%dir %{perl_vendorlib}/DateTime/Format
%{perl_vendorlib}/DateTime/Format/DateManip.pm
%dir %{perl_vendorarch}/auto/DateTime
%dir %{perl_vendorarch}/auto/DateTime/Format
%{perl_vendorarch}/auto/DateTime/Format/DateManip
%doc %{perl_man3dir}/DateTime::Format::DateManip.%{perl_man3ext}%{ext_man}
%changelog