2010-08-23 00:23:23 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2024-03-08 10:10:09 +00:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
2010-08-23 00:23:23 +00:00
|
|
|
|
|
|
|
|
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
|
2024-03-08 10:10:09 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 13:42:36 +00:00
|
|
|
%{perl_requires}
|
2024-03-08 10:10:09 +00:00
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:01:33 +00:00
|
|
|
BuildRequires: perl-macros
|
2024-03-08 10:10:09 +00:00
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Date::Manip)
|
|
|
|
|
BuildRequires: perl(DateTime)
|
2010-08-23 00:25:41 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2010-08-23 00:23:23 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
Requires: perl(Carp)
|
2024-03-08 10:10:09 +00:00
|
|
|
Requires: perl(Date::Manip)
|
|
|
|
|
Requires: perl(DateTime)
|
2010-08-23 00:23:23 +00:00
|
|
|
|
|
|
|
|
%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
|
2024-03-08 10:10:09 +00:00
|
|
|
%autosetup -n "DateTime-Format-DateManip-%{version}" -p0
|
2010-08-23 00:23:23 +00:00
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
2024-03-08 10:10:09 +00:00
|
|
|
%changelog
|