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