c-icap rpm for el7 http://c-icap.sourceforge.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

249 lines
7.1 KiB

  1. Summary: An implementation of an ICAP server
  2. Name: c-icap
  3. Version: 0.5.6
  4. Release: 1%{?dist}
  5. License: LGPL
  6. Source0: http://sourceforge.net/projects/c-icap/files/c-icap/0.5.x/c_icap-%{version}.tar.gz
  7. Source1: %{name}.service
  8. Source2: %{name}.logrotate
  9. Source4: tmpfiles.conf
  10. URL: http://%{name}.sourceforge.net/
  11. Requires: %{name}-libs = %{version}-%{release}
  12. BuildRequires: db4-devel
  13. BuildRequires: gdbm-devel
  14. BuildRequires: openldap-devel
  15. BuildRequires: zlib-devel perl-devel
  16. %description
  17. C-icap is an implementation of an ICAP server. It can be used with HTTP
  18. proxies that support the ICAP protocol to implement content adaptation
  19. and filtering services. Most of the commercial HTTP proxies must support
  20. the ICAP protocol, the open source Squid 3.x proxy server supports it too.
  21. %package devel
  22. Summary: Development tools for %{name}
  23. Group: Development/Libraries
  24. Requires: %{name}-libs = %{version}-%{release}
  25. Requires: zlib-devel
  26. %description devel
  27. The %{name}-devel package contains the static libraries and header files
  28. for developing software using %{name}.
  29. %package ldap
  30. Summary: The LDAP module for %{name}
  31. Group: System Environment/Libraries
  32. Requires: %{name} = %{version}-%{release}
  33. %description ldap
  34. The %{name}-ldap package contains the LDAP module for %{name}.
  35. %package libs
  36. Summary: Libraries used by %{name}
  37. Group: System Environment/Libraries
  38. %description libs
  39. The %{name}-libs package contains all runtime libraries used by %{name} and
  40. the utilities.
  41. %package perl
  42. Summary: The Perl handler for %{name}
  43. Group: System Environment/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. %description perl
  46. The %{name}-perl package contains the Perl handler for %{name}.
  47. %package progs
  48. Summary: Related programs for %{name}
  49. Group: Applications/Internet
  50. Requires: %{name}-libs = %{version}-%{release}
  51. %description progs
  52. The %{name}-progs package contains several commandline tools for %{name}.
  53. %prep
  54. %setup -q -n c_icap-%{version}
  55. %build
  56. %configure \
  57. CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" \
  58. --disable-static \
  59. --sysconfdir=%{_sysconfdir}/%{name} \
  60. --prefix='' \
  61. --with-perl \
  62. --with-zlib \
  63. --with-bdb \
  64. --with-ldap \
  65. --enable-large-files
  66. %{__make} %{?_smp_mflags}
  67. %install
  68. [ -n "%{buildroot}" -a "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
  69. %{__mkdir_p} %{buildroot}%{_sysconfdir}/logrotate.d
  70. %{__mkdir_p} %{buildroot}%{_sbindir}
  71. %{__mkdir_p} %{buildroot}%{_datadir}/c_icap/{contrib,templates}
  72. %{__mkdir_p} %{buildroot}%{_localstatedir}/log/%{name}
  73. %{__make} DESTDIR=%{buildroot} install
  74. %{__mv} -f %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}
  75. %{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
  76. %{__install} -D -p -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
  77. %{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/c-icap.service
  78. %{__install} -m 0755 contrib/*.pl %{buildroot}%{_datadir}/c_icap/contrib
  79. %{__rm} -f %{buildroot}%{_libdir}/lib*.so.{?,??}
  80. %pre
  81. if ! getent group %{name} >/dev/null 2>&1; then
  82. /usr/sbin/groupadd -r %{name}
  83. fi
  84. if ! getent passwd %{name} >/dev/null 2>&1; then
  85. /usr/sbin/useradd -r -g %{name} \
  86. -d %{_localstatedir}/run/%{name} \
  87. -c "C-ICAP Service user" -M \
  88. -s /sbin/nologin %{name}
  89. fi
  90. exit 0 # Always pass
  91. %post
  92. %systemd_post c-icap.service
  93. %post libs -p /sbin/ldconfig
  94. %preun
  95. %systemd_preun c-icap.service
  96. %postun
  97. %systemd_postun_with_restart c-icap.service
  98. %postun libs -p /sbin/ldconfig
  99. %files
  100. %defattr(-,root,root)
  101. %doc AUTHORS COPYING INSTALL README TODO
  102. %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}
  103. %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*.conf
  104. %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*.magic
  105. %attr(640,root,%{name}) %{_sysconfdir}/%{name}/*.default
  106. %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
  107. %{_unitdir}/c-icap.service
  108. %dir %{_libdir}/c_icap
  109. %{_libdir}/c_icap/bdb_tables.so
  110. %{_libdir}/c_icap/dnsbl_tables.so
  111. %{_libdir}/c_icap/srv_echo.so
  112. %{_libdir}/c_icap/sys_logger.so
  113. %{_libdir}/c_icap/shared_cache.so
  114. %{_sbindir}/%{name}
  115. %{_datadir}/c_icap
  116. %{_mandir}/man8/%{name}.8*
  117. %attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
  118. %attr(750,%{name},%{name}) %dir %{_localstatedir}/run/%{name}
  119. %{_tmpfilesdir}/c-icap.conf
  120. %files devel
  121. %defattr(-,root,root)
  122. %{_bindir}/%{name}-*config
  123. %{_includedir}/c_icap
  124. %{_libdir}/libicapapi.*a
  125. %{_libdir}/libicapapi.so
  126. %{_libdir}/c_icap/bdb_tables.*a
  127. %{_libdir}/c_icap/dnsbl_tables.*a
  128. %{_libdir}/c_icap/ldap_module.*a
  129. %{_libdir}/c_icap/perl_handler.*a
  130. %{_libdir}/c_icap/srv_echo.*a
  131. %{_libdir}/c_icap/sys_logger.*a
  132. %{_libdir}/c_icap/srv_ex206.*a
  133. %{_libdir}/c_icap/shared_cache.*a
  134. %{_mandir}/man8/%{name}-*config.8*
  135. %files ldap
  136. %defattr(-,root,root)
  137. %{_libdir}/c_icap/ldap_module.so
  138. %files libs
  139. %defattr(-,root,root)
  140. %doc COPYING
  141. %{_libdir}/libicapapi.so.*
  142. %{_libdir}/c_icap/srv_ex206.so
  143. %files perl
  144. %defattr(-,root,root)
  145. %{_libdir}/c_icap/perl_handler.so
  146. %files progs
  147. %defattr(-,root,root)
  148. %{_bindir}/%{name}-client
  149. %{_bindir}/%{name}-mkbdb
  150. %{_bindir}/%{name}-stretch
  151. %{_mandir}/man8/%{name}-client.8*
  152. %{_mandir}/man8/%{name}-mkbdb.8*
  153. %{_mandir}/man8/%{name}-stretch.8*
  154. %changelog
  155. * Wed Dec 11 2019 Daniel Berteaud <daniel@firewall-services.com> 0.5.6-1
  156. - Update to 0.5.6 (daniel@firewall-services.com)
  157. * Tue Nov 27 2018 Daniel Berteaud <daniel@firewall-services.com> 0.5.5-1
  158. - Update sources to 0.5.5 (daniel@firewall-services.com)
  159. - Update tito config to use GitLfsBuilder (daniel@firewall-services.com)
  160. - Track sources with git lfs (daniel@firewall-services.com)
  161. * Mon Feb 19 2018 Daniel Berteaud <daniel@firewall-services.com> 0.5.3-0.beta6
  162. - Remove debug statements in service unit (daniel@firewall-services.com)
  163. * Sun Feb 18 2018 Daniel Berteaud <daniel@firewall-services.com> 0.5.3-1
  164. - Stable release
  165. - Clean spec file
  166. - Use syslog for daemon logging
  167. - Update to 0.5.3
  168. * Wed Sep 27 2017 Giacomo Sanchietti <giacomo.sanchietti@nethesis.it> - 0.5.2
  169. - Rebuild for 0.5.2 on el7
  170. * Thu May 21 2015 Davide Principi <davide.principi@nethesis.it> - 0.4.2-1
  171. - Rebuild for 0.4.2 on el7
  172. * Thu May 21 2015 Davide Principi <davide.principi@nethesis.it> - 0.3.5-1
  173. - Rebuild for 0.3.5 on ns7
  174. * Thu May 30 2013 Giacomo Sanchietti <giacomo.sanchietti@nethesis.it> - 0.2.5
  175. - Enable large files support
  176. - New version 0.2.5
  177. * Fri Oct 21 2011 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.7-1
  178. - New version (0.1.7)
  179. * Mon Jun 06 2011 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.6-1
  180. - New version (0.1.6)
  181. * Mon Apr 04 2011 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.5-1
  182. - New version (0.1.5)
  183. * Mon Jan 17 2011 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.4-1
  184. - New version (0.1.4)
  185. * Tue Nov 02 2010 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.3-1
  186. - New version (0.1.3)
  187. * Fri Oct 15 2010 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.2-1
  188. - New version (0.1.2)
  189. * Mon Jul 05 2010 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.1-1
  190. - New version (0.1.1)
  191. * Wed Jun 02 2010 Peter Pramberger <peterpramb@member.fsf.org> - 0.1.1-0.1.pre3
  192. - Initial build