File perl-class-accessor-chained.spec of Package Class-Accessor-Chained
%define cpan_name Class-Accessor-Chained
Name: perl-Class-Accessor-Chained
Version: 0.01
Release: 1
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Class::Accessor::Chained - make chained accessors
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/Class-Accessor-Chained-0.01.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker)
%description
A chained accessor is one that always returns the object when called with parameters (to set), and the value of the field when called with no arguments.
This module subclasses Class::Accessor in order to provide the same mk_accessors interface.
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
# 2023-01-30: Deactivate test (mbo)
#%check
#make test
%install
#%perl_make_install
#%perl_process_packlist
#%perl_gen_filelist
make DESTDIR=$RPM_BUILD_ROOT install_vendor
find %{buildroot} -type f -name "perllocal.pod" -exec rm -f {} \;
find %{buildroot} -type f -name ".packlist" -exec rm -f {} \;
rm -rf %{buildroot}/usr/share/man/
find %{buildroot} -type f | sed "s#%{buildroot}##g" > %{buildroot}/../%{name}-filelist
%files -f %{buildroot}/../%{name}-filelist
%changelog