[perl-DB_File] Import

Petr Pisar ppisar at fedoraproject.org
Fri Mar 22 13:07:40 UTC 2013


commit acb1f0239813c2ca7bdd2fdfd9fa77438b2c6f95
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Mar 22 14:07:13 2013 +0100

    Import

 .gitignore                              |    1 +
 DB_File-1.824-respect_installdirs.patch |   26 +++++++++++
 perl-DB_File.spec                       |   74 +++++++++++++++++++++++++++++++
 sources                                 |    1 +
 4 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..328ed54 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/DB_File-1.827.tar.gz
diff --git a/DB_File-1.824-respect_installdirs.patch b/DB_File-1.824-respect_installdirs.patch
new file mode 100644
index 0000000..faf0079
--- /dev/null
+++ b/DB_File-1.824-respect_installdirs.patch
@@ -0,0 +1,26 @@
+commit 95115572e8e7941b8db887f5eceb0a18a4d10fa9
+Author: Todd Rinaldo <toddr at cpan.org>
+Date:   Wed May 18 09:18:04 2011 -0500
+
+    Remove INSTALLDIRS from macro in Makefile.PL so site override works
+
+diff --git a/Makefile.PL b/Makefile.PL
+index a586a04..c05b552 100644
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -60,13 +60,12 @@ WriteMakefile(
+             AUTHOR       => 'Paul Marquess <pmqs at cpan.org>')
+         : ()
+     ),
+-    
+-
++    ($] < 5.008 || $] > 5.011) ? (INSTALLDIRS => 'site') : ( INSTALLDIRS => 'perl' ),
+ 	#OPTIMIZE	=> '-g',
+ 	'depend'	=> { 'Makefile'          => 'config.in',
+                              'version$(OBJ_EXT)' => 'version.c'},
+ 	'clean'		=> { FILES => 'constants.h constants.xs' },
+-	'macro'		=> { INSTALLDIRS => 'perl', my_files => "@files" },
++	'macro'		=> { my_files => "@files" },
+         'dist'          => { COMPRESS => 'gzip', SUFFIX => 'gz',
+ 			     DIST_DEFAULT => 'MyDoubleCheck tardist'},    
+ 	);
diff --git a/perl-DB_File.spec b/perl-DB_File.spec
new file mode 100644
index 0000000..0841fee
--- /dev/null
+++ b/perl-DB_File.spec
@@ -0,0 +1,74 @@
+Name:           perl-DB_File
+Version:        1.827
+Release:        1%{?dist}
+Summary:        Perl5 access to Berkeley DB version 1.x
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/DB_File/
+Source0:        http://www.cpan.org/authors/id/P/PM/PMQS/DB_File-%{version}.tar.gz
+# Install files into INSTALLDIR perl directory, CPAN RT#70420
+Patch0:         DB_File-1.824-respect_installdirs.patch
+BuildRequires:  libdb-devel
+BuildRequires:  perl
+BuildRequires:  perl(Config)
+BuildRequires:  perl(ExtUtils::Constant)
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 5.16
+# File::Copy not needed if ExtUtils::Constant is available
+BuildRequires:  perl(strict)
+# Run-time:
+BuildRequires:  perl(AutoLoader)
+BuildRequires:  perl(Carp)
+# DynaLoader not needed if XSLoader is available
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(Fcntl)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Tie::Hash)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XSLoader)
+# Tests:
+BuildRequires:  perl(Symbol)
+%if !%{defined perl_bootstrap}
+# Optional tests:
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod) >= 1.00
+%endif
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Fcntl)
+Requires:       perl(XSLoader)
+
+%{?perl_default_filter}
+
+%description
+DB_File is a module which allows Perl programs to make use of the facilities
+provided by Berkeley DB version 1.x (if you have a newer version of DB, you
+will be limited to functionality provided by interface of version 1.x). The
+interface defined here mirrors the Berkeley DB interface closely.
+
+%prep
+%setup -q -n DB_File-%{version}
+%patch0 -p1
+find -type f -exec chmod -x {} +
+%fix_shbang_line dbinfo
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes dbinfo README
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/DB_File*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Mar 21 2013 Petr Pisar <ppisar at redhat.com> 1.827-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..cf6fc07 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ba76d23ccbcae48b612572ae57376e28  DB_File-1.827.tar.gz



More information about the perl-devel mailing list