forked from pool/perl-TimeDate
siwtch to perl_requires macro
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-TimeDate?expand=0&rev=15
This commit is contained in:
parent
e3d59212a7
commit
0b952e9557
@ -1,5 +1,6 @@
|
|||||||
--- lib/Date/Format.pm.orig 2009-09-19 09:04:02.000000000 -0700
|
diff -ruN TimeDate-1.20-orig/lib/Date/Format.pm TimeDate-1.20/lib/Date/Format.pm
|
||||||
+++ lib/Date/Format.pm 2009-09-25 14:33:09.000000000 -0700
|
--- TimeDate-1.20-orig/lib/Date/Format.pm 2009-12-12 12:30:06.000000000 +0000
|
||||||
|
+++ TimeDate-1.20/lib/Date/Format.pm 2010-04-20 21:15:56.049364922 +0000
|
||||||
@@ -83,7 +83,7 @@
|
@@ -83,7 +83,7 @@
|
||||||
$tzname = sprintf("%+05d",$tzname)
|
$tzname = sprintf("%+05d",$tzname)
|
||||||
unless($tzname =~ /\D/);
|
unless($tzname =~ /\D/);
|
||||||
@ -9,12 +10,3 @@
|
|||||||
|
|
||||||
@$me = gmtime($epoch + tz_offset($tzname) - tz_offset());
|
@$me = gmtime($epoch + tz_offset($tzname) - tz_offset());
|
||||||
}
|
}
|
||||||
@@ -215,7 +215,7 @@
|
|
||||||
sub format_M { sprintf("%02d",$_[0]->[1]) }
|
|
||||||
sub format_q { sprintf("%01d",int($_[0]->[4] / 3) + 1) }
|
|
||||||
sub format_s {
|
|
||||||
- $epoch = timegm(@{$_[0]}[0..5])
|
|
||||||
+ $epoch = timegm($_[0], $_[1], $_[2], $_[3], $_[4], $_[5] )
|
|
||||||
unless defined $epoch;
|
|
||||||
sprintf("%d",$epoch)
|
|
||||||
}
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 30 19:20:55 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
- switch to perl_requires macro
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 20 22:07:57 UTC 2010 - chris@computersalat.de
|
||||||
|
|
||||||
|
- fix build
|
||||||
|
o reworked TimeDate-deprecated_array_use.patch (was for timegm)
|
||||||
|
removed obsolete part (timegm was replaced by timelocal)
|
||||||
|
- cleanup spec
|
||||||
|
o add missing Url
|
||||||
|
- fix deps for perl-macros
|
||||||
|
- removed .packlist, perllocal.pod files
|
||||||
|
> noarch package
|
||||||
|
- rpmlint
|
||||||
|
o script-without-shebang > 644
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 19 13:51:59 CEST 2010 - dmueller@suse.de
|
Mon Apr 19 13:51:59 CEST 2010 - dmueller@suse.de
|
||||||
|
|
||||||
|
@ -22,17 +22,20 @@ Name: perl-TimeDate
|
|||||||
%define cpan_name TimeDate
|
%define cpan_name TimeDate
|
||||||
Summary: Parse date strings into time values
|
Summary: Parse date strings into time values
|
||||||
Version: 1.20
|
Version: 1.20
|
||||||
Release: 1
|
Release: 2
|
||||||
License: Artistic License ..
|
License: Artistic License ..
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
AutoReqProv: on
|
Url: http://search.cpan.org/dist/TimeDate
|
||||||
Source: %{cpan_name}-%{version}.tar.gz
|
Source: %{cpan_name}-%{version}.tar.gz
|
||||||
Patch1: %{cpan_name}-deprecated_array_use.patch
|
Patch1: %{cpan_name}-deprecated_array_use.patch
|
||||||
Patch2: %{cpan_name}-podfile-patch
|
Patch2: %{cpan_name}-podfile-patch
|
||||||
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
|
%if 0%{?suse_version} < 1120
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
Requires: perl = %{perl_version}
|
%endif
|
||||||
|
%{perl_requires}
|
||||||
Provides: %{cpan_name}
|
Provides: %{cpan_name}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -55,9 +58,12 @@ Provides: %{cpan_name}
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch1
|
%patch1 -p1
|
||||||
%patch2
|
%patch2
|
||||||
|
|
||||||
|
# script-without-shebang
|
||||||
|
find -type f -exec chmod 0644 {} \;
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||||
%{__make} %{?jobs:-j%jobs}
|
%{__make} %{?jobs:-j%jobs}
|
||||||
@ -67,7 +73,11 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%perl_make_install
|
%perl_make_install
|
||||||
%perl_process_packlist
|
# do not perl_process_packlist (noarch)
|
||||||
|
# remove .packlist file
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||||
|
# remove perllocal.pod file
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -76,6 +86,6 @@ perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
# normally you only need to check for doc files
|
# normally you only need to check for doc files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc ChangeLog README
|
%doc ChangeLog README SIGNATURE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user