Name: perl-Inline-Struct Version: 0.30 Release: 8%{?dist} Summary: Manipulate C structures directly from Perl License: GPL+ or Artistic URL: https://metacpan.org/release/Inline-Struct Source0: https://cpan.metacpan.org/authors/id/E/ET/ETJ/Inline-Struct-%{version}.tar.gz BuildArch: noarch # Build BuildRequires: coreutils BuildRequires: make BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Runtime BuildRequires: perl(Carp) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Inline) >= 0.66 BuildRequires: perl(Inline::C) >= 0.62 BuildRequires: perl(Parse::RecDescent) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Tests only BuildRequires: perl(File::Temp) BuildRequires: perl(lib) BuildRequires: perl(Test::More) >= 0.88 Requires: perl(Inline) >= 0.66 Requires: perl(Inline::C) >= 0.62 Requires: perl(Parse::RecDescent) # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Inline|Test::More)\\)$ # Hide private modules %global __requires_exclude %{__requires_exclude}|^perl\\(t::common\\.pl\\) %description Inline::Struct is not a new language. It's a language extension designed to be used by Inline::C. It parses struct definitions and creates typemaps and XS code which bind each struct into a Perl class. This code is passed to Inline::C, which compiles it in the normal way. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness Requires: perl(Inline::C) >= 0.62 Requires: perl(Test::More) >= 0.88 %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n Inline-Struct-%{version} chmod -c a-x benchmark # Help generators to recognize Perl scripts for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %doc Changes README TODO benchmark %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Fri Jan 26 2024 Fedora Release Engineering - 0.30-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.30-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.30-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.30-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.30-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.30-3 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jan 07 2022 Petr Pisar - 0.30-1 - 0.30 bump * Mon Dec 20 2021 Petr Pisar - 0.28-1 - 0.28 bump - Package the tests * Thu Jul 22 2021 Fedora Release Engineering - 0.27-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 23 2021 Jitka Plesnikova - 0.27-9 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.27-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.27-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.27-6 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.27-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.27-3 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.27-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 28 2019 Petr Pisar - 0.27-1 - 0.27 bump * Wed Jan 23 2019 Petr Pisar - 0.26-1 - 0.26 bump * Mon Jan 21 2019 Petr Pisar - 0.25-1 - 0.25 bump * Fri Jul 13 2018 Fedora Release Engineering - 0.23-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 0.23-8 - Perl 5.28 rebuild * Wed Mar 07 2018 Petr Pisar - 0.23-7 - Modernize spec file * Thu Feb 08 2018 Fedora Release Engineering - 0.23-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.23-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 0.23-4 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.23-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon May 16 2016 Jitka Plesnikova - 0.23-2 - Perl 5.24 rebuild * Thu May 05 2016 Petr Pisar - 0.23-1 - 0.23 bump * Tue May 03 2016 Petr Pisar - 0.21-1 - 0.21 bump * Thu Feb 04 2016 Fedora Release Engineering - 0.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.18-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 0.18-2 - Perl 5.22 rebuild * Thu Jan 08 2015 Petr Šabata - 0.18-1 - 0.18 bump * Wed Nov 26 2014 Petr Šabata - 0.16-1 - 0.16 bump * Mon Oct 20 2014 Petr Šabata - 0.12-1 - 0.12 bump * Mon Sep 29 2014 Petr Šabata - 0.11-1 - 0.11 bump * Thu Aug 28 2014 Jitka Plesnikova - 0.10-2 - Perl 5.20 rebuild * Thu Aug 14 2014 Petr Šabata - 0.10-1 - 0.10 bump * Wed Jul 16 2014 Petr Šabata 0.06-1 - Initial packaging