SPECS: opendbx.spec - enable firebird where avaliable

tommat tommat at pld-linux.org
Mon Apr 7 11:41:50 CEST 2008


Author: tommat                       Date: Mon Apr  7 09:41:50 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- enable firebird where avaliable

---- Files affected:
SPECS:
   opendbx.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/opendbx.spec
diff -u SPECS/opendbx.spec:1.6 SPECS/opendbx.spec:1.7
--- SPECS/opendbx.spec:1.6	Mon Dec 24 01:33:08 2007
+++ SPECS/opendbx.spec	Mon Apr  7 11:41:45 2008
@@ -1,5 +1,12 @@
 # $Revision$, $Date$
-Summary:	Extensible database access library
+#
+# Conditional build:
+%bcond_without	ibase		# don't build ibase (InterBase/Firebird) backend
+
+%ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
+%undefine	with_ibase
+%endif
+
 Summary(pl.UTF-8):	Rozszerzana biblioteka dostępu do baz danych
 Name:		opendbx
 Version:	1.2.3
@@ -9,7 +16,7 @@
 Source0:	http://linuxnetworks.de/opendbx/download/%{name}-%{version}.tar.gz
 # Source0-md5:	7700924e9400ae5e19758d947b01b789
 URL:		http://www.linuxnetworks.de/doc/index.php/OpenDBX
-BuildRequires:	Firebird-devel
+%{?with_ibase:BuildRequires:	Firebird-devel}
 BuildRequires:	freetds-devel
 BuildRequires:	mysql-devel
 BuildRequires:	postgresql-devel
@@ -148,7 +155,7 @@
 %build
 CPPFLAGS="-I/usr/include/mysql"; export CPPFLAGS
 %configure \
-	--with-backends="firebird mssql mysql pgsql sqlite sqlite3 sybase"
+	--with-backends="%{?with_ibase:firebird} mssql mysql pgsql sqlite sqlite3 sybase"
 %{__make}
 
 %install
@@ -184,10 +191,12 @@
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
+%if %{with ibase}
 %files backend-firebird
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/libfirebird*.so.*
 %{_libdir}/%{name}/libfirebird*.la
+%endif
 
 %files backend-mssql
 %defattr(644,root,root,755)
@@ -225,6 +234,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2008-04-07 09:41:45  tommat
+- enable firebird where avaliable
+
 Revision 1.6  2007-12-24 00:33:08  glen
 - rel 3 (libmysqlclient)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/opendbx.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list