2007-01-15 23:31:49 +00:00
|
|
|
#
|
2011-11-18 08:30:55 +00:00
|
|
|
# spec file for package perl-Set-Object
|
2007-01-15 23:31:49 +00:00
|
|
|
#
|
2014-02-09 14:40:35 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:31:49 +00:00
|
|
|
#
|
2009-01-21 01:36:42 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-15 23:31:49 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-07-25 15:00:46 +00:00
|
|
|
|
2007-01-15 23:31:49 +00:00
|
|
|
Name: perl-Set-Object
|
2014-02-09 14:40:35 +00:00
|
|
|
Version: 1.34
|
2013-06-04 18:32:31 +00:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name Set-Object
|
|
|
|
Summary: Unordered collections (sets) of Perl Objects
|
|
|
|
License: Artistic-1.0
|
2007-01-15 23:31:49 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-04 18:32:31 +00:00
|
|
|
Url: http://search.cpan.org/dist/Set-Object/
|
|
|
|
Source: http://www.cpan.org/authors/id/R/RU/RURBAN/%{cpan_name}-%{version}.tar.gz
|
2007-01-15 23:31:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 08:47:12 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 14:49:43 +00:00
|
|
|
BuildRequires: perl-macros
|
2013-06-04 18:32:31 +00:00
|
|
|
#BuildRequires: perl(Moose)
|
|
|
|
#BuildRequires: perl(Set::Object)
|
|
|
|
#BuildRequires: perl(Set::Object::Weak)
|
|
|
|
Recommends: perl(Moose)
|
|
|
|
Recommends: perl(Test::LeakTrace)
|
|
|
|
%{perl_requires}
|
2007-01-15 23:31:49 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-04 18:32:31 +00:00
|
|
|
This modules implements a set of objects, that is, an unordered collection
|
|
|
|
of objects without duplication.
|
2007-01-15 23:31:49 +00:00
|
|
|
|
2013-06-04 18:32:31 +00:00
|
|
|
The term _objects_ is applied loosely - for the sake of the Set::Object
|
|
|
|
manpage, anything that is a reference is considered an object.
|
2007-01-15 23:31:49 +00:00
|
|
|
|
2013-06-04 18:32:31 +00:00
|
|
|
the Set::Object manpage 1.09 and later includes support for inserting
|
|
|
|
scalars (including the empty string, but excluding 'undef') as well as
|
|
|
|
objects. This can be thought of as (and is currently implemented as) a
|
|
|
|
degenerate hash that only has keys and no values. Unlike objects placed
|
|
|
|
into a Set::Object, scalars that are inserted will be flattened into
|
|
|
|
strings, so will lose any magic (eg, tie) or other special bits that they
|
|
|
|
went in with; only strings come out.
|
2007-01-15 23:31:49 +00:00
|
|
|
|
|
|
|
%prep
|
2013-06-04 18:32:31 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:31:49 +00:00
|
|
|
|
|
|
|
%build
|
2013-06-04 18:32:31 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2007-01-15 23:31:49 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2013-06-04 18:32:31 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:31:49 +00:00
|
|
|
|
2013-06-04 18:32:31 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc README
|
2008-07-25 15:00:46 +00:00
|
|
|
|
2007-02-16 17:41:52 +00:00
|
|
|
%changelog
|