Name: perl-FFI-Platypus-Type-PtrObject %global debug_package %{nil} BuildArch: noarch Version: 0.03 Release: 1%{?dist} Summary: Platypus custom type for an object wrapped around an opaque pointer License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/FFI-Platypus-Type-PtrObject/ Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/FFI-Platypus-Type-PtrObject-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 0:5.008001 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(FFI::Platypus) >= 1.11 BuildRequires: perl(FFI::Platypus::Memory) BuildRequires: perl(Ref::Util) BuildRequires: perl(Test2::Tools::FFI) BuildRequires: perl(Test2::V0) >= 0.000060 Requires: perl(FFI::Platypus) >= 1.11 Requires: perl(Ref::Util) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Provides: perl(FFI::Platypus::Type::PtrObject) %description This is a helper type for FFI::Platypus that handles type checking for the common pattern where a Perl class is a simple wrapper around an opaque pointer. The class should be implemented as a hash reference, and the pointer itself is expected to be stored on the ptr key. If the caller of the interface (Perl) is responsible for cleaning up the memory, then it normally should be done in the DESTROY method (as above). %prep %setup -q -n FFI-Platypus-Type-PtrObject-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test ||: %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes LICENSE META.json README author.yml dist.ini maint perlcriticrc %{perl_vendorlib}/FFI* %{_mandir}/man3/* %changelog * Sun Apr 28 2024 rpm 0.03-1 - Specfile autogenerated by cpanspec 1.78.