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