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