###############################################################################
name = libdb
-version_major = 5
-version_minor = 2
-version_patch = 36
+version_major = 6
+version_minor = 1
+version_patch = 26
version = %{version_major}.%{version_minor}.%{version_patch}
release = 2
thisapp = db-%{version}
build
requires
+ automake
chrpath
gcc-c++
libtool
perl
+ zlib-devel
end
CFLAGS += -fno-strict-aliasing
DIR_APP = %{DIR_SRC}/%{thisapp}/dist/dist-tls
prepare_cmds
- mkdir %{DIR_APP} && cd %{DIR_APP}
- ln -s ../configure .
+ for i in $(find %{DIR_SRC}/%{thisapp} -name config.guess -or -name config.sub); do
+ cp -vf %{datadir}/automake-*/config.{guess,sub} $(dirname ${i})
+ done
+
+ mkdir -pv %{DIR_APP} && cd %{DIR_APP}
+ ln -svf ../configure .
end
MACRO_FIX_LIBTOOL
package %{name}-devel
template DEVEL
+ obsoletes
+ compat-db-headers
+ end
+
+ # You cannot install libdb-devel and db4-devel
+ # at the same time.
+ conflicts
+ compat-db-headers
+ db4-devel
+ end
+
files += !%{libdir}/libdb-%{soversion}.so
files += !%{libdir}/libdb_sql-%{soversion}.so
end