File perl-DateTime.spec of Package DateTime

%define cpan_name DateTime
Name:           perl-DateTime
Version:        1.59
Release:        1
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        DateTime - A date and time object for Perl
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/DateTime-1.59.tar.gz
BuildArch:      x86_64
BuildRequires:  perl
BuildRequires:  perl-macros
#%{perl_requires}
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
Provides: perl(DateTime)

%description
DateTime - A date and time object for Perl
%prep
%autosetup  -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
#%check
#make test
%install
#%perl_make_install
#%perl_process_packlist
#%perl_gen_filelist
make DESTDIR=$RPM_BUILD_ROOT install_vendor
find %{buildroot} -type f -name "perllocal.pod" -exec rm -f {} \;
find %{buildroot} -type f -name ".packlist" -exec rm -f {} \;
rm -rf %{buildroot}/usr/share/man/
find %{buildroot} -type f | sed "s#%{buildroot}##g" > %{buildroot}/../%{name}-filelist

%files -f %{buildroot}/../%{name}-filelist
%changelog
openSUSE Build Service is sponsored by