* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.51-3.sme

- import to SME11
This commit is contained in:
Jean-Philippe Pialasse 2025-01-23 18:51:43 -05:00
parent 611606d33a
commit 7437bfb72e
2 changed files with 62 additions and 39 deletions

BIN
Class-Accessor-0.51.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,54 +1,74 @@
%define name perl-Class-Accessor
%define version 1.0
%define release 1
Summary: This is what perl-Class-Accessor does.
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
Source: %{name}-%{version}.tar.gz
License: GNU GPL version 2
Group: SMEserver/addon
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
BuildArchitectures: noarch
BuildRequires: smeserver-devtools
Requires: smeserver-release >= 11.0
AutoReqProv: no
%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.
%changelog
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
- Initial code - create RPM [SME:99999]
%prep
%setup -q
%setup -q -n Class-Accessor-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist
#echo "%doc COPYING" >> %{name}-%{version}-filelist
#--dir <dir> 'attr(755,user,grp)' \
#--file <file> 'attr(755,root,root)' \
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
cd ..
rm -rf %{name}-%{version}
rm -rf %{buildroot}
%pre
%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%preun
%changelog
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 0.51-3.sme
- import to SME11
%post
* Wed Nov 11 2020 Gavin Carr <gavin@openfusion.com.au> 0.51-1
- Update to version 0.51.
%postun
#uninstall
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)
* Mon Feb 07 2011 Gavin Carr <gavin@openfusion.com.au> 0.34-1
- Specfile autogenerated by cpanspec 1.78.