]> git.pld-linux.org Git - packages/psqlodbc.git/blob - psqlodbc.spec
- updated to 09.05.0400
[packages/psqlodbc.git] / psqlodbc.spec
1 #
2 # Conditional build:
3 %bcond_with     iodbc           # use iodbc instead of unix-odbc
4 #
5 Summary:        ODBC interface to PostgreSQL
6 Summary(es.UTF-8):      Driver ODBC para acceder un servidor PostgreSQL
7 Summary(pl.UTF-8):      Interfejs ODBC do PostgreSQL
8 Summary(pt_BR.UTF-8):   Driver ODBC necessário para acessar um servidor PostgreSQL
9 Summary(zh_CN.UTF-8):   用 ODBC 访问 一个 PostgreSQL 数据库的 ODBC 驱动
10 Name:           psqlodbc
11 Version:        09.05.0400
12 Release:        1
13 License:        LGPL v2+
14 Group:          Libraries
15 Source0:        ftp://ftp.postgresql.org/pub/odbc/versions/src/%{name}-%{version}.tar.gz
16 # Source0-md5:  86fc481acc2b58e3b780f6fef8e76f1a
17 URL:            http://psqlodbc.projects.pgfoundry.org/
18 BuildRequires:  autoconf >= 2.57
19 BuildRequires:  automake >= 1:1.8
20 %{?with_iodbc:BuildRequires:    libiodbc-devel >= 3.51}
21 BuildRequires:  libtool
22 BuildRequires:  openssl-devel
23 BuildRequires:  postgresql-devel >= 9.2
24 %{!?with_iodbc:BuildRequires:   unixODBC-devel}
25 %{?with_iodbc:Requires: libiodbc >= 3.51}
26 Requires:       postgresql-libs >= 9.2
27 # servers < 7.4 are no longer supported
28 Conflicts:      postgresql < 7.4
29 Obsoletes:      postgresql-odbc
30 Obsoletes:      postgresql-odbc-devel
31 Obsoletes:      postgresql-odbc-static
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 This package includes library for interface ODBC.
36 %{?with_iodbc:This rpm uses libiODBC.}
37
38 %description -l es.UTF-8
39 Driver para acceder un servidor PostgreSQL, a través de ODBC.
40 %{?with_iodbc:This rpm uses libiODBC.}
41
42 %description -l pl.UTF-8
43 Pakiet ten zawiera biblioteki dla interfejsu ODBC.
44 %{?with_iodbc:Ten pakiet rpm używa libiODBC.}
45
46 %description -l pt_BR.UTF-8
47 Driver ODBC necessário para acessar um servidor PostgreSQL.
48 %{?with_iodbc:This rpm uses libiODBC.}
49
50 %prep
51 %setup -q
52
53 %build
54 # Note: --enable-gss and --enable-krb5 require private symbols from libpq;
55 # GSS and KRB5 auth are available anyway through libpq mechanisms
56 %{__libtoolize}
57 %{__aclocal} -I config
58 %{__autoconf}
59 %{__autoheader}
60 %{__automake}
61 %configure \
62         %{?with_iodbc:--with-iodbc} \
63         %{!?with_iodbc:--with-unixodbc}
64
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %{__rm} $RPM_BUILD_ROOT%{_libdir}/psqlodbcw.la
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %files
82 %defattr(644,root,root,755)
83 %doc readme.txt docs/*
84 %attr(755,root,root) %{_libdir}/psqlodbcw.so
This page took 0.069955 seconds and 3 git commands to generate.