Name: perl-Alien-ProtoBuf Version: 0.09 Release: 21%{?dist} Summary: Find Protocol Buffers library License: GPL+ or Artistic URL: https://metacpan.org/release/Alien-ProtoBuf Source0: https://cpan.metacpan.org/authors/id/M/MB/MBARBON/Alien-ProtoBuf-%{version}.tar.gz # Although Alien::* modules are usually architecture specific because they # store architecture specific data, this is not a case of # perl-Alien-ProtoBuf. We can remain noarch. BuildArch: noarch BuildRequires: coreutils BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Alien::Base::ModuleBuild) >= 0.023 BuildRequires: perl(lib) BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(ExtUtils::CppGuess) >= 0.11 BuildRequires: perl(Module::Build) >= 0.28 BuildRequires: perl(parent) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: pkgconfig(protobuf) # Run-time: BuildRequires: perl(Alien::Base) # Tests: BuildRequires: perl(Test::More) # Test::Pod not used Requires: perl(Data::Dumper) Requires: perl(Module::Build) >= 0.28 # A purpose of this package is to ensure a user can develop against protobuf. # We require exact version because the version is stored into generated # Alien/ProtoBuf/Install/Files.pm file. Requires: pkgconfig(protobuf) = %(type -p pkgconf >/dev/null && pkgconf --exists protobuf && pkg-config --modversion protobuf || echo 0) %description Depending on Alien::ProtoBuf Perl module ensures the Protocol Buffers library is installed on your system. %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 -q -n Alien-ProtoBuf-%{version} # Remove author tests rm t/author-pod-syntax.t perl -i -ne 'print $_ unless m{^t/author-pod-syntax\.t}' MANIFEST # Normalize permissions chmod +x t/*.t %build perl Build.PL --installdirs=vendor ./Build %install ./Build install --destdir=%{buildroot} --create_packlist=0 %{_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}') ./Build test %files %license LICENSE %doc Changes README %{perl_vendorlib}/* %{_mandir}/man3/* %files tests %{_libexecdir}/%{name} %changelog * Thu Jul 20 2023 Fedora Release Engineering - 0.09-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.09-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Jan 03 2023 Petr Pisar - 0.09-19 - Rebuild aginst protobuf-3.19.6 (bug #2152754) * Fri Jul 22 2022 Fedora Release Engineering - 0.09-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.09-17 - Perl 5.36 rebuild * Wed Feb 16 2022 Petr Pisar - 0.09-16 - Rebuild aginst protobuf-3.19.4 - Package the tests * Thu Jan 20 2022 Fedora Release Engineering - 0.09-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Nov 06 2021 Adrian Reber - 0.09-14 - Rebuilt for protobuf 3.19.0 * Tue Oct 26 2021 Adrian Reber - 0.09-13 - Rebuilt for protobuf 3.18.1 * Thu Jul 22 2021 Fedora Release Engineering - 0.09-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.09-11 - Perl 5.34 rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.09-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jan 13 16:41:04 CET 2021 Adrian Reber - 0.09-9 - Rebuilt for protobuf 3.14 * Thu Sep 24 2020 Adrian Reber - 0.09-8 - Rebuilt for protobuf 3.13 * Tue Jul 28 2020 Fedora Release Engineering - 0.09-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.09-6 - Perl 5.32 rebuild * Sun Jun 14 2020 Adrian Reber - 0.09-5 - Rebuilt for protobuf 3.12 * Wed May 06 2020 Petr Pisar - 0.09-4 - Rebuild against protobuf 3.11.4 (bug #1831970) * Mon Mar 09 2020 Petr Pisar - 0.09-3 - Fix generating pkgconfig(protobuf) version * Wed Jan 29 2020 Fedora Release Engineering - 0.09-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Sep 12 2019 Petr Pisar - 0.09-1 - 0.09 bump * Fri Jul 26 2019 Fedora Release Engineering - 0.08-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.08-2 - Perl 5.30 rebuild * Thu Mar 14 2019 Petr Pisar 0.08-1 - Specfile autogenerated by cpanspec 1.78.