rebase: new upstream version
- upstream commit e85fbb24 removed openssl requirement - upstream commit ebac6d25 fixed testsuite, no need to hack the odbc.ini/odbcinst.ini files during build - removed other BRs which do not seem to be needed nowadays Version: 09.05.0100-1
This commit is contained in:
parent
fddc887893
commit
d975a90b5e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/psqlodbc-09.03.0400.tar.gz
|
||||
/psqlodbc-09.05.0100.tar.gz
|
||||
|
@ -1,16 +1,14 @@
|
||||
Name: postgresql-odbc
|
||||
Summary: PostgreSQL ODBC driver
|
||||
Version: 09.03.0400
|
||||
Release: 4%{?dist}
|
||||
Version: 09.05.0100
|
||||
Release: 1%{?dist}
|
||||
License: LGPLv2+
|
||||
Group: Applications/Databases
|
||||
URL: http://psqlodbc.projects.postgresql.org/
|
||||
|
||||
Source0: http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz
|
||||
|
||||
BuildRequires: unixODBC-devel
|
||||
BuildRequires: libtool automake autoconf postgresql-devel
|
||||
BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel
|
||||
BuildRequires: unixODBC-devel postgresql-devel
|
||||
|
||||
# This spec file and ancillary files are licensed in accordance with
|
||||
# the psqlodbc license.
|
||||
@ -38,17 +36,6 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
||||
%global testsuitedir %{_libdir}/%{name}
|
||||
install -d -m 755 $RPM_BUILD_ROOT/%{testsuitedir}
|
||||
cp -R test $RPM_BUILD_ROOT/%{testsuitedir}
|
||||
( cd $RPM_BUILD_ROOT/%{testsuitedir}/test
|
||||
sed -i \
|
||||
-e "s|^[Uu]sername.*|Username = postgres|" \
|
||||
-e "s|^[Pp]assword.*|Password =|" \
|
||||
-e "s|^[Pp]rotocol.*|Protocol = 7.4|" \
|
||||
-e "s|^[Ss]erver[Nn]ame.*|Servername = /var/run/postgresql/|" \
|
||||
odbc.ini
|
||||
sed -i \
|
||||
-e "s|^[Dd]river.*|Driver = %{_libdir}/psqlodbcw.so|" \
|
||||
odbcinst.ini
|
||||
)
|
||||
|
||||
# Provide the old library name "psqlodbc.so" as a symlink,
|
||||
# and remove the rather useless .la file
|
||||
@ -57,6 +44,7 @@ pushd ${RPM_BUILD_ROOT}%{_libdir}
|
||||
rm psqlodbcw.la
|
||||
popd
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
@ -72,18 +60,25 @@ Requires: gcc make unixODBC-devel
|
||||
The postgresql-odbc-tests package contains files needed for various tests for
|
||||
the PostgreSQL unixODBC driver.
|
||||
|
||||
|
||||
%files
|
||||
%{_libdir}/psqlodbcw.so
|
||||
%{_libdir}/psqlodbc.so
|
||||
%doc license.txt readme.txt docs/* README.rpmdist
|
||||
|
||||
|
||||
%files tests
|
||||
%doc license.txt
|
||||
%dir %{testsuitedir}
|
||||
%defattr(-,postgres,postgres)
|
||||
%{testsuitedir}/test
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jan 11 2016 Pavel Raiskup <praiskup@redhat.com> - 09.05.0100-1
|
||||
- rebase to latest upstream version, per release notes:
|
||||
http://psqlodbc.projects.pgfoundry.org/docs/release.html
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 09.03.0400-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user