remove odbc lib to prevent rpm errors about unpackaged files (patch 1151783)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-03-21 22:46:37 +00:00
parent 43499aa4a1
commit f5b3b37ede

View File

@ -23,7 +23,7 @@
%if %{unicode} %if %{unicode}
%define name wx-%{portname}-unicode %define name wx-%{portname}-unicode
%define wxbasename wx-base-unicode %define wxbasename wx-base-unicode
%else %else
%define name wx-%{portname} %define name wx-%{portname}
%define wxbasename wx-base %define wxbasename wx-base
%endif %endif
@ -312,6 +312,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libwx_base*
rm -f $RPM_BUILD_ROOT%{_libdir}/libwxregexu-%{ver2}.a rm -f $RPM_BUILD_ROOT%{_libdir}/libwxregexu-%{ver2}.a
rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/* rm -f $RPM_BUILD_ROOT%{_datadir}/aclocal/*
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/* rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*/*/*
%if !%{unicode}
rm -f $RPM_BUILD_ROOT%{_libdir}/libwxodbc-2.5.a
%endif
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -333,7 +336,7 @@ rm -rf $RPM_BUILD_ROOT
ln -sf %{_libdir}/wx/config/%{wxconfigname} %{_bindir}/wx-config ln -sf %{_libdir}/wx/config/%{wxconfigname} %{_bindir}/wx-config
# link wx-config with explicit name. # link wx-config with explicit name.
ln -sf %{_libdir}/wx/config/%{wxconfigname} %{_bindir}/%{wxconfiglinkname} ln -sf %{_libdir}/wx/config/%{wxconfigname} %{_bindir}/%{wxconfiglinkname}
%preun devel %preun devel
if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
SUM1=`md5sum %{_libdir}/wx/config/%{wxconfigname} | cut -c 0-32` SUM1=`md5sum %{_libdir}/wx/config/%{wxconfigname} | cut -c 0-32`
@ -342,7 +345,7 @@ if test -f %{_bindir}/wx-config -a -f /usr/bin/md5sum ; then
rm -f %{_bindir}/wx-config rm -f %{_bindir}/wx-config
fi fi
fi fi
rm -f %{_bindir}/%{wxconfiglinkname} rm -f %{_bindir}/%{wxconfiglinkname}
%files %files