perl-DateTime-Format-HTTP/perl-DateTime-Format-HTTP.spec

69 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-HTTP
Version: 0.42
Release: 2mamba
Summary: DateTime::Format::HTTP - Date conversion routines
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/C/CK/CKRAS/DateTime-Format-HTTP-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-DateTime
BuildRequires: perl-HTTP-Date
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(Class::ISA)
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
Requires: perl >= %perl_major_ver
%description
This module provides functions that deal the date formats used by the HTTP protocol (and then some more).
%prep
%setup -q -n DateTime-Format-HTTP-%{version}
sed -i -e 's/\r//' LICENSE README Changes CREDITS
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/DateTime
%{_mandir}/man3/*.3pm.gz
%doc LICENSE
#Changes CREDITS README
%changelog
* Sat Aug 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.42-2mamba
- rebuilt
* Thu May 08 2014 Automatic Build System <autodist@mambasoft.it> 0.42-1mamba
- automatic update by autodist
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.40-2mamba
- imported in devel
* Mon Mar 07 2011 gil <puntogil@libero.it> 0.40-1mamba
- package created by autospec