Accepting request 521576 from home:jengelh:branches:security
- Implement shared library guideline. +Change that old %makeinstall to modern %make_install OBS-URL: https://build.opensuse.org/request/show/521576 OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=147
This commit is contained in:
parent
aff26ed73c
commit
cb4029f851
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 5 23:30:39 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Implement shared library guideline.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 21 13:41:14 UTC 2017 - fvogt@suse.com
|
Mon Aug 21 13:41:14 UTC 2017 - fvogt@suse.com
|
||||||
|
|
||||||
|
38
clamav.spec
38
clamav.spec
@ -73,6 +73,26 @@ provides numerous file format detection mechanisms, file unpacking
|
|||||||
support, archive support, and multiple signature languages for
|
support, archive support, and multiple signature languages for
|
||||||
detecting threats.
|
detecting threats.
|
||||||
|
|
||||||
|
%package -n libclamav7
|
||||||
|
Summary: ClamAV antivirus engine runtime
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libclamav7
|
||||||
|
ClamAV is an antivirus engine designed for detecting trojans,
|
||||||
|
viruses, malware and other malicious threats.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for libclamav, an antivirus engine
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: libclamav7 = %version
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
ClamAV is an antivirus engine designed for detecting trojans,
|
||||||
|
viruses, malware and other malicious threats.
|
||||||
|
|
||||||
|
This subpackage contains header files for developing applications
|
||||||
|
that want to make use of libclamav.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
@ -106,7 +126,7 @@ CFLAGS="$CFLAGS -DFP_64BIT"
|
|||||||
make V=1 %{?_smp_mflags}
|
make V=1 %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%makeinstall
|
%make_install
|
||||||
install -d -m755 %buildroot/var/lib/clamav
|
install -d -m755 %buildroot/var/lib/clamav
|
||||||
install -d -m755 %buildroot/%_tmpfilesdir
|
install -d -m755 %buildroot/%_tmpfilesdir
|
||||||
install -m644 %{S:6} %buildroot%_tmpfilesdir/clamav.conf
|
install -m644 %{S:6} %buildroot%_tmpfilesdir/clamav.conf
|
||||||
@ -144,6 +164,9 @@ done
|
|||||||
VALGRIND_GENSUP=1 make check
|
VALGRIND_GENSUP=1 make check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%post -n libclamav7 -p /sbin/ldconfig
|
||||||
|
%postun -n libclamav7 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config(noreplace) %_sysconfdir/*.conf
|
%config(noreplace) %_sysconfdir/*.conf
|
||||||
@ -157,14 +180,21 @@ VALGRIND_GENSUP=1 make check
|
|||||||
%doc %_mandir/*/*
|
%doc %_mandir/*/*
|
||||||
%_bindir/*
|
%_bindir/*
|
||||||
%_sbindir/*
|
%_sbindir/*
|
||||||
%_includedir/*
|
|
||||||
%_libdir/lib*
|
|
||||||
%_libdir/pkgconfig/libclamav.pc
|
%_libdir/pkgconfig/libclamav.pc
|
||||||
%defattr(-,vscan,vscan)
|
%defattr(-,vscan,vscan)
|
||||||
%dir %attr(750,vscan,vscan) /var/spool/amavis
|
%dir %attr(750,vscan,vscan) /var/spool/amavis
|
||||||
%dir /var/lib/clamav
|
%dir /var/lib/clamav
|
||||||
%ghost %attr(755,vscan,vscan) /run/clamav
|
%ghost %attr(755,vscan,vscan) /run/clamav
|
||||||
|
|
||||||
|
%files -n libclamav7
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%_libdir/libclam*.so.7*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%_libdir/libclam*.so
|
||||||
|
%_includedir/*
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group vscan >/dev/null || %_sbindir/groupadd -r vscan || :
|
getent group vscan >/dev/null || %_sbindir/groupadd -r vscan || :
|
||||||
getent passwd vscan >/dev/null || \
|
getent passwd vscan >/dev/null || \
|
||||||
@ -174,7 +204,6 @@ getent passwd vscan >/dev/null || \
|
|||||||
%service_add_pre clamd.service freshclam.service clamav-milter.service
|
%service_add_pre clamd.service freshclam.service clamav-milter.service
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
|
||||||
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
|
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
|
||||||
%service_add_post clamd.service freshclam.service clamav-milter.service
|
%service_add_post clamd.service freshclam.service clamav-milter.service
|
||||||
|
|
||||||
@ -182,7 +211,6 @@ systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
|
|||||||
%service_del_preun clamd.service freshclam.service clamav-milter.service
|
%service_del_preun clamd.service freshclam.service clamav-milter.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
|
||||||
%service_del_postun clamd.service freshclam.service clamav-milter.service
|
%service_del_postun clamd.service freshclam.service clamav-milter.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user