perl-Class-Accessor/perl-Class-Accessor.spec

75 lines
1.9 KiB
RPMSpec

%define module Class::Accessor
Name: perl-Class-Accessor
Version: 0.51
Release: 3%{?org_tag}%{?dist}
Summary: Automated accessor generation
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Class-Accessor/
Source0: http://www.cpan.org/authors/id/K/KA/KASEI/Class-Accessor-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# Module Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires: perl(B)
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(strict)
BuildRequires: perl(Sub::Name)
# Test Suite
BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Hash)
# Dependencies
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
AutoReq: no
AutoProv: yes
%description
This module automagically generates accessors/mutators for your class.
%prep
%setup -q -n Class-Accessor-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
%check
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.51-3.sme
- import to SME11
* Wed Nov 11 2020 Gavin Carr <gavin@openfusion.com.au> 0.51-1
- Update to version 0.51.
* Mon Feb 07 2011 Gavin Carr <gavin@openfusion.com.au> 0.34-1
- Specfile autogenerated by cpanspec 1.78.