forked from pool/perl-Array-Unique
55 lines
1.5 KiB
RPMSpec
55 lines
1.5 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-Array-Unique
|
||
|
Version: 0.08
|
||
|
Release: 0
|
||
|
Summary: Tie-able array that allows only unique values
|
||
|
Source: http://search.cpan.org/CPAN/authors/id/S/SZ/SZABGAB/Array-Unique-%{version}.tar.gz
|
||
|
URL: http://search.cpan.org/dist/Array-Unique
|
||
|
Group: Development/Libraries/Perl
|
||
|
License: Perl License
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
%{perl_requires}
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: perl(Test::More) >= 0.47
|
||
|
BuildRequires: perl(Module::Build)
|
||
|
%if 0%{?suse_version} >= 1120
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%description
|
||
|
This package lets you create an array which will allow only one occurrence
|
||
|
of any value.
|
||
|
In other words no matter how many times you put in 42 it will keep only
|
||
|
the first occurrence and the rest will be dropped.
|
||
|
You use the module via tie and once you tied your array to this module it
|
||
|
will behave correctly.
|
||
|
Uniqueness is checked with the 'eq' operator so among other things it is
|
||
|
case sensitive.
|
||
|
As a side effect the module does not allow undef as a value in the array.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "Array-Unique-%{version}"
|
||
|
|
||
|
%build
|
||
|
%__perl ./Build.PL
|
||
|
./Build
|
||
|
|
||
|
%install
|
||
|
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%check
|
||
|
./Build test
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc Changes README
|
||
|
%dir %{perl_vendorlib}/Array
|
||
|
%{perl_vendorlib}/Array/Unique.pm
|
||
|
%doc %{perl_man3dir}/Array::Unique.%{perl_man3ext}%{ext_man}
|
||
|
|