]>
Commit | Line | Data |
---|---|---|
c935072a | 1 | # TODO: |
2d42b9d9 | 2 | # - verify why system tomsfastmath lib fails to check integrity of database after update (as of 2021-11-17) |
c8321415 | 3 | # - Make freshclam package (script and daemon) |
d06ef0ed | 4 | # - restart amavis in triggers if group membership was modified? |
eba74cc1 | 5 | # |
6 | # Conditional build: | |
d1044716 | 7 | %bcond_without milter # milter interface subpackage |
da430249 | 8 | %if "%{pld_release}" == "ac" |
d1044716 | 9 | %bcond_with llvm # LLVM support |
00f337bd | 10 | %else |
d1044716 | 11 | %bcond_without llvm # LLVM support |
da430249 | 12 | %endif |
d1044716 JB |
13 | %bcond_without system_libmspack # system libmspack library |
14 | %bcond_with system_llvm # system LLVM (< 3.7) | |
8cdcf5e0 | 15 | %bcond_without static_libs # static libraries |
da430249 JR |
16 | |
17 | %ifarch x32 | |
18 | %undefine with_llvm | |
9279da12 | 19 | %endif |
b014d766 | 20 | Summary: An anti-virus utility for Unix |
8618c36b | 21 | Summary(pl.UTF-8): Narzędzie antywirusowe dla Uniksów |
e6c034d3 | 22 | Name: clamav |
6ff47b89 | 23 | Version: 0.104.1 |
01e85c7c | 24 | Release: 3 |
c81b4cf4 | 25 | License: GPL v2+ |
c3cae60d | 26 | Group: Daemons |
d1044716 | 27 | #Source0Download: http://www.clamav.net/download |
9a0add22 | 28 | Source0: http://www.clamav.net/downloads/production/%{name}-%{version}.tar.gz |
6ff47b89 | 29 | # Source0-md5: 49b9bb94d5b2cafc761f8fbe660d3bfa |
4460ff0b AM |
30 | Source1: %{name}.init |
31 | Source2: %{name}.sysconfig | |
eba74cc1 | 32 | Source3: %{name}-milter.init |
719d471d | 33 | Source4: %{name}-cron-updatedb |
4a3f68d7 | 34 | Source5: %{name}.logrotate |
3e84b306 | 35 | Source8: %{name}-post-updatedb |
eba74cc1 | 36 | Source9: %{name}-milter.sysconfig |
24adbaa3 | 37 | Source10: %{name}.tmpfiles |
09a96373 | 38 | Source11: clamd.service |
e5b99e12 JK |
39 | Source12: cronjob-clamav.timer |
40 | Source13: cronjob-clamav.service.in | |
1475e7a3 | 41 | Patch0: %{name}-pld_config.patch |
1ac1f471 | 42 | |
0d2709fa AG |
43 | Patch4: x32.patch |
44 | Patch5: %{name}-add-support-for-system-tomsfastmath.patch | |
182b1736 | 45 | URL: http://www.clamav.net/ |
c3e2478b JB |
46 | BuildRequires: bzip2-devel >= 1.0.5 |
47 | BuildRequires: cmake >= 3.14 | |
4570eb6d | 48 | BuildRequires: check-devel |
8cdcf5e0 | 49 | BuildRequires: curl-devel >= 7.40 |
73b401c8 | 50 | BuildRequires: gmp-devel |
d1044716 | 51 | BuildRequires: json-c-devel |
bda09b13 | 52 | BuildRequires: libltdl-devel |
9d42dc39 | 53 | %{?with_milter:BuildRequires: libmilter-devel} |
d1044716 | 54 | %{?with_system_libmspack:BuildRequires: libmspack-devel} |
fbdfce83 | 55 | BuildRequires: libstdc++-devel >= 5:3.4 |
dd6d36d5 | 56 | %{?with_milter:BuildRequires: libwrap-devel} |
d1044716 | 57 | BuildRequires: libxml2-devel >= 2 |
85d2d338 | 58 | %{?with_llvm:%{?with_system_llvm:BuildRequires: llvm-devel < 3.7}} |
75268608 | 59 | BuildRequires: ncurses-devel |
d1044716 | 60 | BuildRequires: openssl-devel >= 0.9.8 |
8cdcf5e0 | 61 | BuildRequires: pcre2-8-devel >= 10.30 |
d1044716 | 62 | BuildRequires: pkgconfig >= 1:0.16 |
9e4f09df | 63 | BuildRequires: rpm-build >= 4.6 |
c3e2478b | 64 | BuildRequires: rpmbuild(macros) >= 1.742 |
d1044716 | 65 | BuildRequires: systemd-devel |
7fae6205 | 66 | BuildRequires: tomsfastmath-devel >= 0.13.1-2 |
d1044716 | 67 | BuildRequires: zlib-devel >= 1.2.2 |
dd6d36d5 ER |
68 | Requires(post,preun): /sbin/chkconfig |
69 | Requires(postun): /usr/sbin/groupdel | |
70 | Requires(postun): /usr/sbin/userdel | |
71 | Requires(postun,pre): /usr/sbin/usermod | |
0e86f481 | 72 | Requires(pre): /bin/id |
49797116 | 73 | Requires(pre): /usr/bin/getgid |
74 | Requires(pre): /usr/sbin/groupadd | |
75 | Requires(pre): /usr/sbin/useradd | |
28e95a65 ŁK |
76 | Requires(post,preun,postun): systemd-units >= 38 |
77 | Requires: systemd-units >= 38 | |
01a1fe23 | 78 | Requires(postun): sed >= 4.0 |
d4117574 | 79 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
dd6d36d5 | 80 | Requires: /usr/sbin/usermod |
f40f9e2f | 81 | Requires: rc-scripts >= 0.4.1.23 |
6475233d | 82 | Suggests: clamav-database |
4792d085 | 83 | Suggests: cronjobs |
49797116 | 84 | Provides: group(clamav) |
85 | Provides: user(clamav) | |
d0ecd394 | 86 | Conflicts: logrotate < 3.7-4 |
e6c034d3 | 87 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
88 | ||
e6c034d3 | 89 | %description |
066e1c29 ER |
90 | Clam AntiVirus is an open source anti-virus toolkit for UNIX, designed |
91 | especially for e-mail scanning on mail gateways. It provides a number | |
92 | of utilities including a flexible and scalable multi-threaded daemon, | |
93 | a command line scanner and advanced tool for automatic database | |
94 | updates. The core of the package is an anti-virus engine available in | |
693adc85 | 95 | a form of shared library (available in clamav-libs). |
066e1c29 ER |
96 | |
97 | Here is a list of the main features: | |
98 | - command-line scanner | |
99 | - fast, multi-threaded daemon with support for on-access scanning | |
100 | - milter interface for sendmail | |
101 | - advanced database updater with support for scripted updates and | |
102 | digital signatures | |
103 | - virus scanner C library | |
693adc85 | 104 | - on-access scanning (Linux and FreeBSD) |
066e1c29 ER |
105 | - virus database updated multiple times per day (see home page for |
106 | total number of signatures) | |
107 | - built-in support for various archive formats, including Zip, RAR, | |
108 | Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS and others | |
109 | - built-in support for almost all mail file formats | |
110 | - built-in support for ELF executables and Portable Executable files | |
111 | compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and | |
112 | obfuscated with SUE, Y0da Cryptor and others | |
113 | - built-in support for popular document formats including MS Office | |
114 | and MacOffice files, HTML, RTF and PDF | |
e6c034d3 | 115 | |
d8cf2de3 | 116 | %description -l pl.UTF-8 |
693adc85 JB |
117 | Clam AntiVirus to mające otwarte źródła narzędzie antywirusowe dla |
118 | systemów uniksowych, zaprojektowane szczególnie pod kątem skanowania | |
119 | poczty elektronicznej na bramkach pocztowych. Udostępnia wiele | |
120 | narzędzi, w tym elastycznego i skalowalnego, multiwątkowego demona, | |
121 | skaner działający z linii poleceń oraz zaawansowane narzędzie do | |
122 | automatycznej aktualizacji bazy danych. Główna część pakietu to | |
123 | silnik antywirusowy dostępny w postaci biblioteki współdzielonej | |
124 | (dostępnej w pakiecie clamav-libs). | |
125 | ||
126 | Lista podstawowych możliwości: | |
127 | - skaner działający z linii poleceń | |
128 | - szybki, wielowątkowy demon z obsługą skanowania przy odczycie | |
129 | - interfejs milter dla sendmaila | |
130 | - zaawansowane narzędzie do aktualizacji bazy danych z obsługą | |
131 | aktualizacji oskryptowanych oraz podpisów cyfrowych | |
132 | - biblioteka C skanera antywirusowego | |
133 | - skanowanie przy odczycie (dla Linuksa i FreeBSD) | |
134 | - baza danych wirusów aktualizowana wiele razy dziennie (liczba | |
135 | sygnatur dostępna na stronie projektu) | |
136 | - wbudowana obsługa różnych formatów archiwów, w tym Zip, RAR, Tar, | |
137 | Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS i inne | |
138 | - wbudowana obsługa prawie wszystkich formatów plików pocztowych | |
139 | - wbudowana obsługa plików wykonywalnych ELF i PE skompresowanych | |
140 | programami UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack oraz | |
141 | zaciemnionych przy użyciu programów SUE, Y0da Cryptor i innych | |
142 | - wbudowana obsługa popularnych formatów dokumentów, w tym plików MS | |
143 | Office, MacOffice, HTML, RTF i PDF | |
e6c034d3 | 144 | |
4460ff0b | 145 | %package libs |
f98d218a | 146 | Summary: Shared libraries for clamav |
da5aee7a | 147 | Summary(pl.UTF-8): Biblioteki dzielone clamav |
f98d218a | 148 | Group: Libraries |
8cdcf5e0 JB |
149 | Requires: bzip2-libs >= 1.0.5 |
150 | Requires: curl-libs >= 7.40 | |
151 | Requires: pcre2-8 >= 10.30 | |
d1044716 | 152 | Requires: zlib >= 1.2.2 |
4460ff0b AM |
153 | |
154 | %description libs | |
155 | Shared libraries for clamav. | |
156 | ||
d8cf2de3 | 157 | %description libs -l pl.UTF-8 |
4460ff0b AM |
158 | Biblioteki dzielone clamav. |
159 | ||
486b4f0f JB |
160 | %package milter |
161 | Summary: ClamAV filter using milter interface | |
8618c36b | 162 | Summary(pl.UTF-8): Filtr ClamAV korzystający z interfejsu milter |
eba74cc1 | 163 | Group: Daemons |
d4117574 | 164 | Requires: %{name} = %{epoch}:%{version}-%{release} |
893a866a | 165 | Requires: postfix |
7c438a38 | 166 | #Requires: sendmail >= 8.11 |
eba74cc1 | 167 | Requires: tcp_wrappers |
eba74cc1 | 168 | |
169 | %description milter | |
170 | ClamAV sendmail filter using MILTER interface. | |
171 | ||
d8cf2de3 | 172 | %description milter -l pl.UTF-8 |
8618c36b | 173 | Filtr ClamAV dla sendmaila korzystający z interfejsu MILTER. |
eba74cc1 | 174 | |
4460ff0b | 175 | %package devel |
f98d218a | 176 | Summary: clamav - Development header files and libraries |
8618c36b | 177 | Summary(pl.UTF-8): clamav - Pliki nagłówkowe i biblioteki dla programistów |
f98d218a | 178 | Group: Development/Libraries |
d4117574 | 179 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
8cdcf5e0 JB |
180 | Requires: bzip2-devel >= 1.0.5 |
181 | Requires: curl-devel >= 7.40 | |
cc776ef1 | 182 | Requires: gmp-devel |
d1044716 | 183 | Requires: openssl-devel >= 0.9.8 |
8cdcf5e0 | 184 | Requires: pcre2-8-devel >= 10.30 |
d1044716 | 185 | Requires: zlib-devel >= 1.2.2 |
4460ff0b AM |
186 | |
187 | %description devel | |
188 | This package contains the development header files and libraries | |
189 | necessary to develop clamav client applications. | |
190 | ||
d8cf2de3 | 191 | %description devel -l pl.UTF-8 |
8618c36b | 192 | Pliki nagłówkowe i biblioteki konieczne do kompilacji aplikacji |
142cc22a | 193 | klienckich clamav. |
4460ff0b AM |
194 | |
195 | %package static | |
dd6d36d5 | 196 | Summary: clamav static libraries |
da5aee7a | 197 | Summary(pl.UTF-8): Biblioteki statyczne clamav |
f98d218a | 198 | Group: Development/Libraries |
d4117574 | 199 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
4460ff0b AM |
200 | |
201 | %description static | |
f33eb2df | 202 | clamav static libraries. |
4460ff0b | 203 | |
d8cf2de3 | 204 | %description static -l pl.UTF-8 |
4460ff0b AM |
205 | Biblioteki statyczne clamav. |
206 | ||
c3e2478b JB |
207 | %package doc |
208 | Summary: ClamAV documentation | |
209 | Summary(pl.UTF-8): Dokumentacja do ClamAVa | |
210 | Group: Documentation | |
9e4f09df | 211 | BuildArch: noarch |
c3e2478b JB |
212 | |
213 | %description doc | |
214 | ClamAV documentation. | |
215 | ||
216 | %description doc -l pl.UTF-8 | |
217 | Dokumentacja do ClamAVa. | |
218 | ||
e6c034d3 | 219 | %prep |
c81b4cf4 | 220 | %setup -q |
c935072a | 221 | %patch0 -p1 |
1ac1f471 | 222 | |
0d2709fa | 223 | %patch4 -p1 |
2d42b9d9 | 224 | #%patch5 -p1 |
82747f5b | 225 | |
e6c034d3 | 226 | %build |
1ac1f471 AM |
227 | install -d build |
228 | cd build | |
229 | %{cmake} \ | |
230 | %{cmake_on_off system_libmspack ENABLE_EXTERNAL_MSPACK} \ | |
231 | %{cmake_on_off milter ENABLE_MILTER} \ | |
232 | %{cmake_on_off static_libs ENABLE_STATIC_LIB} \ | |
233 | -DENABLE_APP=ON \ | |
234 | -DENABLE_CLAMONACC=ON \ | |
235 | -DENABLE_FRESHCLAM_NO_CACHE=ON \ | |
236 | -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/%{name} \ | |
237 | -DAPP_CONFIG_DIRECTORY=%{_sysconfdir} \ | |
c16cd5f9 | 238 | -DDATABASE_DIRECTORY="/var/lib/%{name}" \ |
1ac1f471 | 239 | .. |
8cdcf5e0 | 240 | %{__make} |
4d3c9f35 | 241 | |
e6c034d3 | 242 | %install |
243 | rm -rf $RPM_BUILD_ROOT | |
06e3ab45 | 244 | install -d $RPM_BUILD_ROOT/etc/{cron.d,logrotate.d,rc.d/init.d,sysconfig} \ |
c79a8ed7 | 245 | $RPM_BUILD_ROOT%{_var}/{log,spool/clamav,lib/clamav} \ |
28e95a65 ŁK |
246 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} \ |
247 | $RPM_BUILD_ROOT%{systemdunitdir} | |
92c5ef39 | 248 | |
1ac1f471 | 249 | %{__make} -C build install \ |
92c5ef39 | 250 | DESTDIR=$RPM_BUILD_ROOT |
c3e2478b | 251 | |
142cc22a | 252 | %{!?with_milter:rm -f $RPM_BUILD_ROOT%{_mandir}/man8/clamav-milter.8*} |
c3e2478b JB |
253 | # packged as %doc |
254 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/html | |
92c5ef39 | 255 | |
1ac1f471 | 256 | %if %{with static_libs} |
c3e2478b JB |
257 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libclamav{_static,}.a |
258 | %{__mv} $RPM_BUILD_ROOT%{_libdir}/libfreshclam{_static,}.a | |
1ac1f471 AM |
259 | %endif |
260 | ||
d78cc52a | 261 | cat <<'EOF' >$RPM_BUILD_ROOT/etc/cron.d/%{name} |
719d471d | 262 | 5 * * * * root %{_sbindir}/clamav-cron-updatedb |
ca57b115 | 263 | EOF |
92c5ef39 | 264 | |
9279da12 | 265 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clamd |
4381c9a3 | 266 | %if %{with milter} |
9279da12 ER |
267 | install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/clamav-milter |
268 | cp -p %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/clamav-milter | |
4381c9a3 | 269 | %endif |
9279da12 ER |
270 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clamd |
271 | install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sbindir}/clamav-cron-updatedb | |
5dcc5881 AM |
272 | for i in $RPM_BUILD_ROOT%{_sysconfdir}/*.conf.sample; do |
273 | mv $i ${i%%.sample} | |
274 | done | |
9279da12 | 275 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
2b9f3e64 | 276 | |
9279da12 | 277 | install -p %{SOURCE8} $RPM_BUILD_ROOT%{_sbindir} |
4460ff0b | 278 | |
e335899e | 279 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
24adbaa3 | 280 | |
e335899e | 281 | cp -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir} |
e5b99e12 JK |
282 | cp -p %{SOURCE12} $RPM_BUILD_ROOT%{systemdunitdir}/cronjob-%{name}.timer |
283 | sed -e's#@sbindir@#%{_sbindir}#' < %{SOURCE13} > $RPM_BUILD_ROOT%{systemdunitdir}/cronjob-%{name}.service | |
28e95a65 | 284 | |
c935072a MK |
285 | # NOTE: clamd uses sane rights to it's clamd.pid file |
286 | # So better keep it dir | |
287 | # If it is fixed use of dir will be unecesary | |
d78cc52a | 288 | install -d $RPM_BUILD_ROOT/var/run/%{name} |
c935072a | 289 | |
d78cc52a | 290 | :> $RPM_BUILD_ROOT/var/log/freshclam.log |
ef21d0fa | 291 | |
e6c034d3 | 292 | %clean |
92c5ef39 | 293 | rm -rf $RPM_BUILD_ROOT |
e6c034d3 | 294 | |
c935072a | 295 | %triggerin -- amavis-ng |
50d65e20 | 296 | %addusertogroup -q clamav amavis |
c935072a MK |
297 | |
298 | %triggerin -- amavisd-new | |
50d65e20 | 299 | %addusertogroup -q clamav amavis |
c935072a MK |
300 | |
301 | %triggerin -- amavisd | |
50d65e20 | 302 | %addusertogroup -q clamav amavis |
c935072a | 303 | |
e278889f | 304 | %pre |
236dddf1 ER |
305 | %groupadd -g 43 clamav |
306 | %useradd -u 43 -d /tmp -s /bin/false -c "Clam Anti Virus Checker" -g clamav clamav | |
174915c1 | 307 | |
66d1575d | 308 | %post |
66d1575d | 309 | /sbin/chkconfig --add clamd |
dd6d36d5 | 310 | %service clamd restart "Clam Antivirus daemon" |
d78cc52a ER |
311 | touch /var/log/freshclam.log |
312 | chown clamav:root /var/log/freshclam.log | |
313 | chmod 640 /var/log/freshclam.log | |
e5b99e12 | 314 | %systemd_post clamd.service cronjob-clamav.timer |
66d1575d | 315 | |
66d1575d | 316 | %preun |
317 | if [ "$1" = "0" ]; then | |
dd6d36d5 | 318 | %service clamd stop |
66d1575d | 319 | /sbin/chkconfig --del clamd |
320 | fi | |
e5b99e12 | 321 | %systemd_preun clamd.service cronjob-clamav.timer |
e6c034d3 | 322 | |
0c8c3ba4 | 323 | %postun |
174915c1 | 324 | if [ "$1" = "0" ]; then |
49797116 | 325 | %userremove clamav |
326 | %groupremove clamav | |
174915c1 | 327 | fi |
28e95a65 | 328 | %systemd_reload |
174915c1 | 329 | |
01a1fe23 | 330 | %triggerpostun -- %{name} < 0.99.2-2 |
1eab800a | 331 | if [ -f /etc/clamav.conf.rpmsave ]; then |
d093ed8c | 332 | echo "Renaming config to new name /etc/clamd.conf" |
333 | mv -f /etc/clamd.conf /etc/clamd.conf.rpmnew | |
334 | mv -f /etc/clamav.conf.rpmsave /etc/clamd.conf | |
d4117574 | 335 | echo "Changing config location in freshclam config" |
f12ca2c1 ER |
336 | %{__sed} -i -e 's/clamav.conf/clamd.conf/' /etc/freshclam.conf |
337 | fi | |
338 | ||
29f80fd8 ER |
339 | %{__cp} -f /etc/clamd.conf{,.rpmsave} |
340 | %{__sed} -i -e ' | |
341 | s,^LogSyslog$,& yes, | |
342 | s,^FixStaleSocket$,& yes, | |
343 | s,^AllowSupplementaryGroups$,& yes, | |
344 | s,^ClamukoScanOnOpen$,& yes, | |
345 | s,^ClamukoScanOnClose$,& yes, | |
346 | s,^ClamukoScanOnExec$,& yes, | |
3bc0b921 AM |
347 | s,^LogTime$,& yes, |
348 | s,^ScanPE$,& yes, | |
29f80fd8 ER |
349 | ' /etc/clamd.conf |
350 | %banner -e %{name}-0.90 <<EOF | |
351 | ClamAV config was automatically upgraded to 0.90 format. You should review it | |
352 | that it's still valid. | |
353 | EOF | |
354 | #' | |
355 | # unfortunately clamd has no configcheck option so we just have to start it | |
356 | # once again after config was broken after upgrade | |
357 | touch /var/lock/subsys/clamd | |
358 | %service -q clamd restart | |
1eab800a | 359 | |
09a96373 ŁK |
360 | %systemd_trigger clamd.service |
361 | ||
e5b99e12 JK |
362 | %systemd_service_enable cronjob-clamav.timer |
363 | ||
eba74cc1 | 364 | %post milter |
365 | /sbin/chkconfig --add clamav-milter | |
dd6d36d5 | 366 | %service clamav-milter restart "Clam Antivirus daemon" |
eba74cc1 | 367 | |
4c570814 | 368 | %preun milter |
eba74cc1 | 369 | if [ "$1" = "0" ]; then |
dd6d36d5 | 370 | %service clamav-milter stop |
eba74cc1 | 371 | /sbin/chkconfig --del clamav-milter |
372 | fi | |
fba342ab | 373 | |
1475e7a3 | 374 | %post libs -p /sbin/ldconfig |
375 | %postun libs -p /sbin/ldconfig | |
4460ff0b | 376 | |
e6c034d3 | 377 | %files |
378 | %defattr(644,root,root,755) | |
a4e64f4e | 379 | %doc ChangeLog.md NEWS.md README.md |
79125c5b | 380 | %attr(755,root,root) %{_bindir}/clambc |
24f68046 | 381 | %attr(755,root,root) %{_bindir}/clamdscan |
40002522 | 382 | %attr(755,root,root) %{_bindir}/clamdtop |
24f68046 | 383 | %attr(755,root,root) %{_bindir}/clamscan |
d03f44fa | 384 | %attr(755,root,root) %{_bindir}/clamsubmit |
24f68046 | 385 | %attr(755,root,root) %{_bindir}/freshclam |
386 | %attr(755,root,root) %{_bindir}/sigtool | |
d78cc52a | 387 | %attr(755,root,root) %{_bindir}/clamconf |
24f68046 | 388 | %attr(755,root,root) %{_sbindir}/clamav-cron-updatedb |
c8321415 | 389 | %attr(755,root,root) %{_sbindir}/clamav-post-updatedb |
8cdcf5e0 JB |
390 | %attr(755,root,root) %{_sbindir}/clamd |
391 | %attr(755,root,root) %{_sbindir}/clamonacc | |
839be9e8 | 392 | %{systemdtmpfilesdir}/%{name}.conf |
8cdcf5e0 | 393 | %{systemdunitdir}/clamav-clamonacc.service |
f63e74d3 AG |
394 | %{systemdunitdir}/clamav-daemon.service |
395 | %{systemdunitdir}/clamav-daemon.socket | |
396 | %{systemdunitdir}/clamav-freshclam.service | |
09a96373 | 397 | %{systemdunitdir}/clamd.service |
e5b99e12 JK |
398 | %{systemdunitdir}/cronjob-clamav.service |
399 | %{systemdunitdir}/cronjob-clamav.timer | |
ca57b115 | 400 | %attr(755,clamav,root) %dir /var/lib/%{name} |
d78cc52a ER |
401 | %attr(640,clamav,root) %ghost /var/log/freshclam.log |
402 | %attr(750,clamav,clamav) %dir /var/run/%{name} | |
c935072a | 403 | |
b5177881 | 404 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name} |
0e86f481 JB |
405 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/clamd.conf |
406 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/freshclam.conf | |
6586d93d | 407 | |
05eb87ef | 408 | %attr(754,root,root) /etc/rc.d/init.d/clamd |
7c801993 ER |
409 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clamd |
410 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/clamav | |
8cdcf5e0 JB |
411 | %{_mandir}/man1/clambc.1* |
412 | %{_mandir}/man1/clamconf.1* | |
413 | %{_mandir}/man1/clamdscan.1* | |
414 | %{_mandir}/man1/clamdtop.1* | |
415 | %{_mandir}/man1/clamscan.1* | |
416 | %{_mandir}/man1/clamsubmit.1* | |
417 | %{_mandir}/man1/freshclam.1* | |
418 | %{_mandir}/man1/sigtool.1* | |
419 | %{_mandir}/man5/clamd.conf.5* | |
420 | %{_mandir}/man5/freshclam.conf.5* | |
421 | %{_mandir}/man8/clamd.8* | |
422 | %{_mandir}/man8/clamonacc.8* | |
eba74cc1 | 423 | |
424 | %if %{with milter} | |
425 | %files milter | |
426 | %defattr(644,root,root,755) | |
7c801993 | 427 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clamav-milter |
a2a93243 | 428 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/clamav-milter.conf |
491eb046 | 429 | %attr(754,root,root) /etc/rc.d/init.d/clamav-milter |
eba74cc1 | 430 | #%attr(755,root,root) %{_sysconfdir}/cron.daily/clamav-milter |
a2a93243 | 431 | %attr(755,root,root) %{_sbindir}/clamav-milter |
8cdcf5e0 | 432 | %{_mandir}/man5/clamav-milter.conf.5* |
eba74cc1 | 433 | %{_mandir}/man8/clamav-milter.8* |
0e86f481 | 434 | %attr(700,clamav,clamav) /var/spool/clamav |
eba74cc1 | 435 | %endif |
4460ff0b AM |
436 | |
437 | %files libs | |
438 | %defattr(644,root,root,755) | |
418bf14a | 439 | %attr(755,root,root) %{_libdir}/libclamav.so.*.*.* |
f63e74d3 | 440 | %attr(755,root,root) %ghost %{_libdir}/libclamav.so.9 |
d1044716 | 441 | %if %{without system_libmspack} |
a4e64f4e AM |
442 | %attr(755,root,root) %{_libdir}/libclammspack.*.*.* |
443 | %attr(755,root,root) %ghost %{_libdir}/libclammspack.so.0 | |
d1044716 | 444 | %endif |
418bf14a | 445 | %attr(755,root,root) %{_libdir}/libclamunrar.so.*.*.* |
f63e74d3 | 446 | %attr(755,root,root) %ghost %{_libdir}/libclamunrar.so.9 |
418bf14a | 447 | %attr(755,root,root) %{_libdir}/libclamunrar_iface.so.*.*.* |
f63e74d3 | 448 | %attr(755,root,root) %ghost %{_libdir}/libclamunrar_iface.so.9 |
e63bc447 AG |
449 | %attr(755,root,root) %{_libdir}/libfreshclam.so.*.*.* |
450 | %attr(755,root,root) %ghost %{_libdir}/libfreshclam.so.2 | |
4460ff0b AM |
451 | |
452 | %files devel | |
453 | %defattr(644,root,root,755) | |
24f68046 | 454 | %attr(755,root,root) %{_bindir}/clamav-config |
418bf14a | 455 | %attr(755,root,root) %{_libdir}/libclamav.so |
d1044716 | 456 | %if %{without system_libmspack} |
a4e64f4e | 457 | %attr(755,root,root) %{_libdir}/libclammspack.so |
d1044716 | 458 | %endif |
418bf14a | 459 | %attr(755,root,root) %{_libdir}/libclamunrar.so |
e63bc447 | 460 | %attr(755,root,root) %{_libdir}/libfreshclam.so |
418bf14a | 461 | %attr(755,root,root) %{_libdir}/libclamunrar_iface.so |
0e6f5de4 AG |
462 | %dir %{_includedir}/clamav |
463 | %{_includedir}/clamav/clamav.h | |
18033221 | 464 | %{_includedir}/clamav/clamav-types.h |
e63bc447 AG |
465 | %{_includedir}/clamav/clamav-version.h |
466 | %{_includedir}/clamav/libfreshclam.h | |
418bf14a | 467 | %{_pkgconfigdir}/libclamav.pc |
4460ff0b AM |
468 | |
469 | %files static | |
470 | %defattr(644,root,root,755) | |
418bf14a | 471 | %{_libdir}/libclamav.a |
d1044716 | 472 | %if %{without system_libmspack} |
a4e64f4e | 473 | %{_libdir}/libclammspack.a |
d1044716 | 474 | %endif |
e63bc447 | 475 | %{_libdir}/libfreshclam.a |
c3e2478b JB |
476 | |
477 | %files doc | |
478 | %defattr(644,root,root,755) | |
479 | %doc docs/html/* |