2008-08-04 02:48:58 +00:00
|
|
|
#
|
2010-10-18 14:54:06 +00:00
|
|
|
# spec file for package perl-Date-Manip (Version 6.13)
|
2008-08-04 02:48:58 +00:00
|
|
|
#
|
2010-01-11 16:06:54 +00:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-08-04 02:48:58 +00:00
|
|
|
#
|
2009-06-18 15:01:14 +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.
|
|
|
|
|
2008-08-04 02:48:58 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-07-20 18:41:11 +00:00
|
|
|
%bcond_with pod
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
Name: perl-Date-Manip
|
2010-07-20 18:41:11 +00:00
|
|
|
%define cpan_name Date-Manip
|
|
|
|
Summary: Date manipulation routines
|
2010-10-21 13:52:50 +00:00
|
|
|
Version: 6.14
|
2010-10-01 22:13:15 +00:00
|
|
|
Release: 1
|
2010-07-20 18:41:11 +00:00
|
|
|
License: GPL+ or Artistic
|
2008-08-04 02:48:58 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-07-20 18:41:11 +00:00
|
|
|
Url: http://search.cpan.org/dist/Date-Manip/
|
2010-01-11 16:06:54 +00:00
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2010-07-20 18:41:11 +00:00
|
|
|
BuildArch: noarch
|
2008-08-04 02:48:58 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-11 16:06:54 +00:00
|
|
|
BuildRequires: perl >= 5.10
|
2010-07-20 18:41:11 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
%if 0%{?suse_version} < 1120
|
2010-01-11 16:06:54 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-07-20 18:41:11 +00:00
|
|
|
%endif
|
|
|
|
%if %{with pod}
|
2010-01-11 16:06:54 +00:00
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
2010-07-20 18:41:11 +00:00
|
|
|
%endif
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(IO::File)
|
|
|
|
BuildRequires: perl(Test::Inter)
|
2010-01-11 16:06:54 +00:00
|
|
|
BuildRequires: perl(YAML::Syck)
|
|
|
|
Requires: perl = %{perl_version}
|
2010-07-20 18:41:11 +00:00
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(IO::File)
|
2010-01-11 16:06:54 +00:00
|
|
|
Requires: perl(YAML::Syck)
|
2010-08-01 15:19:11 +00:00
|
|
|
Obsoletes: perl-DateManip < %{version}
|
|
|
|
Provides: perl-DateManip = %{version}
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
%description
|
2010-01-11 16:06:54 +00:00
|
|
|
Date::Manip is a series of modules designed to make any common date/time
|
|
|
|
manipulation easy to do. Operations such as comparing two times,
|
|
|
|
calculating a time a given amount of time from another, or parsing
|
2010-07-20 18:41:11 +00:00
|
|
|
international times are all easily done. From the very beginning, the main
|
|
|
|
focus of Date::Manip has been to be able to do ANY desired date/time
|
|
|
|
operation easily, not necessarily quickly. Also, it is definitely oriented
|
|
|
|
towards the type of operations we (as people) tend to think of rather than
|
|
|
|
those operations used routinely by computers. There are other modules that
|
|
|
|
can do a subset of the operations available in Date::Manip much quicker
|
|
|
|
than those presented here, so 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.
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Sullivan Beck <sbeck@cpan.org>
|
|
|
|
|
|
|
|
%prep
|
2010-07-20 18:41:11 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
%build
|
2010-07-20 18:41:11 +00:00
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
./Build
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
%check
|
2010-07-20 18:41:11 +00:00
|
|
|
./Build test
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
%install
|
2010-07-20 18:41:11 +00:00
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
2010-01-11 16:06:54 +00:00
|
|
|
%perl_gen_filelist
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
%clean
|
2010-01-11 16:06:54 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2008-08-04 02:48:58 +00:00
|
|
|
|
2010-01-11 16:06:54 +00:00
|
|
|
%files -f %{name}.files
|
2010-07-20 18:41:11 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc HISTORY LICENSE README README.first
|
2008-08-04 02:48:58 +00:00
|
|
|
|
|
|
|
%changelog
|