Accepting request 45938 from home:computersalat:devel:perl

Copy from home:computersalat:devel:perl/perl-Class-AutoClass via accept of submit request 45938 revision 3.
Request was accepted with message:
self accept

OBS-URL: https://build.opensuse.org/request/show/45938
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-AutoClass?expand=0&rev=1
This commit is contained in:
Christian Wittmer
2010-08-21 20:13:57 +00:00
committed by Git OBS Bridge
commit 1d7da298c8
6 changed files with 736 additions and 0 deletions

88
perl-Class-AutoClass.spec Normal file
View File

@@ -0,0 +1,88 @@
#
# spec file for package perl-Class-AutoClass (Version 1.53)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#
# norootforbuild
Name: perl-Class-AutoClass
%define cpan_name Class-AutoClass
Summary: Create get and set methods and simplify object initialization
Version: 1.53
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Class-AutoClass/
#Source: http://www.cpan.org/modules/by-module/Class/Class-AutoClass-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Patch0: %{cpan_name}_Build_n_Test.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl(Module::Build)
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
%if 0%{?suse_version} > 1120
BuildRequires: perl(Test::More) >= 0.88
%endif
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Hash::AutoHash::Args) >= 1.10
BuildRequires: perl(IO::Scalar) >= 2.1
BuildRequires: perl(Scalar::Util) >= 1.01
BuildRequires: perl(Test::Deep) >= 0.098
Requires: perl = %{perl_version}
Requires: perl(Carp)
Requires: perl(Hash::AutoHash::Args) >= 1.10
Requires: perl(Storable) >= 2.16
%description
This is yet another module that generates standard 'get' and 'set' methods
for Perl classes. It also handles initialization of object and class data
from parameter lists or defaults, and arranges for object creation and
initialization to occur in top-down, textbook order even in the presence of
multiple inheritance.
Authors:
--------
Nat Goodman
Chris Cavnor
%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1120
%patch0 -p1
%endif
%build
%{__perl} Build.PL installdirs=vendor
./Build
%check
./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%changelog