OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Object-Simple?expand=0&rev=1
66 lines
2.3 KiB
RPMSpec
66 lines
2.3 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
|
|
Name: perl-Object-Simple
|
|
Version: 3.0621
|
|
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
|
|
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
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n "Object-Simple-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?_smp_flags}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%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}
|
|
|