Name: perl-FFI-C-Stat Version: 0.03 Release: 1%{?dist} Summary: Object-oriented FFI interface to native stat and lstat License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/FFI-C-Stat/ Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/FFI-C-Stat-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 0:5.008004 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(FFI::Platypus) >= 1.00 BuildRequires: perl(File::chdir) BuildRequires: perl(Path::Tiny) BuildRequires: perl(Ref::Util) BuildRequires: perl(Test2::V0) >= 0.000121 BuildRequires: perl(Test::Script) >= 1.09 BuildRequires: perl-generators Requires: perl(FFI::Platypus) >= 1.00 Requires: perl(Ref::Util) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Perl comes with perfectly good stat, lstat functions, however if you are writing FFI bindings for a library that use the C stat structure, you are out of luck there. This module provides an FFI friendly interface to the C stat function, which uses an object similar to File::stat, except the internals are a real C struct that you can pass into C APIs that need it. %prep %setup -q -n FFI-C-Stat-%{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 perlcriticrc %{perl_vendorarch}/auto/* %{perl_vendorarch}/FFI* %{_mandir}/man3/* %changelog * Sun Apr 28 2024 rpm 0.03-1 - Specfile autogenerated by cpanspec 1.78.