David Dick 1951b4b
Name:           perl-Parse-DMIDecode
David Dick 1951b4b
Version:        0.03
38cce33
Release:        6%{?dist}
David Dick 1951b4b
Summary:        Interface to SMBIOS using dmidecode
David Dick 1951b4b
License:        ASL 2.0
David Dick 1951b4b
Group:          Development/Libraries
David Dick 1951b4b
URL:            http://search.cpan.org/dist/Parse-DMIDecode/
David Dick 1951b4b
Source0:        http://www.cpan.org/modules/by-module/Parse/Parse-DMIDecode-%{version}.tar.gz
David Dick 1951b4b
# Pod fixing patch from RT 52296 -> https://rt.cpan.org/Ticket/Attachment/699959/360879/fix-pod-urls.patch
David Dick 1951b4b
Patch1:         fix-pod-urls.patch
38cce33
# Fix a memory leak when destructing Parse::DMIDecode::Handle objects,
38cce33
# CPAN RT#125088
38cce33
Patch2:         Parse-DMIDecode-0.03-handle_leak.patch
e79662f
# Fix supressing portability warnings, CPAN RT#143252, proposed to the upstream
e79662f
Patch3:         Parse-DMIDecode-0.03-Disable-portability-warnings-lexically.patch
cc22fb9
# Do not warn on SMBIOS version 3, bug #1661251, CPAN RT#54956, proposed to
cc22fb9
# the upstream
cc22fb9
Patch4:         Parse-DMIDecode-0.03-Emulate-number-of-structures-if-not-reported-by-dmid.patch
David Dick 1951b4b
# This mirrors the ExclusiveArch in the dmidecode spec file
8b592b8
ExclusiveArch:  %{ix86} x86_64 ia64 aarch64
David Dick 1951b4b
BuildRequires:  dmidecode
David Dick 1951b4b
BuildRequires:  perl
David Dick 1951b4b
BuildRequires:  perl(Carp)
David Dick 1951b4b
BuildRequires:  perl(Data::Dumper)
David Dick 1951b4b
BuildRequires:  perl(Exporter)
David Dick 1951b4b
BuildRequires:  perl(File::Which) >= 0.05
David Dick 1951b4b
BuildRequires:  perl(lib)
David Dick 1951b4b
BuildRequires:  perl(Module::Build)
David Dick 1951b4b
BuildRequires:  perl(strict)
David Dick 1951b4b
BuildRequires:  perl(Test::More)
David Dick 1951b4b
BuildRequires:  perl(Test::Pod) >= 1.2
David Dick 1951b4b
BuildRequires:  perl(Test::Pod::Coverage) >= 1.06
David Dick 1951b4b
BuildRequires:  perl(vars)
David Dick 1951b4b
BuildRequires:  perl(warnings)
David Dick 1951b4b
Requires:       dmidecode
David Dick 1951b4b
Requires:       perl(File::Which) >= 0.05
David Dick 1951b4b
Requires:       perl(Data::Dumper)
David Dick 1951b4b
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
David Dick 1951b4b
David Dick 1951b4b
%description
David Dick 1951b4b
This module provides an OO interface to SMBIOS information through the
David Dick 1951b4b
dmidecode command which is known to work under a number of Linux, BSD and
David Dick 1951b4b
BeOS variants.
David Dick 1951b4b
David Dick 1951b4b
%prep
e79662f
%autosetup -p1 -n Parse-DMIDecode-%{version}
David Dick 1951b4b
David Dick 1951b4b
%build
David Dick 1951b4b
# a debug package is not required as there are no binaries in this package
David Dick 1951b4b
%define debug_package %{nil}
David Dick 1951b4b
AUTOMATED_TESTING=1 %{__perl} Build.PL installdirs=vendor
David Dick 1951b4b
./Build
David Dick 1951b4b
David Dick 1951b4b
%install
David Dick 1951b4b
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
David Dick 1951b4b
David Dick 1951b4b
%{_fixperms} $RPM_BUILD_ROOT/*
David Dick 1951b4b
David Dick 1951b4b
%check
David Dick 1951b4b
./Build test
David Dick 1951b4b
David Dick 1951b4b
%files
David Dick 1951b4b
%doc Changes LICENSE NOTICE README TODO examples
David Dick 1951b4b
%{perl_vendorlib}/*
David Dick 1951b4b
%{_mandir}/man3/*
David Dick 1951b4b
David Dick 1951b4b
%changelog
38cce33
* Mon Jun 13 2022 Petr Pisar <ppisar@redhat.com> - 0.03-6
38cce33
- Fix a memory leak when destructing Parse::DMIDecode::Handle objects
38cce33
  (CPAN RT#125088)
e79662f
- Fix supressing portability warnings (CPAN RT#143252)
cc22fb9
- Do not warn on SMBIOS version 3 (bug #1661251)
38cce33
8b592b8
* Sat Oct 25 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.03-5
8b592b8
- dmidecode supported on aarch64
8b592b8
cb08fd6
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.03-4
cb08fd6
- Perl 5.20 rebuild
cb08fd6
7ac09a5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-3
7ac09a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
7ac09a5
aad2239
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.03-2
aad2239
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aad2239
David Dick 1951b4b
* Wed Apr 23 2014 David Dick <ddick@cpan.org> - 0.03-1
David Dick 1951b4b
- Initial release