SPECS: gld.spec - relase 2 - add bcond for postgresql (with pgsql)

abram abram at pld-linux.org
Fri Sep 1 11:10:24 CEST 2006


Author: abram                        Date: Fri Sep  1 09:10:24 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- relase 2
- add bcond for postgresql (with pgsql)

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

---- Diffs:

================================================================
Index: SPECS/gld.spec
diff -u SPECS/gld.spec:1.6 SPECS/gld.spec:1.7
--- SPECS/gld.spec:1.6	Thu May 25 09:58:03 2006
+++ SPECS/gld.spec	Fri Sep  1 11:10:18 2006
@@ -1,9 +1,13 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	pgsql	# build with support for PostgreSQL
+#
 Summary:	GLD - a standalone greylisting server for Postfix
 Summary(pl):	GLD - serwer "szarych list" dla Postfiksa
 Name:		gld
 Version:	1.7
-Release:	1
+Release:	2
 License:	GPL
 Group:		Daemons
 Source0:	http://www.gasmi.net/down/%{name}-%{version}.tgz
@@ -13,7 +17,8 @@
 Patch0:		%{name}-conf.patch
 URL:		http://www.gasmi.net/gld.html
 BuildRequires:	autoconf
-BuildRequires:	mysql-devel
+%{!?with_pgsql:BuildRequires:	mysql-devel}
+%{?with_pgsql:BuildRequires:	postgresql-devel}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,7 +40,9 @@
 
 %build
 %{__autoconf}
-%configure
+%configure \
+	%{?with_pgsql:--with-pgsql} \
+	%{!?with_pgsql:--with-mysql}
 
 %{__make}
 
@@ -90,6 +97,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2006/09/01 09:10:18  abram
+- relase 2
+- add bcond for postgresql (with pgsql)
+
 Revision 1.6  2006/05/25 07:58:03  blaass
 - up to 1.7
 
================================================================

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



More information about the pld-cvs-commit mailing list