# # spec file for package perl-Date-Manip # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: perl-Date-Manip Version: 6.40 Release: 0 %define cpan_name Date-Manip Summary: Date manipulation routines License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Date-Manip/ Source: http://www.cpan.org/authors/id/S/SB/SBECK/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Module::Build) BuildRequires: perl(Test::Inter) #BuildRequires: perl(Date::Manip) #BuildRequires: perl(Date::Manip::Base) #BuildRequires: perl(Date::Manip::Date) #BuildRequires: perl(Date::Manip::Delta) #BuildRequires: perl(Date::Manip::DM5abbrevs) #BuildRequires: perl(Date::Manip::Lang::index) #BuildRequires: perl(Date::Manip::Obj) #BuildRequires: perl(Date::Manip::Recur) #BuildRequires: perl(Date::Manip::TZ) #BuildRequires: perl(Date::Manip::TZ_Base) #BuildRequires: perl(Date::Manip::Zones) #BuildRequires: perl(Date::Parse) #BuildRequires: perl(DateTime::Format::DateParse) #BuildRequires: perl(Win32::TieRegistry) %{perl_requires} %description Date::Manip is a series of modules designed to make any common date/time operation easy to do. Operations such as comparing two times, determining a data a given amount of time from another, or parsing international times are all easily done. It deals with time as it is used in the Gregorian calendar (the one currently in use) with full support for time changes due to daylight saving time. From the very beginning, the main focus of Date::Manip has been to be able to do ANY desired date/time operation easily. Many other modules exist which may do a subset of these operations quicker or more efficiently, but no other module can do all of the operations available in Date::Manip. Since many other date/time modules exist, some of which may do the specific operation(s) you need faster, be sure to read the section SHOULD I USE DATE::MANIP in the Date::Manip::Misc document before deciding which of the Date and Time modules from CPAN is for you. However, if you want one module to do it all, Date::Manip is the one to use. %prep %setup -q -n %{cpan_name}-%{version} find . -type f -print0 | xargs -0 chmod 644 %build %{__perl} Build.PL installdirs=vendor ./Build build flags=%{?_smp_mflags} %check ./Build test %install ./Build install destdir=%{buildroot} create_packlist=0 %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc examples HISTORY LICENSE README README.first %changelog