[packages/perl-DBD-Sybase] - removed non-working s/// hackery - fixed build on x32 - rel 6
baggins
baggins at pld-linux.org
Mon Apr 6 12:15:38 CEST 2015
commit 13e30775a3887b1c7bdf3061112c0e6ff0ac3a51
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Apr 6 10:15:05 2015 +0000
- removed non-working s/// hackery
- fixed build on x32
- rel 6
perl-DBD-Sybase.spec | 6 +++---
x32.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/perl-DBD-Sybase.spec b/perl-DBD-Sybase.spec
index 964215d..e42ed13 100644
--- a/perl-DBD-Sybase.spec
+++ b/perl-DBD-Sybase.spec
@@ -5,12 +5,13 @@ Summary: DBD::Sybase - Sybase database driver for the DBI module
Summary(pl.UTF-8): DBD::Sybase - sterownik DBI do bazy danych Sybase
Name: perl-DBD-Sybase
Version: 1.14
-Release: 5
+Release: 6
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: db6662d710b3adffe37bd8aec8060eda
+Patch0: x32.patch
URL: http://search.cpan.org/dist/DBD-Sybase/
BuildRequires: freetds-devel
BuildRequires: perl-DBI >= 1.00
@@ -31,8 +32,7 @@ Uniksa/Linuksa do serwerów bazodanowych MS-SQL 7 lub 2000.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
-
-%{__perl} -pi -e 's@/lib([ "])@/%{_lib}$1 at g' Makefile.PL
+%patch0 -p1
%build
SYBASE=/usr ; export SYBASE
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..b6d2450
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,11 @@
+--- DBD-Sybase-1.14/Makefile.PL~ 2015-04-06 10:12:39.000000000 +0000
++++ DBD-Sybase-1.14/Makefile.PL 2015-04-06 10:13:23.243985039 +0000
+@@ -134,7 +134,7 @@
+
+ my $libfound = 0;
+ my $libsub = '';
+- foreach $libdir ( 'lib', 'lib64' ) {
++ foreach $libdir ( 'lib', 'lib64', 'libx32' ) {
+ if ( -d "$SYBASE/$libdir" ) {
+ if ( checkLib($SYBASE) ) {
+ $libfound = 1;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-DBD-Sybase.git/commitdiff/13e30775a3887b1c7bdf3061112c0e6ff0ac3a51
More information about the pld-cvs-commit
mailing list