perl-DateTime-Format-Mail/perl-DateTime-Format-Mail.spec

77 lines
2.2 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-DateTime-Format-Mail
Epoch: 1
Version: 0.403
Release: 1mamba
Summary: DateTime::Format::Mail - Convert between DateTime and RFC2822/822 formats
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/authors/id/B/BO/BOOK/DateTime-Format-Mail-%{version}.tar.gz
Patch0: perl-DateTime-Format-Mail-0.3001-fix-DateTime-version-req.patch
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-DateTime
BuildRequires: perl-Params-Validate
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: perl >= %perl_major_ver
BuildArch: noarch
# FIXME:
# make test: Test::Signature 1.03 not installed
# make test: File::Find::Rule not installed
%description
Convert between DateTime and RFC2822/822 formats.
%prep
%setup -q -n DateTime-Format-Mail-%{version}
#%patch0 -p1
%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 $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
* Sat Oct 21 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.403-1mamba
- update to 0.403
* Tue Apr 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3001-3mamba
- rebuild with perl-DateTime 0.78
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3001-2mamba
- automatic rebuild by autodist
* Tue Dec 11 2007 Aleph0 <aleph0@openmamba.org> 0.3001-1mamba
- package created by autospec