From 0aa5d0e9af5abe320e03f8b9f367f904cf40d2cd Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Wed, 25 Aug 2004 17:05:16 +0000 Subject: [PATCH 1/1] - fix libtool, -avoid-version to get proper soname Changed files: apache-mod_clamav.spec -> 1.7 --- apache-mod_clamav.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apache-mod_clamav.spec b/apache-mod_clamav.spec index d7fbf16..34a4b46 100644 --- a/apache-mod_clamav.spec +++ b/apache-mod_clamav.spec @@ -18,9 +18,8 @@ BuildRequires: apr-devel BuildRequires: apr-util-devel BuildRequires: autoconf BuildRequires: automake -BuildRequires: bzip2-devel BuildRequires: clamav-devel -BuildRequires: gmp-devel +BuildRequires: libtool Requires: apache >= 2 Requires: apache-mod_proxy Requires: clamav @@ -44,14 +43,15 @@ skanera antywirusowego Clamav. %setup -q -n mod_%{mod_name}-%{version} %patch0 -p0 +%{__perl} -pi -e 's/(-module)/$1 -avoid-version/' Makefile.am + %build +%{__libtoolize} %{__aclocal} %{__autoconf} %{__automake} CPPFLAGS="-I `/usr/bin/apr-config --includedir` -I `/usr/bin/apu-config --includedir`" -export CPPFLAGS - %configure \ --with-apxs=%{apxs} @@ -61,7 +61,7 @@ export CPPFLAGS rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf} -install .libs/mod_%{mod_name}.0.0.0 $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so +install .libs/mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so CFG="$RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf" install %{SOURCE1} ${CFG}/32_mod_clamav.conf -- 2.44.0