perl-DateTime-Format-DateParse/perl-DateTime-Format-DateParse.spec

66 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-DateTime-Format-DateParse
Version: 0.05
Release: 2mamba
Summary: DateTime::Format::DateParse - Parses Date::Parse compatible formats
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/J/JH/JHOBLITT/DateTime-Format-DateParse-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-DateTime
BuildRequires: perl-DateTime-TimeZone
BuildRequires: perl-devel
BuildRequires: perl-TimeDate
## AUTOBUILDREQ-END
Requires: perl >= %perl_major_ver
%description
This module is a compatibility wrapper around Date::Parse.
%prep
%setup -q -n DateTime-Format-DateParse-%{version}
%build
perl Build.PL installdirs=vendor
./Build
./Build test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install \
destdir="%{buildroot}" \
--install_path bindoc="%{_mandir}/man1" \
--install_path libdoc="%{_mandir}/man3"
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
find %{buildroot}%{perl_vendorlib} \
-type d -depth -exec rmdir {} 2>/dev/null \;
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}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Thu Nov 29 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.05-2mamba
- rebuilt with perl 5.16
* Sat Sep 18 2010 gil <puntogil@libero.it> 0.05-1mamba
- package created by autospec