]> git.pld-linux.org Git - packages/psqlodbc.git/blob - psqlodbc.spec
- updated to 09.03.0210
[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.03.0210
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:  108bc27c0cfd5cbc5c5f9bd7bb4f7739
17 URL:            http://psqlodbc.projects.pgfoundry.org/
18 BuildRequires:  autoconf >= 2.57
19 BuildRequires:  automake >= 1:1.8
20 %{?with_iodbc:BuildRequires:    libiodbc-devel}
21 BuildRequires:  libtool
22 BuildRequires:  openssl-devel
23 BuildRequires:  postgresql-devel
24 %{!?with_iodbc:BuildRequires:   unixODBC-devel}
25 %{?with_iodbc:Requires: libiodbc}
26 Obsoletes:      postgresql-odbc
27 Obsoletes:      postgresql-odbc-devel
28 Obsoletes:      postgresql-odbc-static
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 This package includes library for interface ODBC.
33 %{?with_iodbc:This rpm uses libiODBC.}
34
35 %description -l es.UTF-8
36 Driver para acceder un servidor PostgreSQL, a través de ODBC.
37 %{?with_iodbc:This rpm uses libiODBC.}
38
39 %description -l pl.UTF-8
40 Pakiet ten zawiera biblioteki dla interfejsu ODBC.
41 %{?with_iodbc:Ten pakiet rpm używa libiODBC.}
42
43 %description -l pt_BR.UTF-8
44 Driver ODBC necessário para acessar um servidor PostgreSQL.
45 %{?with_iodbc:This rpm uses libiODBC.}
46
47 %prep
48 %setup -q
49
50 %build
51 # Note: --enable-gss and --enable-krb5 require private symbols from libpq;
52 # GSS and KRB5 auth are available anyway through libpq mechanisms
53 %{__libtoolize}
54 %{__aclocal} -I config
55 %{__autoconf}
56 %{__autoheader}
57 %{__automake}
58 %configure \
59         %{?with_iodbc:--with-iodbc} \
60         %{!?with_iodbc:--with-unixodbc}
61
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 %{__rm} $RPM_BUILD_ROOT%{_libdir}/psqlodbcw.la
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc readme.txt docs/*
81 %attr(755,root,root) %{_libdir}/psqlodbcw.so
This page took 0.090727 seconds and 3 git commands to generate.