From 5c58be00168e321ff703263a1291c795fe244a09 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Thu, 9 May 2013 13:15:47 +0200 Subject: [PATCH 1/2] do not build with freetds when it is not available --- apr-util.spec | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/apr-util.spec b/apr-util.spec index 8468fbe..a15e9df 100644 --- a/apr-util.spec +++ b/apr-util.spec @@ -5,12 +5,18 @@ %define dbdep libdb-devel %endif +%if 0%{?rhel} +%define with_freetds 0 +%else +%define with_freetds 1 +%endif + %define apuver 1 Summary: Apache Portable Runtime Utility library Name: apr-util Version: 1.4.1 -Release: 7%{?dist} +Release: 8%{?dist} License: ASL 2.0 Group: System Environment/Libraries URL: http://apr.apache.org/ @@ -70,6 +76,8 @@ Requires: apr-util%{?_isa} = %{version}-%{release} This package provides the SQLite driver for the apr-util DBD (database abstraction) interface. +%if %{with_freetds} + %package freetds Group: Development/Libraries Summary: APR utility library FreeTDS DBD driver @@ -80,6 +88,8 @@ Requires: apr-util%{?_isa} = %{version}-%{release} This package provides the FreeTDS driver for the apr-util DBD (database abstraction) interface. +%endif + %package odbc Group: Development/Libraries Summary: APR utility library ODBC DBD driver @@ -131,7 +141,12 @@ export ac_cv_ldap_set_rebind_proc_style=three %configure --with-apr=%{_prefix} \ --includedir=%{_includedir}/apr-%{apuver} \ --with-ldap=ldap_r --without-gdbm \ - --with-sqlite3 --with-pgsql --with-mysql --with-freetds --with-odbc \ + --with-sqlite3 --with-pgsql --with-mysql --with-odbc \ +%if %{with_freetds} + --with-freetds \ +%else + --without-freetds \ +%endif --with-berkeley-db \ --without-sqlite2 \ --with-crypto --with-openssl --with-nss @@ -196,10 +211,14 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %{_libdir}/apr-util-%{apuver}/apr_dbd_sqlite* +%if %{with_freetds} + %files freetds %defattr(-,root,root,-) %{_libdir}/apr-util-%{apuver}/apr_dbd_freetds* +%endif + %files odbc %defattr(-,root,root,-) %{_libdir}/apr-util-%{apuver}/apr_dbd_odbc* @@ -226,6 +245,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/aclocal/*.m4 %changelog +* Thu May 09 2013 Jan Kaluza - 1.4.1-8 +- do not build with freetds when it is not available + * Wed Nov 07 2012 Jan Kaluza - 1.4.1-7 - ensure we use latest libdb5 (not libdb4) From 9d0f2597637a43826ba6c71bf54f7b1bc424acae Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 2 Aug 2013 20:33:59 -0500 Subject: [PATCH 2/2] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- apr-util.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apr-util.spec b/apr-util.spec index 106d607..1cc072c 100644 --- a/apr-util.spec +++ b/apr-util.spec @@ -16,7 +16,7 @@ Summary: Apache Portable Runtime Utility library Name: apr-util Version: 1.5.2 -Release: 3%{?dist} +Release: 4%{?dist} License: ASL 2.0 Group: System Environment/Libraries URL: http://apr.apache.org/ @@ -247,6 +247,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/aclocal/*.m4 %changelog +* Sat Aug 03 2013 Fedora Release Engineering - 1.5.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Thu May 09 2013 Jan Kaluza - 1.5.2-3 - do not build with freetds when it is not available