Blame SPECS/perl-Convert-ASN1.spec

856134
# Perform optional tests
856134
%bcond_without perl_Convert_ASN1_enables_optional_test
856134
856134
Summary:        ASN.1 encode/decode library
856134
Name:           perl-Convert-ASN1
856134
Version:        0.27
856134
Release:        24%{?dist}
856134
License:        GPL+ or Artistic
856134
URL:            https://metacpan.org/release/Convert-ASN1
856134
Source0:        https://cpan.metacpan.org/authors/id/G/GB/GBARR/Convert-ASN1-%{version}.tar.gz
856134
# Correct shebangs in the tests
856134
Patch0:         Convert-ASN1-0.27-Correct-shebangs-in-tests.patch
856134
# Allow running tests from a read-only location,
856134
# <https://github.com/gbarr/perl-Convert-ASN1/pull/40>
856134
Patch1:         Convert-ASN1-0.27-Use-temporary-output-files-for-tests.patch
856134
# Fix unsafe decoding in indef case,
856134
# <https://github.com/gbarr/perl-Convert-ASN1/pull/15>
856134
Patch2:         Convert-ASN1-0.27-CVE-2013-7488.patch
856134
BuildArch:      noarch
856134
BuildRequires:  coreutils
856134
BuildRequires:  make
856134
BuildRequires:  perl-generators
856134
BuildRequires:  perl-interpreter
856134
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
856134
BuildRequires:  perl(strict)
856134
BuildRequires:  perl(warnings)
856134
# Run-time:
856134
BuildRequires:  perl(:VERSION) >= 5.4
856134
BuildRequires:  perl(Carp)
856134
BuildRequires:  perl(constant)
856134
BuildRequires:  perl(Encode)
856134
BuildRequires:  perl(Exporter)
856134
BuildRequires:  perl(POSIX)
856134
BuildRequires:  perl(Socket)
856134
BuildRequires:  perl(Time::Local)
856134
BuildRequires:  perl(utf8)
856134
BuildRequires:  perl(vars)
856134
# Optional run-time:
856134
BuildRequires:  perl(bytes)
856134
# Tests:
856134
BuildRequires:  perl(File::Temp)
856134
BuildRequires:  perl(IO::Socket)
856134
BuildRequires:  perl(Math::BigInt) >= 1.997
856134
%if %{with perl_Convert_ASN1_enables_optional_test}
856134
# Optional tests:
856134
BuildRequires:  perl(Data::Dumper)
856134
%endif
856134
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
856134
Suggests:       perl(bytes)
856134
Requires:       perl(Carp)
856134
Requires:       perl(Encode)
856134
Requires:       perl(POSIX)
856134
Requires:       perl(Time::Local)
856134
Requires:       perl(utf8)
856134
856134
# Remove under-specified dependencies
856134
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Math::BigInt\\)$
856134
856134
%description
856134
Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER rules.
856134
856134
%package tests
856134
Summary:        Tests for %{name}
856134
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
856134
Requires:       perl-Test-Harness
856134
Requires:       perl(Math::BigInt) >= 1.997
856134
%if %{with perl_Convert_ASN1_enables_optional_test}
856134
# Optional tests:
856134
Requires:       perl(Data::Dumper)
856134
%endif
856134
856134
%description tests
856134
Tests from %{name}-%{version}. Execute them
856134
with "%{_libexecdir}/%{name}/test".
856134
856134
%prep
856134
%setup -q -n Convert-ASN1-%{version}
856134
%patch0 -p1
856134
%patch1 -p1
856134
%patch2 -p1
856134
chmod +x t/*.t
856134
856134
%build
856134
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
856134
%{make_build}
856134
856134
%install
856134
%{make_install}
856134
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
856134
cp -a t %{buildroot}/%{_libexecdir}/%{name}
856134
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
856134
#!/bin/sh
856134
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
856134
EOF
856134
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
856134
%{_fixperms} %{buildroot}/*
856134
856134
%check
856134
unset YYDEBUG
856134
make test
856134
856134
%files
856134
%license LICENSE
856134
%doc ChangeLog OldChanges README.md examples/
856134
%{perl_vendorlib}/Convert/
856134
%{_mandir}/man3/*.3pm*
856134
856134
%files tests
856134
%{_libexecdir}/%{name}
856134
856134
%changelog
856134
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.27-24
856134
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
856134
  Related: rhbz#1991688
856134
856134
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.27-23
856134
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
856134
856134
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-22
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
856134
856134
* Mon Nov 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-21
856134
- Fix unsafe decoding in indef case (CVE-2013-7488)
856134
856134
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-20
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
856134
856134
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-19
856134
- Perl 5.32 rebuild
856134
856134
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-18
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
856134
856134
* Wed Oct 30 2019 Petr Pisar <ppisar@redhat.com> - 0.27-17
856134
- Quote a substituted number of processors in the test script
856134
856134
* Wed Aug 28 2019 Petr Pisar <ppisar@redhat.com> - 0.27-16
856134
- Modernize spec file
856134
- Package upstream tests
856134
856134
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-15
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
856134
856134
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-14
856134
- Perl 5.30 rebuild
856134
856134
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-13
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
856134
856134
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-12
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
856134
856134
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-11
856134
- Perl 5.28 rebuild
856134
856134
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-10
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
856134
856134
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-9
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
856134
856134
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-8
856134
- Perl 5.26 rebuild
856134
856134
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-7
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
856134
856134
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-6
856134
- Perl 5.24 rebuild
856134
856134
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.27-5
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
856134
856134
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.27-4
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
856134
856134
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-3
856134
- Perl 5.22 rebuild
856134
856134
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-2
856134
- Perl 5.20 rebuild
856134
856134
* Mon Jun 30 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.27-1
856134
- 0.27 bump
856134
856134
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-7
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
856134
856134
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-6
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
856134
856134
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.26-5
856134
- Perl 5.18 rebuild
856134
856134
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-4
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
856134
856134
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26-3
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
856134
856134
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.26-2
856134
- Perl 5.16 rebuild
856134
856134
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.26-1
856134
- 0.26 bump
856134
856134
* Mon May 07 2012 Petr Šabata <contyk@redhat.com> - 0.23-1
856134
- 0.23 bump
856134
- Modernize spec
856134
856134
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-7
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
856134
856134
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.22-6
856134
- Perl mass rebuild
856134
856134
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-5
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
856134
856134
* Wed Dec 15 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-4
856134
- 661697 rebuild for fixing problems with vendorach/lib
856134
856134
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.22-3
856134
- Mass rebuild with perl-5.12.0
856134
856134
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 0.22-2
856134
- rebuild against perl 5.10.1
856134
856134
* Mon Jul 27 2009 Marcela Mašláňová <mmaslano@redhat.com> - 0.22-1
856134
- update to 0.22
856134
856134
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-5
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
856134
856134
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-4
856134
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
856134
856134
* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.21-3
856134
- rebuild for new perl
856134
856134
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.21-2.1
856134
- add BR: perl(ExtUtils::MakeMaker)
856134
856134
* Fri Aug 24 2007 Robin Norwood <rnorwood@redhat.com> - 0.21-2
856134
- Fix license tag.
856134
856134
* Sat Feb  3 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.21-1
856134
- Update to 0.21.
856134
- Corrected several changelog entries.
856134
- Removed an explicit perl(Convert::ASN1) provides.
856134
856134
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.20-1.1
856134
- rebuild
856134
856134
* Thu Mar 09 2006 Jason Vas Dias <jvdias@redhat.com> - 0.20-1
856134
- upgrade to upstream version 0.20
856134
856134
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 0.19-1.2
856134
- rebuild for new perl-5.8.8
856134
856134
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
856134
- rebuilt for new gcc
856134
856134
* Wed Apr 20 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.19-1
856134
- Update to 0.19. (#155458)
856134
- Bring up to date with current Fedora.Extras perl spec template.
856134
856134
* Wed Sep 22 2004 Chip Turner <cturner@redhat.com> 0.18-3
856134
- rebuild
856134
856134
* Wed Mar 10 2004 Chip Turner <cturner@redhat.com> - 0.18-1
856134
- Specfile autogenerated.