X-Git-Url: https://git.tld-linux.org/?p=packages%2Fapr-util.git;a=blobdiff_plain;f=apr-util.spec;h=38e2fcce2feef2950a6d9817ce12fc11732a03fe;hp=cd4143626ce157f162def68edd7ee027b566fdd0;hb=2b6cdf04a20005783298e6cb9671cb94b0026d22;hpb=5014e2e7fdb7e96bef21615d85eb7e4418bc1e50 diff --git a/apr-util.spec b/apr-util.spec index cd41436..38e2fcc 100644 --- a/apr-util.spec +++ b/apr-util.spec @@ -1,6 +1,7 @@ +# NOTE: drop freetds bcond if/when upstream removes the rest of dbd-freetds code # # Conditional build: -%bcond_without freetds # without FreeTDS (sybdb) DBD module +%bcond_with freetds # without FreeTDS (sybdb) DBD module [unsupported since 1.6.0] %bcond_without mysql # without MySQL DBD module %bcond_without odbc # without ODBC DBD module %bcond_with oracle # with Oracle DBD module (BR: proprietary libs) @@ -12,50 +13,26 @@ %bcond_without openssl # without OpenSSL crypto module %bcond_without tests # don't perform "make check" -# define dbver db50 -%if 0%{!?dbver:1} - %if "%{pld_release}" == "th" - %define dbver db53 - %endif - %if "%{pld_release}" == "ac" - %define dbver db42 - %endif -%endif - -# tests fail on x32 -%ifarch x32 -%undefine with_nss -%endif - -# files list broken, feel free to really fix -%ifarch alpha -%undefine with_mysql -%endif +%define dbver db47 Summary: A companion library to Apache Portable Runtime Summary(pl.UTF-8): Biblioteka towarzysząca Apache Portable Runtime Name: apr-util -Version: 1.5.4 +Version: 1.6.1 Release: 1 Epoch: 1 License: Apache v2.0 Group: Libraries Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2 -# Source0-md5: 2202b18f269ad606d70e1864857ed93c +# Source0-md5: 8ff5dc36fa39a2a3db1df196d3ed6086 Patch0: %{name}-link.patch Patch1: %{name}-config-noldap.patch Patch2: %{name}-libtool.patch Patch3: %{name}-flags.patch URL: http://apr.apache.org/ -BuildRequires: apr-devel >= 1:1.3.0 +BuildRequires: apr-devel >= 1:1.6.0 BuildRequires: autoconf >= 2.59 -%if "%{pld_release}" == "th" BuildRequires: db-devel >= 4.7 -%endif -%if "%{pld_release}" == "ac" -BuildRequires: db-devel >= 4.2 -BuildConflicts: db4.5-devel -%endif BuildRequires: expat-devel %{?with_freetds:BuildRequires: freetds-devel} BuildRequires: libtool @@ -69,7 +46,8 @@ BuildRequires: rpm >= 4.4.9-56 %{?with_sqlite3:BuildRequires: sqlite3-devel >= 3} %{?with_odbc:BuildRequires: unixODBC-devel} BuildRequires: which -Requires: apr >= 1:1.3.0 +Requires: apr >= 1:1.6.0 +%{!?with_freetds:Obsoletes: apr-util-dbd-freetds} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _includedir /usr/include/apr-util @@ -220,7 +198,7 @@ Summary: Header files and development documentation for apr-util Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do apr-util Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} -Requires: apr-devel >= 1:1.3.0 +Requires: apr-devel >= 1:1.6.0 Requires: expat-devel %description devel @@ -248,11 +226,8 @@ Statyczna biblioteka apr-util. %patch2 -p1 %patch3 -p1 -# ensure system expat is used -%{__rm} -r xml/expat - echo ' - + prefix: %{_prefix} exec_prefix: %{_exec_prefix} bindir: %{_bindir} @@ -275,7 +250,7 @@ echo ' --with-apr=%{_datadir}/apr %configure \ - --enable-layout=PLD \ + --enable-layout=TLD \ --with-apr=%{_bindir}/apr-1-config \ --with-berkeley-db=%{_prefix} \ --with-crypto \