Files
perl-Object-Simple/perl-Object-Simple.spec

85 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# 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/
#
Name: perl-Object-Simple
Version: 3.14
Release: 0
%define cpan_name Object-Simple
Summary: Simple class builder(Mojo::Base porting)
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Object-Simple/
Source: http://www.cpan.org/authors/id/K/KI/KIMOTO/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
%{perl_requires}
%description
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.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog