update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Date-Calc?expand=0&rev=26
This commit is contained in:
parent
00ef6eca93
commit
b9c850665a
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3eb66188af89abc65b71e9852808d5d6b4bea7a606c55f2ae52c229bfc5bdb93
|
||||
size 168967
|
BIN
Date-Calc-6.4.tar.gz
(Stored with Git LFS)
Normal file
BIN
Date-Calc-6.4.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: -
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 16 19:56:35 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 6.4
|
||||
see /usr/share/doc/packages/perl-Date-Calc/CHANGES.txt
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 4 13:16:20 UTC 2015 - coolo@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Date-Calc
|
||||
#
|
||||
# Copyright (c) 2015 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
|
||||
@ -17,81 +17,50 @@
|
||||
|
||||
|
||||
Name: perl-Date-Calc
|
||||
BuildRequires: perl(Bit::Vector) >= 7.1
|
||||
BuildRequires: perl(Carp::Clan) >= 6.04
|
||||
Requires: perl(Bit::Vector) >= 7.1
|
||||
Requires: perl(Carp::Clan) >= 6.04
|
||||
BuildRequires: perl-macros
|
||||
Version: 6.3
|
||||
Version: 6.4
|
||||
Release: 0
|
||||
Provides: DateCalc
|
||||
Provides: perl_dc
|
||||
Obsoletes: perl_dc
|
||||
Url: http://search.cpan.org/perldoc?Date::Calc
|
||||
Summary: Perl Date-Calc Module
|
||||
License: Artistic-1.0 or GPL-2.0+
|
||||
%define cpan_name Date-Calc
|
||||
Summary: Gregorian calendar date calculations
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Source: http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Calc-%{version}.tar.gz
|
||||
Patch: Date-Calc-%{version}.diff
|
||||
Url: http://search.cpan.org/dist/Date-Calc/
|
||||
Source0: http://www.cpan.org/authors/id/S/ST/STBEY/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Bit::Vector) >= 7.4
|
||||
BuildRequires: perl(Carp::Clan) >= 6.04
|
||||
Requires: perl(Bit::Vector) >= 7.4
|
||||
Requires: perl(Carp::Clan) >= 6.04
|
||||
Recommends: perl(Date::Calc::XS) >= 6.4
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
This package consists of a C library and a Perl module (which uses the
|
||||
C library, internally) for all kinds of date calculations based on the
|
||||
Gregorian calendar (the one used in all western countries today),
|
||||
thereby complying with all relevant norms and standards: ISO/R
|
||||
2015-1971, DIN 1355 and, to some extent, ISO 8601 (where applicable).
|
||||
* *
|
||||
|
||||
(See also http://www.engelschall.com/u/sb/download/Date-Calc/DIN1355/
|
||||
for a scan of part of the "DIN 1355" document (in German)).
|
||||
'use Date::Calc qw( Days_in_Year Days_in_Month ... );'
|
||||
|
||||
The module of course handles year numbers of 2000 and above correctly
|
||||
("Year 2000" or "Y2K" compliance) -- actually all year numbers from 1
|
||||
to the largest positive integer representable on your system (which is
|
||||
at least 32767) can be dealt with.
|
||||
|
||||
Note that this package EXTRAPOLATES the Gregorian calendar BACK until
|
||||
the year 1 A.D. -- even though the Gregorian calendar was only adopted
|
||||
in 1582 by most (not all) European countries, in obedience to the
|
||||
corresponding decree of catholic pope Gregor I in that year.
|
||||
|
||||
Some (mainly protestant) countries continued to use the Julian calendar
|
||||
(used until then) until as late as the beginning of the 20th century.
|
||||
|
||||
Finally, note that this package is not intended to do everything you
|
||||
could ever imagine automagically for you; it is rather intended to
|
||||
serve as a toolbox (in the best of UNIX spirit and traditions) which
|
||||
should, however, always get you where you want to go.
|
||||
* *
|
||||
|
||||
%prep
|
||||
%setup -n Date-Calc-%{version} -q
|
||||
%patch -p1
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make %{?_smp_mflags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
chmod -R u+w *.txt
|
||||
for i in `ls *.txt`; do mv $i `basename $i .txt`; done
|
||||
rm -rf tools/compile.bat
|
||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man3/Carp::*
|
||||
rm -rf $RPM_BUILD_ROOT%{perl_vendorarch}/Carp
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc license README CREDITS CHANGES MANIFEST
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorarch}/auto/Date/
|
||||
%{perl_vendorlib}/Date/
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc CHANGES.txt CREDITS.txt README.txt
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user