From 9a1d56ab09f42be9358a386b6d4d8e33bfe2444e Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Sat, 6 Jan 2024 08:49:56 +0100 Subject: [PATCH] update to 6.3 [release 6.3-1mamba;Thu Nov 15 2012] --- README.md | 5 ++++ perl-Date-Calc.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 perl-Date-Calc.spec diff --git a/README.md b/README.md index 736acb2..2dc6452 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # perl-Date-Calc +This package provides all sorts of date calculations based on the Gregorian calendar (the one used in all western countries today). +The package is designed as an efficient (and fast) toolbox, not a bulkya ready-made application. +It provides extensive documentation and examples of use, multi-language support and special functions for business needs. +Moreover, it optionally provides an object-oriented interface with overloaded operators for greater convenience, and calendar objects which support profiles of legal holidays and observances for calculations which need to take those into account. + diff --git a/perl-Date-Calc.spec b/perl-Date-Calc.spec new file mode 100644 index 0000000..36379cf --- /dev/null +++ b/perl-Date-Calc.spec @@ -0,0 +1,71 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Date-Calc +Version: 6.3 +Release: 1mamba +Summary: Date::Calc - Gregorian calendar date calculations +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Tiziana Ferro +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Calc-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: perl-Bit-Vector +BuildRequires: perl-Carp-Clan +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This package provides all sorts of date calculations based on the Gregorian calendar (the one used in all western countries today). +The package is designed as an efficient (and fast) toolbox, not a bulkya ready-made application. +It provides extensive documentation and examples of use, multi-language support and special functions for business needs. +Moreover, it optionally provides an object-oriented interface with overloaded operators for greater convenience, and calendar objects which support profiles of legal holidays and observances for calculations which need to take those into account. + +%prep +%setup -q -n Date-Calc-%{version} + +%build +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" + +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f .packlist +%defattr(-,root,root) +%doc CREDITS.txt README.txt + +%changelog +* Thu Nov 15 2012 Davide Madrisan 6.3-1mamba +- update to 6.3 + +* Tue Nov 04 2008 Silvan Calarco 5.5.1-2mamba +- automatic rebuild by autodist + +* Wed Jun 11 2008 Tiziana Ferro 5.5.1-1mamba +- update to 5.5.1 + +* Wed Oct 27 2004 Alessandro Ramazzina 5.4-1qilnx +- package created by autospec