###############################################################################
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 = 1
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
done
# Remove documentation which is very big.
- rm -rf %{BUILDROOT}%{datadir}/docs
+ rm -rf %{BUILDROOT}%{prefix}/docs
# Remove unversioned libs.
rm -vf %{BUILDROOT}%{libdir}/libdb*-%{version_major}.so
package %{name}-devel
template DEVEL
+ # You cannot install libdb-devel and db4-devel
+ # at the same time.
+ conflicts
+ db4-devel
+ end
+
files += !%{libdir}/libdb-%{soversion}.so
files += !%{libdir}/libdb_sql-%{soversion}.so
end