commit 4b554ef2991b431f92a6b98de20c2f606b95f5d1
Author: Denis Fateyev <de...@fateyev.com>
Date:   Thu Oct 2 20:35:59 2014 +0600

    perl-Array-Unique: initial import (#1139043)

 .gitignore             |    1 +
 perl-Array-Unique.spec |   75 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 77 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..22a07e3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Array-Unique-0.08.tar.gz
diff --git a/perl-Array-Unique.spec b/perl-Array-Unique.spec
new file mode 100644
index 0000000..23a2871
--- /dev/null
+++ b/perl-Array-Unique.spec
@@ -0,0 +1,75 @@
+Name:           perl-Array-Unique
+Version:        0.08
+Release:        2%{?dist}
+Summary:        Tie-able array that allows only unique values
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Array-Unique/
+
+Source0:        
http://search.cpan.org/CPAN/authors/id/S/SZ/SZABGAB/Array-Unique-%{version}.tar.gz
+%{?el5:BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} 
-n)}
+BuildArch:      noarch
+
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
+
+# Run-time:
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(strict)
+
+# Testing
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Tie::Array)
+BuildRequires:  perl(warnings)
+
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
+
+%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 Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+%if 0%{?el5}
+rm -rf $RPM_BUILD_ROOT
+%endif
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%if 0%{?el5}
+%clean
+rm -rf $RPM_BUILD_ROOT
+%endif
+
+%files
+%doc README Changes
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+
+%changelog
+* Sun Sep 28 2014 Denis Fateyev <de...@fateyev.com> - 0.08-2
+- Spec small cleanup
+
+* Sat Sep 06 2014 Denis Fateyev <de...@fateyev.com> - 0.08-1
+- Initial release
diff --git a/sources b/sources
index e69de29..d0f5506 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e3fc4333a97c360348b8c7d0b6b94e83  Array-Unique-0.08.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to