2010-08-21 20:13:57 +00:00
|
|
|
#
|
2015-04-17 05:35:44 +00:00
|
|
|
# spec file for package perl-Class-AutoClass
|
2010-08-21 20:13:57 +00:00
|
|
|
#
|
2024-07-19 21:44:33 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-08-21 20:13:57 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-07-19 21:44:33 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-08-21 20:13:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-07-19 21:44:33 +00:00
|
|
|
%define cpan_name Class-AutoClass
|
2010-08-21 20:13:57 +00:00
|
|
|
Name: perl-Class-AutoClass
|
2024-07-19 21:44:33 +00:00
|
|
|
Version: 1.560.0
|
2015-04-17 05:35:44 +00:00
|
|
|
Release: 0
|
2024-07-19 21:44:33 +00:00
|
|
|
# 1.56 -> normalize -> 1.560.0
|
|
|
|
%define cpan_version 1.56
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2010-08-21 20:13:57 +00:00
|
|
|
Summary: Create get and set methods and simplify object initialization
|
2024-07-19 21:44:33 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/N/NA/NATG/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-17 05:35:44 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:12:21 +02:00
|
|
|
Source100: README.md
|
2010-08-21 20:13:57 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-17 05:35:44 +00:00
|
|
|
BuildRequires: perl(Carp) >= 1.2
|
|
|
|
BuildRequires: perl(Cwd) >= 3.4
|
|
|
|
BuildRequires: perl(Exporter) >= 5.68
|
|
|
|
BuildRequires: perl(Fcntl) >= 1.11
|
|
|
|
BuildRequires: perl(File::Spec) >= 3.4
|
2024-07-19 21:44:33 +00:00
|
|
|
BuildRequires: perl(Hash::AutoHash) >= 1.170.0
|
|
|
|
BuildRequires: perl(Hash::AutoHash::Args) >= 1.180.0
|
|
|
|
BuildRequires: perl(IO::Scalar) >= 2.110.0
|
2015-04-17 05:35:44 +00:00
|
|
|
BuildRequires: perl(List::MoreUtils) >= 0.33
|
|
|
|
BuildRequires: perl(List::Util) >= 1.32
|
2024-07-19 21:44:33 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.4007
|
2015-04-17 05:35:44 +00:00
|
|
|
BuildRequires: perl(Scalar::Util) >= 1.23
|
|
|
|
BuildRequires: perl(Storable) >= 2.3
|
|
|
|
BuildRequires: perl(Test::Deep) >= 0.11
|
|
|
|
BuildRequires: perl(Test::More) >= 0.98
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.48
|
|
|
|
BuildRequires: perl(Test::Pod::Content) >= 0.0.6
|
|
|
|
BuildRequires: perl(Tie::ToObject) >= 0.03
|
|
|
|
BuildRequires: perl(XSLoader) >= 0.15
|
|
|
|
Requires: perl(Carp) >= 1.2
|
|
|
|
Requires: perl(Cwd) >= 3.4
|
|
|
|
Requires: perl(Exporter) >= 5.68
|
|
|
|
Requires: perl(Fcntl) >= 1.11
|
2024-07-19 21:44:33 +00:00
|
|
|
Requires: perl(Hash::AutoHash) >= 1.170.0
|
|
|
|
Requires: perl(Hash::AutoHash::Args) >= 1.180.0
|
|
|
|
Requires: perl(IO::Scalar) >= 2.110.0
|
2015-04-17 05:35:44 +00:00
|
|
|
Requires: perl(List::MoreUtils) >= 0.33
|
|
|
|
Requires: perl(List::Util) >= 1.32
|
|
|
|
Requires: perl(Storable) >= 2.3
|
|
|
|
Requires: perl(Tie::ToObject) >= 0.03
|
|
|
|
Requires: perl(XSLoader) >= 0.15
|
2024-07-19 21:44:33 +00:00
|
|
|
Provides: perl(Class::AutoClass) = %{version}
|
|
|
|
Provides: perl(Class::AutoClass::Root) = 1.0.0
|
|
|
|
%undefine __perllib_provides
|
2015-04-17 05:35:44 +00:00
|
|
|
%{perl_requires}
|
2010-08-21 20:13:57 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2015-04-17 05:35:44 +00:00
|
|
|
CAUTION: This module is old. We use it internally, and while it works well
|
2024-07-19 21:44:33 +00:00
|
|
|
for our purposes, we urge new users to heed the warnings in "BUGS" and to
|
|
|
|
look at other modules listed in SEE ALSO. This release brings the CPAN
|
|
|
|
version of the module up-to-date relative to our internal version,
|
|
|
|
something we should have done long ago. We do not expect further releases
|
|
|
|
of this code base, except for bug fixes. Future development, if any, will
|
|
|
|
entail a redesign building on newer CPAN modules.
|
2010-08-21 20:13:57 +00:00
|
|
|
|
|
|
|
%prep
|
2024-07-19 21:44:33 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
|
|
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
2010-08-21 20:13:57 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-19 21:44:33 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2010-08-21 20:13:57 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2024-07-19 21:44:33 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2010-08-21 20:13:57 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
%changelog
|