Accepting request 295846 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/295846 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Convert-NLS_DATE_FORMAT?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
ed618d0273
commit
60163103b0
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Convert-NLS_DATE_FORMAT (Version 0.02)
|
||||
# spec file for package perl-Convert-NLS_DATE_FORMAT
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,46 +15,26 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Convert-NLS_DATE_FORMAT
|
||||
Version: 0.02
|
||||
Release: 1
|
||||
License: CHECK(GPL+ or Artistic)
|
||||
Version: 0.05
|
||||
Release: 0
|
||||
%define cpan_name Convert-NLS_DATE_FORMAT
|
||||
Summary: Convert Oracle NLS_DATE_FORMAT <-> strftime Format Strings
|
||||
Url: http://search.cpan.org/dist/Convert-NLS_DATE_FORMAT/
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://www.cpan.org/authors/id/K/KO/KOLIBRIE/Convert-NLS_DATE_FORMAT-0.02.tar.bz2
|
||||
# Source: %{cpan_name}-%{version}.tar.bz2
|
||||
Url: http://search.cpan.org/dist/Convert-NLS_DATE_FORMAT/
|
||||
Source: http://www.cpan.org/authors/id/K/KO/KOLIBRIE/%{cpan_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Convert Oracle's NLS_DATE_FORMAT string into a strptime format string, or
|
||||
the reverse.
|
||||
|
||||
Functions
|
||||
* oracle2posix
|
||||
|
||||
Takes an Oracle NLS_DATE_FORMAT string and converts it into
|
||||
formatting string compatible with 'strftime' or 'strptime'.
|
||||
|
||||
my $format = oracle2posix('YYYY-MM-DD HH24:MI:SS'); # '%Y-%m-%d %H:%M:%S'
|
||||
|
||||
* posix2oracle
|
||||
|
||||
Takes a 'strftime' or 'strptime' formatting string and converts it
|
||||
into an Oracle NLS_DATE_FORMAT string. _It is possible to create
|
||||
strings which Oracle will not accept as valid NLS_DATE_FORMAT
|
||||
strings._
|
||||
|
||||
my $format = posix2oracle('%Y-%m-%d %H:%M:%S'); # 'YYYY-MM-DD HH24:MI:SS'
|
||||
|
||||
EXPORT
|
||||
None by default. 'oracle2posix' and 'posix2oracle' when asked.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
@@ -70,11 +50,8 @@ EXPORT
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(644,root,root,755)
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user