File perl-freezethaw.spec of Package FreezeThaw

%define cpan_name FreezeThaw
Name:           perl-FreezeThaw
Version:        0.5001
Release:        1
License:        Artistic-1.0 OR GPL-1.0-or-later
Summary:        FreezeThaw - converting Perl structures to strings and back.
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/I/IL/ILYAZ/modules/FreezeThaw-0.5001.tar.gz
BuildArch:      noarch

BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires: perl(Test::More)

BuildRequires:  perl(ExtUtils::MakeMaker)

%description
Converts data to/from stringified form, appropriate for saving-to/reading-from permanent storage.

Deals with objects, circular lists, repeated appearence of the same refence. Does not deal with overloaded stringify operator yet.
%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