]>
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) | |
da430249 JR |
14 | |
15 | %ifarch x32 | |
16 | %undefine with_llvm | |
9279da12 | 17 | %endif |
b014d766 | 18 | Summary: An anti-virus utility for Unix |
8618c36b | 19 | Summary(pl.UTF-8): Narzędzie antywirusowe dla Uniksów |
e6c034d3 | 20 | Name: clamav |
7f8f06d5 AG |
21 | Version: 0.101.2 |
22 | Release: 1 | |
c81b4cf4 | 23 | License: GPL v2+ |
c3cae60d | 24 | Group: Daemons |
d1044716 | 25 | #Source0Download: http://www.clamav.net/download |
9a0add22 | 26 | Source0: http://www.clamav.net/downloads/production/%{name}-%{version}.tar.gz |
7f8f06d5 | 27 | # Source0-md5: faeb0e286e76c2a26e2e10845e4b68db |
4460ff0b AM |
28 | Source1: %{name}.init |
29 | Source2: %{name}.sysconfig | |
eba74cc1 | 30 | Source3: %{name}-milter.init |
719d471d | 31 | Source4: %{name}-cron-updatedb |
4a3f68d7 | 32 | Source5: %{name}.logrotate |
3e84b306 | 33 | Source8: %{name}-post-updatedb |
eba74cc1 | 34 | Source9: %{name}-milter.sysconfig |
24adbaa3 | 35 | Source10: %{name}.tmpfiles |
09a96373 | 36 | Source11: clamd.service |
e5b99e12 JK |
37 | Source12: cronjob-clamav.timer |
38 | Source13: cronjob-clamav.service.in | |
1475e7a3 | 39 | Patch0: %{name}-pld_config.patch |
40002522 | 40 | Patch1: %{name}-nolibs.patch |
e335899e | 41 | %if "%{pld_release}" == "ac" |
453ff8b1 | 42 | Patch2: am-nosilentrules.patch |
e335899e | 43 | %endif |
1337bca5 | 44 | Patch3: ac2.68.patch |
d03f44fa | 45 | Patch4: %{name}-openssl.patch |
e1b3dbcb | 46 | Patch5: %{name}-major.patch |
90b9ff25 | 47 | Patch6: x32.patch |
7fae6205 | 48 | Patch7: %{name}-add-support-for-system-tomsfastmath.patch |
0e6f5de4 | 49 | Patch8: %{name}-headers.patch |
182b1736 | 50 | URL: http://www.clamav.net/ |
d1044716 JB |
51 | BuildRequires: autoconf >= 2.59 |
52 | BuildRequires: automake >= 1:1.11 | |
bc21dbca | 53 | BuildRequires: bzip2-devel |
4570eb6d | 54 | BuildRequires: check-devel |
e335899e | 55 | BuildRequires: curl-devel |
73b401c8 | 56 | BuildRequires: gmp-devel |
d1044716 | 57 | BuildRequires: json-c-devel |
bda09b13 | 58 | BuildRequires: libltdl-devel |
9d42dc39 | 59 | %{?with_milter:BuildRequires: libmilter-devel} |
d1044716 | 60 | %{?with_system_libmspack:BuildRequires: libmspack-devel} |
fbdfce83 | 61 | BuildRequires: libstdc++-devel >= 5:3.4 |
2d1a6e1f | 62 | BuildRequires: libtool |
dd6d36d5 | 63 | %{?with_milter:BuildRequires: libwrap-devel} |
d1044716 | 64 | BuildRequires: libxml2-devel >= 2 |
85d2d338 | 65 | %{?with_llvm:%{?with_system_llvm:BuildRequires: llvm-devel < 3.7}} |
75268608 | 66 | BuildRequires: ncurses-devel |
d1044716 JB |
67 | BuildRequires: openssl-devel >= 0.9.8 |
68 | BuildRequires: pcre2-8-devel | |
69 | BuildRequires: pkgconfig >= 1:0.16 | |
9279da12 | 70 | BuildRequires: rpm >= 4.4.9-56 |
09a96373 | 71 | BuildRequires: rpmbuild(macros) >= 1.647 |
d1044716 | 72 | BuildRequires: systemd-devel |
7fae6205 | 73 | BuildRequires: tomsfastmath-devel >= 0.13.1-2 |
d1044716 | 74 | BuildRequires: zlib-devel >= 1.2.2 |
dd6d36d5 ER |
75 | Requires(post,preun): /sbin/chkconfig |
76 | Requires(postun): /usr/sbin/groupdel | |
77 | Requires(postun): /usr/sbin/userdel | |
78 | Requires(postun,pre): /usr/sbin/usermod | |
0e86f481 | 79 | Requires(pre): /bin/id |
49797116 | 80 | Requires(pre): /usr/bin/getgid |
81 | Requires(pre): /usr/sbin/groupadd | |
82 | Requires(pre): /usr/sbin/useradd | |
28e95a65 ŁK |
83 | Requires(post,preun,postun): systemd-units >= 38 |
84 | Requires: systemd-units >= 38 | |
d985d248 | 85 | Requires(triggerpostun): sed >= 4.0 |
d4117574 | 86 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
dd6d36d5 | 87 | Requires: /usr/sbin/usermod |
f40f9e2f | 88 | Requires: rc-scripts >= 0.4.1.23 |
6475233d | 89 | Suggests: clamav-database |
4792d085 | 90 | Suggests: cronjobs |
49797116 | 91 | Provides: group(clamav) |
92 | Provides: user(clamav) | |
d0ecd394 | 93 | Conflicts: logrotate < 3.7-4 |
e6c034d3 | 94 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
95 | ||
e6c034d3 | 96 | %description |
066e1c29 ER |
97 | Clam AntiVirus is an open source anti-virus toolkit for UNIX, designed |
98 | especially for e-mail scanning on mail gateways. It provides a number | |
99 | of utilities including a flexible and scalable multi-threaded daemon, | |
100 | a command line scanner and advanced tool for automatic database | |
101 | updates. The core of the package is an anti-virus engine available in | |
693adc85 | 102 | a form of shared library (available in clamav-libs). |
066e1c29 ER |
103 | |
104 | Here is a list of the main features: | |
105 | - command-line scanner | |
106 | - fast, multi-threaded daemon with support for on-access scanning | |
107 | - milter interface for sendmail | |
108 | - advanced database updater with support for scripted updates and | |
109 | digital signatures | |
110 | - virus scanner C library | |
693adc85 | 111 | - on-access scanning (Linux and FreeBSD) |
066e1c29 ER |
112 | - virus database updated multiple times per day (see home page for |
113 | total number of signatures) | |
114 | - built-in support for various archive formats, including Zip, RAR, | |
115 | Tar, Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS and others | |
116 | - built-in support for almost all mail file formats | |
117 | - built-in support for ELF executables and Portable Executable files | |
118 | compressed with UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack and | |
119 | obfuscated with SUE, Y0da Cryptor and others | |
120 | - built-in support for popular document formats including MS Office | |
121 | and MacOffice files, HTML, RTF and PDF | |
e6c034d3 | 122 | |
d8cf2de3 | 123 | %description -l pl.UTF-8 |
693adc85 JB |
124 | Clam AntiVirus to mające otwarte źródła narzędzie antywirusowe dla |
125 | systemów uniksowych, zaprojektowane szczególnie pod kątem skanowania | |
126 | poczty elektronicznej na bramkach pocztowych. Udostępnia wiele | |
127 | narzędzi, w tym elastycznego i skalowalnego, multiwątkowego demona, | |
128 | skaner działający z linii poleceń oraz zaawansowane narzędzie do | |
129 | automatycznej aktualizacji bazy danych. Główna część pakietu to | |
130 | silnik antywirusowy dostępny w postaci biblioteki współdzielonej | |
131 | (dostępnej w pakiecie clamav-libs). | |
132 | ||
133 | Lista podstawowych możliwości: | |
134 | - skaner działający z linii poleceń | |
135 | - szybki, wielowątkowy demon z obsługą skanowania przy odczycie | |
136 | - interfejs milter dla sendmaila | |
137 | - zaawansowane narzędzie do aktualizacji bazy danych z obsługą | |
138 | aktualizacji oskryptowanych oraz podpisów cyfrowych | |
139 | - biblioteka C skanera antywirusowego | |
140 | - skanowanie przy odczycie (dla Linuksa i FreeBSD) | |
141 | - baza danych wirusów aktualizowana wiele razy dziennie (liczba | |
142 | sygnatur dostępna na stronie projektu) | |
143 | - wbudowana obsługa różnych formatów archiwów, w tym Zip, RAR, Tar, | |
144 | Gzip, Bzip2, OLE2, Cabinet, CHM, BinHex, SIS i inne | |
145 | - wbudowana obsługa prawie wszystkich formatów plików pocztowych | |
146 | - wbudowana obsługa plików wykonywalnych ELF i PE skompresowanych | |
147 | programami UPX, FSG, Petite, NsPack, wwpack32, MEW, Upack oraz | |
148 | zaciemnionych przy użyciu programów SUE, Y0da Cryptor i innych | |
149 | - wbudowana obsługa popularnych formatów dokumentów, w tym plików MS | |
150 | Office, MacOffice, HTML, RTF i PDF | |
e6c034d3 | 151 | |
4460ff0b | 152 | %package libs |
f98d218a | 153 | Summary: Shared libraries for clamav |
da5aee7a | 154 | Summary(pl.UTF-8): Biblioteki dzielone clamav |
f98d218a | 155 | Group: Libraries |
d1044716 | 156 | Requires: zlib >= 1.2.2 |
4460ff0b AM |
157 | |
158 | %description libs | |
159 | Shared libraries for clamav. | |
160 | ||
d8cf2de3 | 161 | %description libs -l pl.UTF-8 |
4460ff0b AM |
162 | Biblioteki dzielone clamav. |
163 | ||
486b4f0f JB |
164 | %package milter |
165 | Summary: ClamAV filter using milter interface | |
8618c36b | 166 | Summary(pl.UTF-8): Filtr ClamAV korzystający z interfejsu milter |
eba74cc1 | 167 | Group: Daemons |
d4117574 | 168 | Requires: %{name} = %{epoch}:%{version}-%{release} |
893a866a | 169 | Requires: postfix |
7c438a38 | 170 | #Requires: sendmail >= 8.11 |
eba74cc1 | 171 | Requires: tcp_wrappers |
eba74cc1 | 172 | |
173 | %description milter | |
174 | ClamAV sendmail filter using MILTER interface. | |
175 | ||
d8cf2de3 | 176 | %description milter -l pl.UTF-8 |
8618c36b | 177 | Filtr ClamAV dla sendmaila korzystający z interfejsu MILTER. |
eba74cc1 | 178 | |
4460ff0b | 179 | %package devel |
f98d218a | 180 | Summary: clamav - Development header files and libraries |
8618c36b | 181 | Summary(pl.UTF-8): clamav - Pliki nagłówkowe i biblioteki dla programistów |
f98d218a | 182 | Group: Development/Libraries |
d4117574 | 183 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
cc776ef1 | 184 | Requires: bzip2-devel |
d03f44fa | 185 | Requires: curl-devel |
cc776ef1 | 186 | Requires: gmp-devel |
d1044716 JB |
187 | Requires: openssl-devel >= 0.9.8 |
188 | Requires: zlib-devel >= 1.2.2 | |
4460ff0b AM |
189 | |
190 | %description devel | |
191 | This package contains the development header files and libraries | |
192 | necessary to develop clamav client applications. | |
193 | ||
d8cf2de3 | 194 | %description devel -l pl.UTF-8 |
8618c36b | 195 | Pliki nagłówkowe i biblioteki konieczne do kompilacji aplikacji |
142cc22a | 196 | klienckich clamav. |
4460ff0b AM |
197 | |
198 | %package static | |
dd6d36d5 | 199 | Summary: clamav static libraries |
da5aee7a | 200 | Summary(pl.UTF-8): Biblioteki statyczne clamav |
f98d218a | 201 | Group: Development/Libraries |
d4117574 | 202 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
4460ff0b AM |
203 | |
204 | %description static | |
f33eb2df | 205 | clamav static libraries. |
4460ff0b | 206 | |
d8cf2de3 | 207 | %description static -l pl.UTF-8 |
4460ff0b AM |
208 | Biblioteki statyczne clamav. |
209 | ||
e6c034d3 | 210 | %prep |
c81b4cf4 | 211 | %setup -q |
c935072a | 212 | %patch0 -p1 |
83eaf0c7 | 213 | %patch1 -p1 |
e335899e | 214 | %if "%{pld_release}" == "ac" |
453ff8b1 | 215 | %patch2 -p1 |
e335899e | 216 | %endif |
9a33c406 | 217 | %if "%{pld_release}" != "ac" |
1337bca5 | 218 | %patch3 -p1 |
9a33c406 | 219 | %endif |
f0c310ed | 220 | #%patch4 -p1 |
e1b3dbcb | 221 | %patch5 -p1 |
90b9ff25 | 222 | %patch6 -p1 |
7fae6205 | 223 | %patch7 -p1 |
0e6f5de4 | 224 | %patch8 -p1 |
82747f5b | 225 | |
e6c034d3 | 226 | %build |
3dae9f9c JR |
227 | export CFLAGS="%{rpmcflags} -Wall -W -Wmissing-prototypes -Wmissing-declarations -std=gnu99" |
228 | export CXXFLAGS="%{rpmcxxflags} -std=gnu++98" | |
82747f5b | 229 | %{__libtoolize} |
c81b4cf4 | 230 | %{__aclocal} -I m4 |
ed667a13 | 231 | %{__autoconf} |
82747f5b | 232 | %{__autoheader} |
ed667a13 | 233 | %{__automake} |
92c5ef39 | 234 | %configure \ |
ca57b115 | 235 | --disable-clamav \ |
5dcc5881 | 236 | --enable-clamdtop \ |
a4e64f4e | 237 | %{?with_llvm:--enable-llvm %{!?with_system_llvm:--with-system-llvm=no}} \ |
142cc22a | 238 | %{?with_milter:--enable-milter} \ |
d1044716 JB |
239 | --disable-silent-rules \ |
240 | --disable-zlib-vcheck \ | |
20f26031 | 241 | --with-dbdir=/var/lib/%{name} \ |
839be9e8 | 242 | --with-ltdl-include=%{_includedir} \ |
d1044716 JB |
243 | --with-ltdl-lib=%{_libdir} \ |
244 | --with-no-cache \ | |
245 | %{?with_system_libmspack:--with-system-libmspack} | |
a811cf23 ER |
246 | |
247 | %{__make} \ | |
839be9e8 | 248 | LIBTOOL=%{_bindir}/libtool |
4d3c9f35 | 249 | |
e6c034d3 | 250 | %install |
251 | rm -rf $RPM_BUILD_ROOT | |
06e3ab45 | 252 | install -d $RPM_BUILD_ROOT/etc/{cron.d,logrotate.d,rc.d/init.d,sysconfig} \ |
c79a8ed7 | 253 | $RPM_BUILD_ROOT%{_var}/{log,spool/clamav,lib/clamav} \ |
28e95a65 ŁK |
254 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} \ |
255 | $RPM_BUILD_ROOT%{systemdunitdir} | |
92c5ef39 AM |
256 | |
257 | %{__make} install \ | |
839be9e8 | 258 | LIBTOOL=%{_bindir}/libtool \ |
92c5ef39 | 259 | DESTDIR=$RPM_BUILD_ROOT |
142cc22a | 260 | %{!?with_milter:rm -f $RPM_BUILD_ROOT%{_mandir}/man8/clamav-milter.8*} |
92c5ef39 | 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 | |
ed0b0327 | 331 | %triggerpostun -- %{name} < 0.80 |
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 | %triggerpostun -- %{name} < 0.90-0.rc2.0.10 |
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 | %triggerpostun -- %{name} < 0.97.7-4 |
363 | %systemd_trigger clamd.service | |
364 | ||
e5b99e12 JK |
365 | %triggerpostun -- %{name} < 0.99.2-2 |
366 | %systemd_service_enable cronjob-clamav.timer | |
367 | ||
eba74cc1 | 368 | %post milter |
369 | /sbin/chkconfig --add clamav-milter | |
dd6d36d5 | 370 | %service clamav-milter restart "Clam Antivirus daemon" |
eba74cc1 | 371 | |
4c570814 | 372 | %preun milter |
eba74cc1 | 373 | if [ "$1" = "0" ]; then |
dd6d36d5 | 374 | %service clamav-milter stop |
eba74cc1 | 375 | /sbin/chkconfig --del clamav-milter |
376 | fi | |
fba342ab | 377 | |
1475e7a3 | 378 | %post libs -p /sbin/ldconfig |
379 | %postun libs -p /sbin/ldconfig | |
4460ff0b | 380 | |
e6c034d3 | 381 | %files |
382 | %defattr(644,root,root,755) | |
a4e64f4e | 383 | %doc ChangeLog.md NEWS.md README.md |
79125c5b | 384 | %attr(755,root,root) %{_bindir}/clambc |
24f68046 | 385 | %attr(755,root,root) %{_bindir}/clamdscan |
40002522 | 386 | %attr(755,root,root) %{_bindir}/clamdtop |
24f68046 | 387 | %attr(755,root,root) %{_bindir}/clamscan |
d03f44fa | 388 | %attr(755,root,root) %{_bindir}/clamsubmit |
24f68046 | 389 | %attr(755,root,root) %{_bindir}/freshclam |
390 | %attr(755,root,root) %{_bindir}/sigtool | |
d78cc52a | 391 | %attr(755,root,root) %{_bindir}/clamconf |
24f68046 | 392 | %attr(755,root,root) %{_sbindir}/clamd |
393 | %attr(755,root,root) %{_sbindir}/clamav-cron-updatedb | |
c8321415 | 394 | %attr(755,root,root) %{_sbindir}/clamav-post-updatedb |
839be9e8 | 395 | %{systemdtmpfilesdir}/%{name}.conf |
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 | |
59f1ef4d BS |
413 | %{_mandir}/man1/* |
414 | %{_mandir}/man5/clamd* | |
415 | %{_mandir}/man5/freshclam* | |
eba74cc1 | 416 | %{_mandir}/man8/clamd* |
417 | ||
418 | %if %{with milter} | |
419 | %files milter | |
420 | %defattr(644,root,root,755) | |
7c801993 | 421 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clamav-milter |
9279da12 | 422 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/clamav-milter.conf |
491eb046 | 423 | %attr(754,root,root) /etc/rc.d/init.d/clamav-milter |
eba74cc1 | 424 | #%attr(755,root,root) %{_sysconfdir}/cron.daily/clamav-milter |
425 | #%attr(755,root,root) %{_sysconfdir}/log.d/scripts/services/clamav-milter | |
426 | #%{_sysconfdir}/log.d/conf/services/clamav-milter.conf | |
427 | %attr(755,root,root) %{_sbindir}/clamav-milter | |
59f1ef4d | 428 | %{_mandir}/man5/clamav-milter* |
eba74cc1 | 429 | %{_mandir}/man8/clamav-milter.8* |
0e86f481 | 430 | %attr(700,clamav,clamav) /var/spool/clamav |
eba74cc1 | 431 | %endif |
4460ff0b AM |
432 | |
433 | %files libs | |
434 | %defattr(644,root,root,755) | |
418bf14a | 435 | %attr(755,root,root) %{_libdir}/libclamav.so.*.*.* |
f63e74d3 | 436 | %attr(755,root,root) %ghost %{_libdir}/libclamav.so.9 |
d1044716 | 437 | %if %{without system_libmspack} |
a4e64f4e AM |
438 | %attr(755,root,root) %{_libdir}/libclammspack.*.*.* |
439 | %attr(755,root,root) %ghost %{_libdir}/libclammspack.so.0 | |
d1044716 | 440 | %endif |
418bf14a | 441 | %attr(755,root,root) %{_libdir}/libclamunrar.so.*.*.* |
f63e74d3 | 442 | %attr(755,root,root) %ghost %{_libdir}/libclamunrar.so.9 |
418bf14a | 443 | %attr(755,root,root) %{_libdir}/libclamunrar_iface.so.*.*.* |
f63e74d3 | 444 | %attr(755,root,root) %ghost %{_libdir}/libclamunrar_iface.so.9 |
4460ff0b AM |
445 | |
446 | %files devel | |
447 | %defattr(644,root,root,755) | |
24f68046 | 448 | %attr(755,root,root) %{_bindir}/clamav-config |
418bf14a | 449 | %attr(755,root,root) %{_libdir}/libclamav.so |
d1044716 | 450 | %if %{without system_libmspack} |
a4e64f4e | 451 | %attr(755,root,root) %{_libdir}/libclammspack.so |
d1044716 | 452 | %endif |
418bf14a JB |
453 | %attr(755,root,root) %{_libdir}/libclamunrar.so |
454 | %attr(755,root,root) %{_libdir}/libclamunrar_iface.so | |
455 | %{_libdir}/libclamav.la | |
d1044716 | 456 | %if %{without system_libmspack} |
a4e64f4e | 457 | %{_libdir}/libclammspack.la |
d1044716 | 458 | %endif |
418bf14a JB |
459 | %{_libdir}/libclamunrar.la |
460 | %{_libdir}/libclamunrar_iface.la | |
0e6f5de4 AG |
461 | %dir %{_includedir}/clamav |
462 | %{_includedir}/clamav/clamav.h | |
18033221 | 463 | %{_includedir}/clamav/clamav-types.h |
418bf14a | 464 | %{_pkgconfigdir}/libclamav.pc |
4460ff0b AM |
465 | |
466 | %files static | |
467 | %defattr(644,root,root,755) | |
418bf14a | 468 | %{_libdir}/libclamav.a |
d1044716 | 469 | %if %{without system_libmspack} |
a4e64f4e | 470 | %{_libdir}/libclammspack.a |
d1044716 | 471 | %endif |
418bf14a JB |
472 | %{_libdir}/libclamunrar.a |
473 | %{_libdir}/libclamunrar_iface.a |