]>
Commit | Line | Data |
---|---|---|
f18d6268 | 1 | # |
2 | # TODO | |
3 | # - init script | |
4 | # | |
5 | Summary: C implementation of an ICAP server | |
6 | Name: c-icap | |
7 | Version: 0.1.4 | |
8 | Release: 0.1 | |
9 | License: BSD | |
10 | Group: Libraries | |
11 | Source0: http://dl.sourceforge.net/c-icap/c_icap-%{version}.tar.gz | |
12 | # Source0-md5: e1ce94fe7beaaa9318c3595694b10709 | |
13 | Patch0: %{name}-ld.patch | |
14 | Patch1: %{name}-align-64bit.patch | |
15 | Patch2: %{name}-conf.patch | |
16 | URL: http://c-icap.sourceforge.net/ | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | c-icap is an implementation of an ICAP server. It can be used with | |
21 | HTTP proxies that support the ICAP protocol to implement content | |
22 | adaptation and filtering services. | |
23 | ||
24 | %package devel | |
25 | Summary: Header files for c-icap library | |
26 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki c-icap | |
27 | Group: Development/Libraries | |
28 | Requires: %{name} = %{version}-%{release} | |
29 | ||
30 | %description devel | |
31 | Header files for c-icap library. | |
32 | ||
33 | %description devel -l pl.UTF-8 | |
34 | Pliki nagłówkowe biblioteki c-icap. | |
35 | ||
36 | %package static | |
37 | Summary: Static c-icap library | |
38 | Summary(pl.UTF-8): Statyczna biblioteka c-icap | |
39 | Group: Development/Libraries | |
40 | Requires: %{name}-devel = %{version}-%{release} | |
41 | ||
42 | %description static | |
43 | Static c-icap library. | |
44 | ||
45 | %description static -l pl.UTF-8 | |
46 | Statyczna biblioteka c-icap. | |
47 | ||
48 | %prep | |
49 | %setup -q -n c_icap-%{version} | |
50 | %patch0 -p1 | |
51 | %patch1 -p1 | |
52 | %patch2 -p1 | |
53 | ||
54 | %build | |
55 | %{__libtoolize} | |
56 | %{__aclocal} | |
57 | %{__autoconf} | |
58 | %{__autoheader} | |
59 | %configure | |
60 | %{__automake} | |
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | install -d $RPM_BUILD_ROOT%{_datadir}/c_icap/templates | |
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc README | |
79 | %attr(755,root,root) %{_bindir}/c-icap | |
80 | %attr(755,root,root) %{_bindir}/c-icap-client | |
81 | %attr(755,root,root) %{_bindir}/c-icap-config | |
82 | %attr(755,root,root) %{_bindir}/c-icap-libicapapi-config | |
83 | %attr(755,root,root) %{_bindir}/c-icap-mkbdb | |
84 | %attr(755,root,root) %{_bindir}/c-icap-stretch | |
85 | %{_sysconfdir}/c-icap.conf | |
86 | %{_sysconfdir}/c-icap.magic | |
87 | %attr(755,root,root) %{_libdir}/libicapapi.so.*.*.* | |
88 | %attr(755,root,root) %ghost %{_libdir}/libicapapi.so.0 | |
89 | %attr(755,root,root) %{_libdir}/c_icap/bdb_tables.so | |
90 | %attr(755,root,root) %{_libdir}/c_icap/dnsbl_tables.so | |
91 | %attr(755,root,root) %{_libdir}/c_icap/ldap_module.so | |
92 | %attr(755,root,root) %{_libdir}/c_icap/srv_echo.so | |
93 | %attr(755,root,root) %{_libdir}/c_icap/sys_logger.so | |
94 | %{_mandir}/man8/c-icap.8.gz | |
95 | %{_mandir}/man8/c-icap-client.8.gz | |
96 | %{_mandir}/man8/c-icap-config.8.gz | |
97 | %{_mandir}/man8/c-icap-libicapapi-config.8.gz | |
98 | %{_mandir}/man8/c-icap-mkbdb.8.gz | |
99 | %{_mandir}/man8/c-icap-stretch.8.gz | |
100 | %attr(755,root,root) %dir %{_datadir}/c_icap | |
101 | %attr(755,root,root) %dir /var/run/c-icap | |
102 | ||
103 | %files devel | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/libicapapi.so | |
106 | %{_includedir}/c_icap | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libicapapi.la | |
111 | %attr(755,root,root) %{_libdir}/c_icap/bdb_tables.la | |
112 | %attr(755,root,root) %{_libdir}/c_icap/dnsbl_tables.la | |
113 | %attr(755,root,root) %{_libdir}/c_icap/ldap_module.la | |
114 | %attr(755,root,root) %{_libdir}/c_icap/srv_echo.la | |
115 | %attr(755,root,root) %{_libdir}/c_icap/sys_logger.la |