pwouters pushed to xca (epel7). "generalized db4 detection fixed x86_64 builds"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon May 18 20:58:19 UTC 2015


From 65ee262e8efc2e41a5b7f5aecbceae243ea5da55 Mon Sep 17 00:00:00 2001
From: ensc <ensc at fedoraproject.org>
Date: Sat, 21 May 2005 13:46:10 +0000
Subject: generalized db4 detection fixed x86_64 builds


diff --git a/xca.spec b/xca.spec
index f8178c8..3e63647 100644
--- a/xca.spec
+++ b/xca.spec
@@ -1,11 +1,11 @@
-## $Id: xca.spec,v 1.8 2005/04/06 22:13:53 mschwendt Exp $
+## $Id: xca.spec,v 1.9 2005/05/19 17:03:29 ensc Exp $
 
 %{!?release_func:%global release_func() %1%{?dist}}
 
 Summary:	Graphical X.509 certificate management tool
 Name:		xca
 Version:	0.5.1
-Release:	%release_func 2
+Release:	%release_func 3
 
 License:	BSD
 Group:		Applications/Productivity
@@ -36,13 +36,18 @@ PEM, DER, PKCS#8.
 %patch1 -p2 -b .gcc4
 %patch2 -p1 -b .db43
 
-sed -i 's! db_cxx-4 ! db_cxx-4 db_cxx-4.3 !g' configure
+dblibs=$(echo /usr/%_lib/libdb_cxx*.so | tac | sed -e 's!.*lib\(db[^ ]*\)\.so!\1!g')
+sed -i "s! db_cxx-4 ! ${dblibs} !g" configure
+
+mkdir -p _tmp_root/usr
+ln -s /usr/%_lib     _tmp_root/usr/lib
+ln -s /%_lib         _tmp_root/lib
 
 
 %build
 test -n "$QTDIR" || . %_sysconfdir/profile.d/qt.sh
 CC='%__cc' LD='%__ld' CFLAGS="$RPM_OPT_FLAGS" STRIP=: prefix=%_prefix \
-./configure
+./configure `pwd`/_tmp_root{,/usr}
 %__make %{?_smp_mflags}
 lrelease xca.pro
 
@@ -81,6 +86,10 @@ rm -rf "$RPM_BUILD_ROOT"
 
 
 %changelog
+* Sat May 21 2005 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.5.1-3
+- generalized db4 detection
+- fixed x86_64 builds
+
 * Thu May 19 2005 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.5.1-2
 - use %%dist instead of %%disttag
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/xca.git/commit/?h=epel7&id=65ee262e8efc2e41a5b7f5aecbceae243ea5da55


More information about the scm-commits mailing list