]> git.pld-linux.org Git - SPECS.git/blob - klamav.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / klamav.spec
1 Summary:        ClamAV Anti-Virus protection for the KDE desktop
2 Summary(pl.UTF-8):      Antywirus ClamAV dla środowiska KDE
3 Summary(ru.UTF-8):      KDE-оболочка для антивирусного сканера Clam AntiVirus
4 Name:           klamav
5 Version:        0.45
6 Release:        1
7 License:        GPL
8 Group:          Applications/System
9 Source0:        http://dl.sourceforge.net/klamav/%{name}-%{version}-source.tar.gz
10 # Source0-md5:  2df1df91f719f18d4e9ecb5d288950a4
11 Patch0:         %{name}-desktop.patch
12 Patch1:         %{name}-clamav-0.94.patch
13 URL:            http://klamav.sourceforge.net/
14 BuildRequires:  automake
15 BuildRequires:  clamav-devel >= 0.93
16 BuildRequires:  kdelibs-devel >= 9:3.2.0
17 BuildRequires:  rpmbuild(macros) >= 1.129
18 BuildRequires:  sed >= 4.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 ClamAV Anti-Virus protection for the KDE desktop. It includes:
23 - 'On Access' Scanning
24 - Manual Scanning
25 - Quarantine Management
26 - Downloading Updates
27 - Mail Scanning (KMail/Evolution)
28
29 %description -l pl.UTF-8
30 Antywirus ClamAV dla środowiska KDE. Zawiera:
31 - skanowanie przy dostępie
32 - ręczne skanowanie
33 - obsługę kwarantanny
34 - ściąganie uaktualnień
35 - skanowanie poczty (KMail/Evolution).
36
37 %prep
38 %setup -q -n %{name}-%{version}-source
39 mv klamav-%{version} klamav
40 %patch0 -p1
41 cd klamav
42 %patch1 -p0
43 cd -
44
45 %build
46 cd %{name}
47 cp -f /usr/share/automake/config.sub admin
48 %configure \
49 %if "%{_lib}" == "lib64"
50         --enable-libsuffix=64 \
51 %endif
52         --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
53         --with-qt-libraries=%{_libdir}
54
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_bindir},%{_desktopdir}}
60
61 %{__make} -C %{name} install \
62         DESTDIR=$RPM_BUILD_ROOT \
63         kde_htmldir=%{_kdedocdir} \
64         kde_libs_htmldir=%{_kdedocdir}
65
66 mv $RPM_BUILD_ROOT%{_datadir}/applnk/Utilities/klamav.desktop $RPM_BUILD_ROOT%{_desktopdir}
67 rm -rf $RPM_BUILD_ROOT%{_iconsdir}/locolor
68
69 %find_lang %{name} --with-kde --all-name
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files -f %{name}.lang
75 %defattr(644,root,root,755)
76 %doc %{name}/{AUTHORS,ChangeLog,INSTALL,NEWS,README,TODO}
77 %attr(755,root,root) %{_bindir}/ScanWithKlamAV
78 %attr(755,root,root) %{_bindir}/klamarkollon
79 %attr(755,root,root) %{_bindir}/klamav
80 %attr(755,root,root) %{_bindir}/klammail
81 %{_desktopdir}/*.desktop
82 %{_iconsdir}/hicolor/*/*/*.png
83 %{_datadir}/apps/%{name}
84 %{_datadir}/apps/konqueror/servicemenus/*.desktop
85 %{_datadir}/config.kcfg/*
This page took 0.257557 seconds and 3 git commands to generate.