2015-04-14 05:51:22 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Object-Simple
|
|
|
|
#
|
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-06-12 21:03:21 +00:00
|
|
|
|
|
|
|
Name: perl-Object-Simple
|
2015-04-14 05:51:22 +00:00
|
|
|
Version: 3.14
|
2011-06-12 21:03:21 +00:00
|
|
|
Release: 0
|
2015-04-14 05:51:22 +00:00
|
|
|
%define cpan_name Object-Simple
|
|
|
|
Summary: Simple class builder(Mojo::Base porting)
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-06-12 21:03:21 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-04-14 05:51:22 +00:00
|
|
|
Url: http://search.cpan.org/dist/Object-Simple/
|
|
|
|
Source: http://www.cpan.org/authors/id/K/KI/KIMOTO/%{cpan_name}-%{version}.tar.gz
|
2011-06-12 21:03:21 +00:00
|
|
|
BuildArch: noarch
|
2015-04-14 05:51:22 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%{perl_requires}
|
2011-06-12 21:03:21 +00:00
|
|
|
|
|
|
|
%description
|
2015-04-14 05:51:22 +00:00
|
|
|
the Object::Simple manpage is the Mojo::Base manpage porting. you can use
|
|
|
|
the Mojo::Base manpage features.
|
|
|
|
|
|
|
|
the Object::Simple manpage is a generator of accessor method, such as the
|
|
|
|
Class::Accessor manpage, the Mojo::Base manpage, or the Moose manpage.
|
|
|
|
|
|
|
|
the Class::Accessor manpage is simple, but lack offten used features. 'new'
|
|
|
|
method can't receive hash arguments. Default value can't be specified. If
|
|
|
|
multipule values is set through the accessor, its value is converted to
|
|
|
|
array reference without warnings.
|
|
|
|
|
|
|
|
Some people find the Moose manpage too complex, and dislike that it depends
|
|
|
|
on outside modules. Some say that the Moose manpage is almost like another
|
|
|
|
language and does not fit the familiar perl syntax. In some cases, in
|
|
|
|
particular smaller projects, some people feel that the Moose manpage will
|
|
|
|
increase complexity and therefore decrease programmer efficiency. In
|
|
|
|
addition, the Moose manpage can be slow at compile-time and its memory
|
|
|
|
usage can get large.
|
|
|
|
|
|
|
|
the Object::Simple manpage is the middle way between the Class::Accessor
|
|
|
|
manpage and complex class builder. Only offten used features is implemented
|
|
|
|
has no dependency. the Object::Simple manpage is almost same as the
|
|
|
|
Mojo::Base manpage.
|
|
|
|
|
|
|
|
'new' method can receive hash or hash reference. You can specify default
|
|
|
|
value.
|
|
|
|
|
|
|
|
If you like the Mojo::Base manpage, the Object::Simple manpage is good
|
|
|
|
choice.
|
2011-06-12 21:03:21 +00:00
|
|
|
|
|
|
|
%prep
|
2015-04-14 05:51:22 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2011-06-12 21:03:21 +00:00
|
|
|
|
|
|
|
%build
|
2015-04-14 05:51:22 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2011-06-12 21:03:21 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-04-14 05:51:22 +00:00
|
|
|
%perl_gen_filelist
|
2011-06-12 21:03:21 +00:00
|
|
|
|
2015-04-14 05:51:22 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changes README
|
2011-06-12 21:03:21 +00:00
|
|
|
|
2015-04-14 05:51:22 +00:00
|
|
|
%changelog
|