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
|
Name: postgresql-odbc
|
||||||
Summary: PostgreSQL ODBC driver
|
Summary: PostgreSQL ODBC driver
|
||||||
Version: 09.03.0400
|
Version: 09.05.0100
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
URL: http://psqlodbc.projects.postgresql.org/
|
URL: http://psqlodbc.projects.postgresql.org/
|
||||||
|
|
||||||
Source0: http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz
|
Source0: http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: unixODBC-devel
|
BuildRequires: unixODBC-devel postgresql-devel
|
||||||
BuildRequires: libtool automake autoconf postgresql-devel
|
|
||||||
BuildRequires: openssl-devel krb5-devel pam-devel zlib-devel readline-devel
|
|
||||||
|
|
||||||
# This spec file and ancillary files are licensed in accordance with
|
# This spec file and ancillary files are licensed in accordance with
|
||||||
# the psqlodbc license.
|
# the psqlodbc license.
|
||||||
@ -38,17 +36,6 @@ make DESTDIR=$RPM_BUILD_ROOT install
|
|||||||
%global testsuitedir %{_libdir}/%{name}
|
%global testsuitedir %{_libdir}/%{name}
|
||||||
install -d -m 755 $RPM_BUILD_ROOT/%{testsuitedir}
|
install -d -m 755 $RPM_BUILD_ROOT/%{testsuitedir}
|
||||||
cp -R test $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,
|
# Provide the old library name "psqlodbc.so" as a symlink,
|
||||||
# and remove the rather useless .la file
|
# and remove the rather useless .la file
|
||||||
@ -57,6 +44,7 @@ pushd ${RPM_BUILD_ROOT}%{_libdir}
|
|||||||
rm psqlodbcw.la
|
rm psqlodbcw.la
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -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-odbc-tests package contains files needed for various tests for
|
||||||
the PostgreSQL unixODBC driver.
|
the PostgreSQL unixODBC driver.
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_libdir}/psqlodbcw.so
|
%{_libdir}/psqlodbcw.so
|
||||||
%{_libdir}/psqlodbc.so
|
%{_libdir}/psqlodbc.so
|
||||||
%doc license.txt readme.txt docs/* README.rpmdist
|
%doc license.txt readme.txt docs/* README.rpmdist
|
||||||
|
|
||||||
|
|
||||||
%files tests
|
%files tests
|
||||||
%doc license.txt
|
%doc license.txt
|
||||||
%dir %{testsuitedir}
|
%dir %{testsuitedir}
|
||||||
%defattr(-,postgres,postgres)
|
%defattr(-,postgres,postgres)
|
||||||
%{testsuitedir}/test
|
%{testsuitedir}/test
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user