blob: 30ad8f92ab36ed95547cad49a4994c98ed2cdf3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--- postgresql-odbc.spec.nodsc 2012-06-05 09:30:02.138368463 +0200
+++ postgresql-odbc.spec 2012-05-21 14:21:24.485319290 +0200
@@ -1,4 +1,6 @@
-Name: postgresql-odbc
+%{?scl:%scl_package postgresql-odbc}
+
+Name: %{?scl_prefix}postgresql-odbc
Summary: PostgreSQL ODBC driver
Version: 09.01.0100
Release: 1%{?dist}
@@ -21,7 +23,7 @@ Source1: acinclude.m4
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: unixODBC-devel
-BuildRequires: libtool automake autoconf postgresql-devel
+BuildRequires: libtool automake autoconf %{?scl_prefix}postgresql-devel
BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel
# This spec file and ancillary files are licensed in accordance with
@@ -48,7 +50,7 @@ autoheader
%build
-%configure --with-unixodbc --disable-dependency-tracking
+%configure --with-unixodbc --disable-dependency-tracking --with-libpq=%{_bindir}/pg_config
make
|