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