Group :: Development/Perl
RPM: perl-Hash-Flatten
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Development/Perl
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Hash-Flatten
Version: 1.19
Release: alt3_26
Summary: Flatten/unflatten complex data hashes
License: GPLv2
URL: https://metacpan.org/release/Hash-Flatten
Source0: https://cpan.metacpan.org/authors/id/B/BB/BBC/Hash-Flatten-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: glibc-locales glibc-timezones glibc-utils iconv
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Runtime
BuildRequires: perl(Carp.pm)
BuildRequires: perl(constant.pm)
BuildRequires: perl(Exporter.pm)
BuildRequires: perl(overload.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(vars.pm)
# Tests only
BuildRequires: perl(Getopt/Std.pm)
BuildRequires: perl(Log/Trace.pm)
BuildRequires: perl(Test/Assertions.pm)
BuildRequires: perl(Test/More.pm)
# Optional tests only
BuildRequires: perl(Test/Pod.pm)
BuildRequires: perl(Test/Pod/Coverage.pm)
Requires: perl(overload.pm)
Source44: import.info
%description
Converts back and forth between a nested hash structure and a flat hash of
delimited key-value pairs. Useful for protocols that only support key-value
pairs (such as CGI and DBMs).
%prep
%setup -q -n Hash-Flatten-%{version}
iconv -f latin1 -t utf8 Changes > Changes.utf && \
touch Changes.utf -r Changes && \
mv Changes.utf Changes
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc --no-dereference COPYING
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Hash-Flatten
Version: 1.19
Release: alt3_26
Summary: Flatten/unflatten complex data hashes
License: GPLv2
URL: https://metacpan.org/release/Hash-Flatten
Source0: https://cpan.metacpan.org/authors/id/B/BB/BBC/Hash-Flatten-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: glibc-locales glibc-timezones glibc-utils iconv
BuildRequires: rpm-build-perl
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Runtime
BuildRequires: perl(Carp.pm)
BuildRequires: perl(constant.pm)
BuildRequires: perl(Exporter.pm)
BuildRequires: perl(overload.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(vars.pm)
# Tests only
BuildRequires: perl(Getopt/Std.pm)
BuildRequires: perl(Log/Trace.pm)
BuildRequires: perl(Test/Assertions.pm)
BuildRequires: perl(Test/More.pm)
# Optional tests only
BuildRequires: perl(Test/Pod.pm)
BuildRequires: perl(Test/Pod/Coverage.pm)
Requires: perl(overload.pm)
Source44: import.info
%description
Converts back and forth between a nested hash structure and a flat hash of
delimited key-value pairs. Useful for protocols that only support key-value
pairs (such as CGI and DBMs).
%prep
%setup -q -n Hash-Flatten-%{version}
iconv -f latin1 -t utf8 Changes > Changes.utf && \
touch Changes.utf -r Changes && \
mv Changes.utf Changes
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=%{buildroot}
# %{_fixperms} %{buildroot}/*
%check
make test
%files
%doc --no-dereference COPYING
%doc Changes README
%{perl_vendor_privlib}/*
%changelog
…
Full changelog you can see here