]>
Commit | Line | Data |
---|---|---|
805671bc JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without clamav # build without clamav / virusfilter | |
4 | # | |
5 | %ifarch x32 | |
6 | %undefine with_clamav | |
7 | %endif | |
029c6e45 | 8 | Summary: Modules for c-icap ICAP server |
9 | Name: c-icap-modules | |
b8c0d968 | 10 | Version: 0.4.5 |
0708b039 | 11 | Release: 2 |
029c6e45 | 12 | License: BSD |
13 | Group: Libraries | |
b8c0d968 JR |
14 | Group: Networking/Daemons |
15 | Source0: http://downloads.sourceforge.net/c-icap/c_icap_modules-%{version}.tar.gz | |
16 | # Source0-md5: 1a7eaa7a34ff35c2440cf303f7b45f22 | |
029c6e45 | 17 | Patch0: %{name}-build.patch |
18 | URL: http://c-icap.sourceforge.net/ | |
b8c0d968 JR |
19 | BuildRequires: bzip2-devel |
20 | BuildRequires: c-icap-devel | |
805671bc | 21 | %{?with_clamav:BuildRequires: clamav-devel} |
b8c0d968 | 22 | BuildRequires: zlib-devel |
029c6e45 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Modules for c-icap ICAP server | |
27 | ||
28 | %package -n c-icap-srv_clamav | |
29 | Summary: ClamAV service for c-icap | |
30 | Group: Development/Libraries | |
b8c0d968 | 31 | Group: Networking/Daemons |
029c6e45 | 32 | Requires: c-icap |
33 | ||
34 | %description -n c-icap-srv_clamav | |
35 | ClamAV service for c-icap. | |
36 | ||
029c6e45 | 37 | %package -n c-icap-srv_url_check |
38 | Summary: URL check service for c-icap | |
39 | Group: Development/Libraries | |
b8c0d968 | 40 | Group: Networking/Daemons |
029c6e45 | 41 | Requires: c-icap |
42 | ||
43 | %description -n c-icap-srv_url_check | |
44 | URL check service for c-icap. | |
45 | ||
b8c0d968 JR |
46 | %package -n c-icap-srv_content_filtering |
47 | Summary: Content filtering service for c-icap | |
48 | Group: Libraries | |
49 | Group: Networking/Daemons | |
50 | Requires: c-icap | |
51 | ||
52 | %description -n c-icap-srv_content_filtering | |
53 | Content filtering service for c-icap. | |
029c6e45 | 54 | |
55 | %prep | |
56 | %setup -q -n c_icap_modules-%{version} | |
57 | %patch0 -p1 | |
58 | ||
59 | %build | |
029c6e45 | 60 | %{__autoconf} |
0eb38c0f | 61 | %configure |
b8c0d968 | 62 | |
029c6e45 | 63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/c-icap | |
69 | %{__make} install \ | |
70 | DESTDIR=$RPM_BUILD_ROOT | |
71 | ||
b8c0d968 JR |
72 | # Not installed by upstream |
73 | cp -a services/content_filtering/srv_content_filtering.conf.default \ | |
74 | $RPM_BUILD_ROOT%{_sysconfdir}/c-icap/srv_content_filtering.conf | |
75 | ||
76 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/c_icap/*.la | |
77 | ||
029c6e45 | 78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
805671bc | 81 | %if %{with clamav} |
029c6e45 | 82 | %files -n c-icap-srv_clamav |
83 | %defattr(644,root,root,755) | |
b8c0d968 JR |
84 | %attr(640,root,c-icap) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/c-icap/clamav_mod.conf |
85 | %attr(640,root,c-icap) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/c-icap/clamd_mod.conf | |
86 | %attr(640,root,c-icap) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/c-icap/virus_scan.conf | |
87 | %{_sysconfdir}/c-icap/clamav_mod.conf.default | |
88 | %{_sysconfdir}/c-icap/clamd_mod.conf.default | |
89 | %{_sysconfdir}/c-icap/virus_scan.conf.default | |
90 | %attr(755,root,root) %{_libdir}/c_icap/clamav_mod.so | |
91 | %attr(755,root,root) %{_libdir}/c_icap/clamd_mod.so | |
92 | %attr(755,root,root) %{_libdir}/c_icap/virus_scan.so | |
93 | %{_datadir}/c_icap/templates/virus_scan | |
805671bc | 94 | %endif |
029c6e45 | 95 | |
96 | %files -n c-icap-srv_url_check | |
97 | %defattr(644,root,root,755) | |
167bd907 | 98 | %attr(640,root,c-icap) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/c-icap/srv_url_check.conf |
b8c0d968 | 99 | %{_sysconfdir}/c-icap/srv_url_check.conf.default |
029c6e45 | 100 | %attr(755,root,root) %{_libdir}/c_icap/srv_url_check.so |
b8c0d968 JR |
101 | %{_datadir}/c_icap/templates/srv_url_check |
102 | %{_bindir}/c-icap-mods-sguardDB | |
103 | %{_mandir}/man8/c-icap-mods-sguardDB.8* | |
104 | ||
105 | %files -n c-icap-srv_content_filtering | |
106 | %defattr(644,root,root,755) | |
107 | %attr(640,root,c-icap) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/c-icap/srv_content_filtering.conf | |
108 | %{_sysconfdir}/c-icap/srv_content_filtering.conf.default | |
109 | %attr(755,root,root) %{_libdir}/c_icap/srv_content_filtering.so | |
110 | %{_datadir}/c_icap/templates/srv_content_filtering |