72 lines
2.5 KiB
RPMSpec
72 lines
2.5 KiB
RPMSpec
%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 <tiziana.ferro@email.it>
|
|
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 <davide.madrisan@gmail.com> 6.3-1mamba
|
|
- update to 6.3
|
|
|
|
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.1-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Jun 11 2008 Tiziana Ferro <tiziana.ferro@email.it> 5.5.1-1mamba
|
|
- update to 5.5.1
|
|
|
|
* Wed Oct 27 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 5.4-1qilnx
|
|
- package created by autospec
|