%global pkgname Data-MessagePack Name: perl-Data-MessagePack Version: 1.02 Release: 10%{?dist} Summary: MessagePack serialising/deserialising License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Data-MessagePack Source0: https://cpan.metacpan.org/authors/id/S/SY/SYOHEX/%{pkgname}-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(base) #BuildRequires: perl(Devel::PPPort) >= 3.42 BuildRequires: perl(File::Basename) BuildRequires: perl(File::Spec) BuildRequires: perl(FindBin) BuildRequires: perl(vars) BuildRequires: perl(Module::Build::XSUtil) BuildRequires: perl(overload) BuildRequires: perl(utf8) BuildRequires: perl(warnings) # Run-time BuildRequires: perl(B) BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(Math::BigInt) >= 1.89 BuildRequires: perl(overload) BuildRequires: perl(XSLoader) # Tests BuildRequires: perl(constant) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Encode) BuildRequires: perl(if) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Test::LeakTrace) BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(Test::Requires) BuildRequires: perl(Tie::Array) BuildRequires: perl(Tie::Hash) # Optional tests BuildRequires: perl(threads) Requires: perl(XSLoader) # Filter modules bundled for tests %global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir} %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(t::Util\\) %description This module converts Perl data structures to MessagePack and vice versa. %package tests Summary: Tests for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -qn %{pkgname}-%{version} # Help generators to recognize Perl scripts for F in t/*.t t/*.pl; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Build.PL --installdirs=vendor --optimize="$RPM_OPT_FLAGS" ./Build %install ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete %{_fixperms} $RPM_BUILD_ROOT/* # 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 . -r -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check ./Build test %files %license LICENSE %doc Changes README.md %{perl_vendorarch}/auto/* %{perl_vendorarch}/Data* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Thu Jul 18 2024 Fedora Release Engineering - 1.02-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Jitka Plesnikova - 1.02-9 - Perl 5.40 rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.02-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.02-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.02-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 1.02-5 - Perl 5.38 rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.02-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.02-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 1.02-2 - Perl 5.36 rebuild * Wed Mar 23 2022 Jitka Plesnikova - 1.02-1 - 1.02 bump - Package tests * Fri Jan 21 2022 Fedora Release Engineering - 1.01-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 23 2021 Jitka Plesnikova - 1.01-5 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.01-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.01-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.01-2 - Perl 5.32 rebuild * Wed Mar 18 2020 Jitka Plesnikova - 1.01-1 - 1.01 bump; Replace Makefile.PL with Build.PL * Thu Mar 12 2020 Jitka Plesnikova - 1.00-14 - Add BR: perl(FindBin) - Use make_* macros * Wed Jan 29 2020 Fedora Release Engineering - 1.00-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.00-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.00-11 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.00-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.00-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Jitka Plesnikova - 1.00-8 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.00-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.00-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.00-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 05 2017 Jitka Plesnikova - 1.00-4 - Perl 5.26 rebuild * Thu May 18 2017 Jitka Plesnikova - 1.00-3 - Fix building on Perl without '.' in @INC * Sat Feb 11 2017 Fedora Release Engineering - 1.00-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Aug 29 2016 Jitka Plesnikova - 1.00-1 - 1.00 bump * Wed Jun 15 2016 Jitka Plesnikova - 0.50-1 - 0.50 bump * Sun May 15 2016 Jitka Plesnikova - 0.49-2 - Perl 5.24 rebuild * Mon Feb 29 2016 Jitka Plesnikova - 0.49-1 - 0.49 bump * Thu Feb 04 2016 Fedora Release Engineering - 0.48-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.48-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 06 2015 Jitka Plesnikova - 0.48-6 - Perl 5.22 rebuild * Wed Nov 05 2014 Petr Pisar - 0.48-5 - Build-require Devel::PPPort (bug #1158755) * Fri Aug 29 2014 Jitka Plesnikova - 0.48-4 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.48-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.48-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon Sep 23 2013 Christopher Meng - 0.48-1 - New version. * Sat Aug 03 2013 Fedora Release Engineering - 0.47-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jul 26 2013 Petr Pisar - 0.47-2 - Perl 5.18 rebuild * Wed May 01 2013 Christopher Meng - 0.47-1 - Initial Package.