perl-Tie-Array-CSV/perl-Tie-Array-CSV.spec

60 lines
1.7 KiB
RPMSpec
Raw Normal View History

Name: perl-Tie-Array-CSV
Version: 0.08
Release: 2%{?dist}
Summary: Tied array which combines the power of Tie::File and Text::CSV
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Tie-Array-CSV/
Source0: http://www.cpan.org/authors/id/J/JB/JBERGER/Tie-Array-CSV-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 0:5.006001
BuildRequires: perl(Module::Build)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Text::CSV)
BuildRequires: perl(Tie::File)
Requires: perl(Scalar::Util)
Requires: perl(Text::CSV)
Requires: perl(Tie::File)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module allows an array to be tied to a CSV file for reading and
writing. The array is a standard Perl 2D array (i.e. an array of array
references) which gives access to the row and column of the user's
choosing. This is done using the well established modules:
%prep
%setup -q -n Tie-Array-CSV-%{version}
%build
%{__perl} Build.PL --installdirs=vendor
./Build
%install
rm -rf $RPM_BUILD_ROOT
./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes META.json
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sun Mar 24 2024 Jean-Philippe Pialasse <jpp@koozali.org> 0.08-2.sme
- tidy to build
* Sun Mar 24 2024 Trevor Batley <trevor@batley.id.au> 0.08-1
- Specfile autogenerated by cpanspec 1.78.