summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/applications/klamav/klamav.spec
blob: d2be3c790b95aa2fb33daa281ca9d9b0460fdfa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
Summary:	KDE frontend for the Clam AntiVirus virus scanner
Name:		klamav
Version:	0.46
Release:	%mkrel 4
License:	GPLv2+
Group:		File tools
URL:		http://sourceforge.net/projects/klamav/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.tar.gz
Source1:	klamav.sh
Patch0:		klamav-0.46-default-db-dir.diff
Patch1:         klamav-0.42-fix-window-size.patch
Patch2:		klamav-0.41.1-pwd-echo.patch
Patch3:		klamav-0.46-gcc43.patch
BuildRequires:	kdelibs-devel
BuildRequires:	clamav-devel >= 0.93
BuildRequires:	desktop-file-utils
Requires:	clamav >= 0.93
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
KlamAV provides ClamAV protection for the KDE desktop. It includes
'on access' scanning, manual scanning, quarantine management,
downloading of updates, mail scanning, and automated installation.

%prep

%setup -qn %{name}-%{version}-source/%{name}-%{version}
#patch0 -p1 -b .default_db_directory
%patch1 -p0 -b .fix_window_size
%patch2 -p1 -b .pwd-echo
%patch3 -p1 -b .gcc43

%build
%configure_kde3
%make

%install
rm -Rf %{buildroot}

%makeinstall_std

mkdir -p %{buildroot}/{%{_menudir},%{_miconsdir},%{_liconsdir}}

mkdir -p %{buildroot}%{_kde3_datadir}/applications/kde
desktop-file-install --vendor='' --delete-original \
	--dir=%{buildroot}%{_kde3_datadir}/applications/kde \
	--remove-category="Application" \
	--add-category="Security" \
	%{buildroot}%{_kde3_datadir}/applnk/Utilities/klamav.desktop


# Copy translated virus browser
# Next release this shoul be made standard
mv %{buildroot}%{_kde3_bindir}/klamav %{buildroot}%{_kde3_bindir}/klamav-real
cp %SOURCE1 %{buildroot}%{_kde3_bindir}/klamav

%find_lang %{name} --with-html --all-name

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -Rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%attr (755,root,root) %{_kde3_bindir}/*
%{_kde3_datadir}/apps/%{name}
%{_kde3_iconsdir}/*/*/*/%{name}.png
%{_kde3_datadir}/applications/kde/*.desktop
%{_kde3_datadir}/apps/konqueror/servicemenus/klamav-dropdown.desktop
%{_kde3_datadir}/config.kcfg/*.kcfg


%changelog
* Fri Jul 22 2011 Tim Williams <[email protected]> 0.46-4mdv2010.2
+ Rebuild for Trinity

* Wed Jul 21 2010 Tim Williams <[email protected]> 0.46-3mdv2010.1
+ Rebuild for MDV 2010.1

* Tue Nov 17 2009 Tim Williams <[email protected]> 0.46-2mdv2010.0
+ Rebuild for MDV 2010.0

* Sat Mar 14 2009 Buchan Milne <[email protected]> 0.46-1mdv2009.1
+ Revision: 355062
- New version 0.46
- drop vlamav 0.nf patch, fixed upstream
- rediff patches

* Thu Sep 04 2008 Oden Eriksson <[email protected]> 0.44-2mdv2009.0
+ Revision: 280731
- fix build against clamav-0.94 libs
- rebuild against new clamav libs

* Sun Jul 06 2008 Funda Wang <[email protected]> 0.44-1mdv2009.0
+ Revision: 232258
- New version 0.44
- switch to /opt
- drop patch4 not needed

  + Pixel <[email protected]>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Wed May 21 2008 Oden Eriksson <[email protected]> 0.42-4mdv2009.0
+ Revision: 209718
- bump release
- sync with fedora
- rebuild

  + Nicolas Lécureuil <[email protected]>
    - Fix some UI issues

* Sun Jan 20 2008 Funda Wang <[email protected]> 0.42-1mdv2008.1
+ Revision: 155212
- New version 0.42

  + Thierry Vignaud <[email protected]>
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <[email protected]>
    - restore BuildRoot

* Thu Aug 09 2007 Funda Wang <[email protected]> 0.41.1-2mdv2008.0
+ Revision: 60769
- drop old menu
- New version 0.41.1


* Sun Mar 04 2007 Emmanuel Andry <[email protected]> 0.41-2mdv2007.0
+ Revision: 131925
- rebuild for new libclamav

* Sat Feb 24 2007 Tomasz Pawel Gajc <[email protected]> 0.41-1mdv2007.1
+ Revision: 125377
- new version
- use --disable-rpath
- pass some other options into the %%configure
- drop sources 2,4,5
- use %%find_lang
- some cleans in spec file

* Thu Dec 14 2006 Emmanuel Andry <[email protected]> 0.39-2mdv2007.1
+ Revision: 96844
- remove support for version older than MDV10.1

* Thu Dec 14 2006 Emmanuel Andry <[email protected]> 0.39-1mdv2007.1
+ Revision: 96583
- New version 0.39
  drop patches 1 2 3 4 5

  + Andreas Hasenack <[email protected]>
    - renamed mdv to packages because mdv is too generic and it's hosting only packages anyway

  + Helio Chissini de Castro <[email protected]>
    - Fix for proxy cnofigurations. Not everyone use proxy with user and pwd.
    - Fixed media:/ or devices:/ patch
    - Added patch for translate html files. Still not the optimal solution, but
      works for current requirements
    - Added translation for .html about files
    - Fixded pt_BR translation. Patch will be submitted upstream
    - Added better ui handling by Gustavo Boiko <[email protected]>, using media:/
      on KDE 3.5
    - No nrpoc compilation
    - Upload packages with OEM fixes
    - Created package structure for klamav.

* Tue Nov 22 2005 Laurent MONTEL <[email protected]> 0.32-1
- 0.32

* Fri Nov 18 2005 Oden Eriksson <[email protected]> 0.22.1-2mdk
- rebuilt against openssl-0.9.8a

* Fri Aug 26 2005 Buchan Milne <[email protected]> 0.22.1-1mdk
- New release 0.22.1

* Tue Jul 26 2005 Nicolas Lécureuil <[email protected]> 0.22-1mdk
- New release 0.22

* Wed Jul 13 2005 Buchan Milne <[email protected]> 0.20.1-1mdk
- New release 0.20.1

* Fri May 27 2005 Nicolas Lécureuil <[email protected]> 0.20-1mdk
-  0.20

* Tue May 24 2005 Eskild Hustvedt <[email protected]> 0.17.2-3mdk
- Rebuild

* Fri Apr 29 2005 Nicolas Lécureuil <[email protected]> 0.17.2-2mdk
- Fix BuildRequires

* Fri Apr 29 2005 Nicolas Lécureuil <[email protected]> 0.17.2-1mdk
- 0.17.2

* Wed Apr 13 2005 Oden Eriksson <[email protected]> 0.17-1mdk
- 0.17
- rediff P0
- nuke rpath

* Sat Apr 09 2005 Oden Eriksson <[email protected]> 0.12.1-1mdk
- 0.12.1
- use the %%mkrel macro
- fix description
- fix P0, in another place

* Sat Oct 16 2004 Lenny Cartier <[email protected]> 0.06-1mdk
- 0.06

* Wed Sep 29 2004 Buchan Milne <[email protected]> 0.05-1mdk
- first Mandrake package
- p0 to use our clamav-db path