On Tue, 18 Dec 2007 22:00:44 +0100 "Sasa" <[EMAIL PROTECTED]> wrote:
> Hi, my spec file is this: > > Name: clamav > Version: 0.92 [big snip] > %files > %defattr(0644,root,root,0755) > %doc AUTHORS BUGS COPYING ChangeLog FAQ INSTALL NEWS README > %doc docs/*.pdf docs/html/ test/ RPM-clamav.txt > #%lang(de) %doc docs/German > %attr(0640,root,clamav) %config(noreplace) %{_sysconfdir}/freshclam.conf > %attr(0755,root,root) %{_sysconfdir}/cron.daily/freshclam > %attr(0644,root,root) %config(noreplace) > %{_sysconfdir}/logrotate.d/freshclam > %attr(0755,root,root) %{_initrddir}/freshclam > %attr(0755,root,root) %{_bindir}/* > %attr(0755,root,root) %{_libdir}/libclamav.so.* > %attr(0755,clamav,clamav) %dir %{_localstatedir}/lib/clamav/ > %attr(0755,clamav,clamav) %dir %{_localstatedir}/log/clamav/ > %attr(0755,clamav,clamav) %dir %{_localstatedir}/run/clamav/ > %attr(0640,clamav,clamav) %ghost %{_localstatedir}/log/clamav/freshclam.log > %{_mandir}/man1/* > %{_mandir}/man5/* > %files server > %attr(0644,root,clamav) %config(noreplace) %{_sysconfdir}/clamd.conf > %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/clamd > %attr(0755,root,root) %{_initrddir}/clamd > %attr(0755,root,root) %{_sbindir}/clamd > %attr(0640,clamav,clamav) %ghost %{_localstatedir}/log/clamav/clamav.log > %{_mandir}/man8/clamd.8* > # Milter > %if %{!?_without_milter:1}%{?_without_milter:0} > %files milter > %defattr(0644,root,root,0755) > %doc RPM-clamav-milter.txt > %attr(0644,root,root) %config(noreplace) > %{_sysconfdir}/sysconfig/clamav-milter > %attr(0755,root,root) %{_initrddir}/clamav-milter > %attr(0755,root,root) %{_sysconfdir}/cron.daily/clamav-milter > %attr(0755,root,root) %{_sbindir}/clamav-milter > %{_mandir}/man8/clamav-milter.8* > %attr(0700,clamav,clamav) %{_localstatedir}/spool/clamav/ > %endif > # > > %files devel > %defattr(0644,root,root,0755) > %attr(0755,root,root) %{_libdir}/libclamav.so > %attr(0755,root,root) %{_libdir}/*.a > %attr(0755,root,root) %{_libdir}/*.la > %attr(0644,root,root) %{_includedir}/*.h > %attr(0644,root,root) %{_libdir}/pkgconfig/libclamav.pc > %files db > %defattr(0644,root,root,0755) > %attr(0644,clamav,clamav) %config(noreplace) %verify(user group mode) > %{_localstatedir}/lib/clamav/main.cvd > %attr(0644,clamav,clamav) %config(noreplace) %verify(user group mode) > %{_localstatedir}/lib/clamav/daily.cvd > > ..this spec file is incorrect ?? Yes. It doesn't contain a statement to package the new shared libraries so you need to either change: %attr(0755,root,root) %{_libdir}/libclamav.so.* to: %attr(0755,root,root) %{_libdir}/libclam*.so.* or add: %attr(0755,root,root) %{_libdir}/libclamaunrar*.so.* immediately after the original statement for libclamav.so.* The latter is probably better as it shows which files are expected to be there, the former statement matches any number of potential shared libraries so probably not such a good idea. -- Brian Morrison bdm at fenrir dot org dot uk "Arguing with an engineer is like wrestling with a pig in the mud; after a while you realize you are muddy and the pig is enjoying it." GnuPG key ID DE32E5C5 - http://wwwkeys.uk.pgp.net/pgpnet/wwwkeys.html _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html