Accepting request 295936 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/295936 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Object-Simple?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
043e33a2f7
commit
b68feedace
@@ -1,65 +1,84 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
#
|
||||
# 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.0621
|
||||
Version: 3.14
|
||||
Release: 0
|
||||
Summary: Generate accessor having default value, and provide constructor
|
||||
Source: http://search.cpan.org/CPAN/authors/id/K/KI/KIMOTO/Object-Simple-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/Object-Simple
|
||||
%define cpan_name Object-Simple
|
||||
Summary: Simple class builder(Mojo::Base porting)
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
%{perl_requires}
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: make
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
%if 0%{?suse_version} >= 1120
|
||||
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
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Object::Simple is a generator of accessor, such as Class::Accessor,
|
||||
Mojo::Base, or Moose. Class::Accessor 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 accssor, its value is
|
||||
converted to array reference without warnings.
|
||||
Moose is too complex for many people to use, and depends on many modules.
|
||||
Moose is almost another language, and don't fit familiar perl syntax.
|
||||
Moose increase the complexity of projects, rather than increase production
|
||||
efficiency. In addition, its complie speed is slow and used memroy is
|
||||
large.
|
||||
Object::Simple is the middle area between Class::Accessor and complex
|
||||
class builder. Only offten used features is implemented. "new()" can
|
||||
receive hash or hash reference as arguments. You can specify default value
|
||||
for the accessor. Compile speed is fast and used memory is small.
|
||||
Debugging is easy. Object::Simple is compatible of Mojo::Base
|
||||
See Object::Simple::Guide to know Object::Simple details.
|
||||
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 "Object-Simple-%{version}"
|
||||
%__sed -i '/^auto_install/d' Makefile.PL
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%__perl Makefile.PL PREFIX="%{_prefix}"
|
||||
%__make %{?_smp_flags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%check
|
||||
%__make test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README Changes
|
||||
%dir %{perl_vendorlib}/Object
|
||||
%{perl_vendorlib}/Object/Simple.pm
|
||||
%{perl_vendorlib}/Object/Simple
|
||||
%doc %{perl_man3dir}/Object::Simple.%{perl_man3ext}%{ext_man}
|
||||
%doc %{perl_man3dir}/Object::Simple::*.%{perl_man3ext}%{ext_man}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user