[perl-Parse-DMIDecode] Initial import (#1091144).

David Dick ddick at fedoraproject.org
Mon May 12 12:03:34 UTC 2014


commit 1951b4b02a5de4cd14906f30b55dbd00def13d7b
Author: David Dick <ddick at cpan.org>
Date:   Mon May 12 22:03:18 2014 +1000

    Initial import (#1091144).

 .gitignore                |    1 +
 fix-pod-urls.patch        |   45 ++++++++++++++++++++++++++++++++
 perl-Parse-DMIDecode.spec |   62 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 4 files changed, 109 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6a40447 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Parse-DMIDecode-0.03.tar.gz
diff --git a/fix-pod-urls.patch b/fix-pod-urls.patch
new file mode 100644
index 0000000..64ccd1f
--- /dev/null
+++ b/fix-pod-urls.patch
@@ -0,0 +1,45 @@
+--- a/lib/Parse/DMIDecode.pm
++++ b/lib/Parse/DMIDecode.pm
+@@ -466,9 +466,9 @@
+ L<http://perlgirl.org.uk>
+ 
+ If you like this software, why not show your appreciation by sending the
+-author something nice from her
+-L<Amazon wishlist|http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>? 
+-( http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority )
++author something nice from her Amazon wishlist ?
++
++L<http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>
+ 
+ =head1 COPYRIGHT
+ 
+--- a/lib/Parse/DMIDecode/Constants.pm
++++ b/lib/Parse/DMIDecode/Constants.pm
+@@ -139,9 +139,9 @@
+ L<http://perlgirl.org.uk>
+ 
+ If you like this software, why not show your appreciation by sending the
+-author something nice from her
+-L<Amazon wishlist|http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>? 
+-( http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority )
++author something nice from her Amazon wishlist ?
++
++L<http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>
+ 
+ =head1 COPYRIGHT
+ 
+--- a/lib/Parse/DMIDecode/Handle.pm
++++ b/lib/Parse/DMIDecode/Handle.pm
+@@ -420,9 +420,9 @@
+ L<http://perlgirl.org.uk>
+ 
+ If you like this software, why not show your appreciation by sending the
+-author something nice from her
+-L<Amazon wishlist|http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>? 
+-( http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority )
++author something nice from her Amazon wishlist ?
++
++L<http://www.amazon.co.uk/gp/registry/1VZXC59ESWYK0?sort=priority>
+ 
+ =head1 COPYRIGHT
+ 
diff --git a/perl-Parse-DMIDecode.spec b/perl-Parse-DMIDecode.spec
new file mode 100644
index 0000000..40136be
--- /dev/null
+++ b/perl-Parse-DMIDecode.spec
@@ -0,0 +1,62 @@
+Name:           perl-Parse-DMIDecode
+Version:        0.03
+Release:        1%{?dist}
+Summary:        Interface to SMBIOS using dmidecode
+License:        ASL 2.0
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Parse-DMIDecode/
+Source0:        http://www.cpan.org/modules/by-module/Parse/Parse-DMIDecode-%{version}.tar.gz
+# Pod fixing patch from RT 52296 -> https://rt.cpan.org/Ticket/Attachment/699959/360879/fix-pod-urls.patch
+Patch1:         fix-pod-urls.patch
+# This mirrors the ExclusiveArch in the dmidecode spec file
+ExclusiveArch:  %{ix86} x86_64 ia64
+BuildRequires:  dmidecode
+BuildRequires:  perl
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Which) >= 0.05
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod) >= 1.2
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.06
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings)
+Requires:       dmidecode
+Requires:       perl(File::Which) >= 0.05
+Requires:       perl(Data::Dumper)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%description
+This module provides an OO interface to SMBIOS information through the
+dmidecode command which is known to work under a number of Linux, BSD and
+BeOS variants.
+
+%prep
+%setup -q -n Parse-DMIDecode-%{version}
+%patch1 -p1
+
+%build
+# a debug package is not required as there are no binaries in this package
+%define debug_package %{nil}
+AUTOMATED_TESTING=1 %{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes LICENSE NOTICE README TODO examples
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed Apr 23 2014 David Dick <ddick at cpan.org> - 0.03-1
+- Initial release
diff --git a/sources b/sources
index e69de29..6a8f183 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5e709625ee53a9672ac75ed9b2fffd7b  Parse-DMIDecode-0.03.tar.gz


More information about the scm-commits mailing list