forked from pool/perl-Array-Diff
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Array-Diff?expand=0&rev=5
57 lines
1.5 KiB
RPMSpec
57 lines
1.5 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
# norootforbuild
|
|
|
|
Name: perl-Array-Diff
|
|
Version: 0.05002
|
|
Release: 0
|
|
Summary: Find the differences between two arrays
|
|
Source: http://search.cpan.org/CPAN/authors/id/T/TY/TYPESTER/Array-Diff-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Array-Diff
|
|
Group: Development/Libraries/Perl
|
|
License: Perl License
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: make perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
BuildRequires: perl(Class::Accessor::Fast)
|
|
BuildRequires: perl(Algorithm::Diff)
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
Requires: perl(Class::Accessor::Fast)
|
|
Requires: perl(Algorithm::Diff)
|
|
|
|
%description
|
|
This module compares two arrays and returns the added or deleted elements in
|
|
two separate arrays. It's a simple wrapper around Algorithm::Diff.
|
|
|
|
And if you need more complex array tools, check Array::Compare.
|
|
|
|
%prep
|
|
%setup -q -n "Array-Diff-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?jobs:-j%{jobs}}
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes README
|
|
%dir %{perl_vendorlib}/Array
|
|
%{perl_vendorlib}/Array/Diff.pm
|
|
%dir %{perl_vendorarch}/auto/Array
|
|
%{perl_vendorarch}/auto/Array/Diff
|
|
%doc %{perl_man3dir}/Array::Diff.*
|
|
|