forked from pool/perl-Array-Unique
0.08
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Array-Unique?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
Array-Unique-0.08.tar.gz
Normal file
3
Array-Unique-0.08.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3d5440c90c9caa09900868ad2ba5f84ea52e704af8ce3016d8ee0e6173f271d2
|
||||
size 8759
|
5
perl-Array-Unique.changes
Normal file
5
perl-Array-Unique.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 22 20:44:02 CET 2011 - pascal.bleser@opensuse.org
|
||||
|
||||
- initial version (0.08)
|
||||
|
54
perl-Array-Unique.spec
Normal file
54
perl-Array-Unique.spec
Normal file
@@ -0,0 +1,54 @@
|
||||
# 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}
|
||||
|
Reference in New Issue
Block a user