2024-01-05 21:03:03 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f 1-2)
|
2024-01-05 21:03:03 +01:00
|
|
|
Name: c-icap
|
2024-02-02 13:56:35 +01:00
|
|
|
Version: 0.6.2
|
|
|
|
Release: 1mamba
|
2024-01-05 21:03:03 +01:00
|
|
|
Summary: An implementation of an ICAP server that can be used with HTTP proxies like Squid
|
|
|
|
Group: System/Servers
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 21:03:05 +01:00
|
|
|
URL: https://c-icap.sourceforge.net/
|
2024-01-05 21:03:04 +01:00
|
|
|
Source: https://sourceforge.net/projects/c-icap/files/c-icap/%{majver}.x/c_icap-%{version}.tar.gz
|
2024-01-05 21:03:05 +01:00
|
|
|
Source1: c-icap.service
|
|
|
|
Source2: c-icap.logrotate
|
|
|
|
Source3: c-icap.sysusers
|
|
|
|
Source4: c-icap.tmpfiles
|
2024-01-05 21:03:03 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-02-02 13:56:35 +01:00
|
|
|
BuildRequires: libatomic-devel
|
2024-01-05 21:03:04 +01:00
|
|
|
BuildRequires: libbrotli-devel
|
|
|
|
BuildRequires: libbzip2-devel
|
2024-01-05 21:03:03 +01:00
|
|
|
BuildRequires: libdb53-devel
|
2024-02-02 13:56:35 +01:00
|
|
|
BuildRequires: liblmdb-devel
|
2024-01-05 21:03:03 +01:00
|
|
|
BuildRequires: libopenldap-devel
|
2024-01-05 21:03:04 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
2024-02-02 13:56:35 +01:00
|
|
|
BuildRequires: libpcre2-devel
|
2024-01-05 21:03:03 +01:00
|
|
|
BuildRequires: libz-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires(pre): squid
|
|
|
|
Requires: libicapapi = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: logrotate
|
|
|
|
|
|
|
|
%description
|
|
|
|
c-icap is an implementation of an ICAP server. It can be used with HTTP proxies that support the ICAP protocol such as the Squid 3.x HTTP proxy server to implement content adaptation/filtering services.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development package for %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: libicapapi-devel = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
c-icap is an implementation of an ICAP server. It can be used with HTTP proxies that support the ICAP protocol such as the Squid 3.x HTTP proxy server to implement content adaptation/filtering services.
|
2024-01-05 21:03:05 +01:00
|
|
|
This package contains static libraries and header files needed for c-icap development.
|
2024-01-05 21:03:03 +01:00
|
|
|
|
|
|
|
%package -n libicapapi
|
|
|
|
Summary: Library used by %{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libicapapi
|
|
|
|
c-icap is an implementation of an ICAP server. It can be used with HTTP proxies that support the ICAP protocol such as the Squid 3.x HTTP proxy server to implement content adaptation/filtering services.
|
|
|
|
|
|
|
|
%package -n libicapapi-devel
|
|
|
|
Summary: Devel package for libicapapi
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: libicapapi = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n libicapapi-devel
|
|
|
|
c-icap is an implementation of an ICAP server. It can be used with HTTP proxies that support the ICAP protocol such as the Squid 3.x HTTP proxy server to implement content adaptation/filtering services.
|
2024-01-05 21:03:04 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-05 21:03:03 +01:00
|
|
|
|
2024-01-05 21:03:04 +01:00
|
|
|
%debug_package
|
2024-01-05 21:03:03 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n c_icap-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-05 21:03:05 +01:00
|
|
|
%configure \
|
|
|
|
--sysconfdir=%{_sysconfdir}/c-icap \
|
|
|
|
--enable-ipv6
|
|
|
|
|
|
|
|
#make c-icap.conf
|
2024-01-05 21:03:03 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall
|
|
|
|
|
2024-01-05 21:03:05 +01:00
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/c-icap.service
|
2024-01-05 21:03:03 +01:00
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/c-icap
|
2024-01-05 21:03:05 +01:00
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/c-icap.conf
|
|
|
|
install -D -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/c-icap.conf
|
2024-01-05 21:03:03 +01:00
|
|
|
install -d %{buildroot}/var/log/c-icap
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 21:03:05 +01:00
|
|
|
%pre
|
|
|
|
%sysusers_create_package c-icap %{SOURCE3}
|
|
|
|
%tmpfiles_create_package c-icap %{SOURCE4}
|
|
|
|
:
|
|
|
|
|
2024-01-05 21:03:03 +01:00
|
|
|
%post
|
2024-01-05 21:03:05 +01:00
|
|
|
%systemd_post c-icap.service
|
|
|
|
:
|
2024-01-05 21:03:03 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-05 21:03:05 +01:00
|
|
|
%systemd_preun c-icap.service
|
|
|
|
:
|
2024-01-05 21:03:03 +01:00
|
|
|
|
|
|
|
%postun
|
2024-01-05 21:03:05 +01:00
|
|
|
%systemd_postun_with_restart c-icap.service
|
|
|
|
:
|
2024-01-05 21:03:03 +01:00
|
|
|
|
|
|
|
%post -n libicapapi -p /sbin/ldconfig
|
|
|
|
%postun -n libicapapi -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 21:03:05 +01:00
|
|
|
%dir %{_sysconfdir}/c-icap
|
|
|
|
%config(noreplace) %{_sysconfdir}/c-icap/c-icap.conf
|
|
|
|
%{_sysconfdir}/c-icap/c-icap.conf.default
|
|
|
|
%config(noreplace) %{_sysconfdir}/c-icap/c-icap.magic
|
|
|
|
%{_sysconfdir}/c-icap/c-icap.magic.default
|
2024-01-05 21:03:03 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/c-icap
|
|
|
|
%{_bindir}/c-icap
|
|
|
|
%{_bindir}/c-icap-client
|
|
|
|
%{_bindir}/c-icap-mkbdb
|
2024-02-02 13:56:35 +01:00
|
|
|
%{_bindir}/c-icap-mklmdb
|
2024-01-05 21:03:03 +01:00
|
|
|
%{_bindir}/c-icap-stretch
|
2024-01-05 21:03:05 +01:00
|
|
|
%{_unitdir}/c-icap.service
|
|
|
|
%{_sysusersdir}/c-icap.conf
|
|
|
|
%{_tmpfilesdir}/c-icap.conf
|
2024-01-05 21:03:03 +01:00
|
|
|
%{_mandir}/man8/c-icap-client.8*
|
|
|
|
%{_mandir}/man8/c-icap-mkbdb.8*
|
2024-02-02 13:56:35 +01:00
|
|
|
%{_mandir}/man8/c-icap-mklmdb.8*
|
2024-01-05 21:03:03 +01:00
|
|
|
%{_mandir}/man8/c-icap-stretch.8*
|
|
|
|
%{_mandir}/man8/c-icap.8*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/c-icap-config
|
|
|
|
%{_mandir}/man8/c-icap-config.8*
|
|
|
|
|
|
|
|
%files -n libicapapi
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libicapapi.so.*
|
|
|
|
%dir %{_libdir}/c_icap
|
|
|
|
%{_libdir}/c_icap/*
|
2024-01-05 21:03:05 +01:00
|
|
|
%doc AUTHORS COPYING
|
2024-01-05 21:03:03 +01:00
|
|
|
|
|
|
|
%files -n libicapapi-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/c-icap-libicapapi-config
|
|
|
|
%dir %{_includedir}/c_icap
|
|
|
|
%{_includedir}/c_icap/*.h
|
|
|
|
%{_libdir}/libicapapi.so
|
|
|
|
%{_mandir}/man8/c-icap-libicapapi-config.8*
|
2024-01-05 21:03:05 +01:00
|
|
|
%doc README TODO
|
2024-01-05 21:03:03 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-02-02 13:56:35 +01:00
|
|
|
* Fri Feb 02 2024 Automatic Build System <autodist@openmamba.org> 0.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:03:05 +01:00
|
|
|
* Sat Apr 22 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.10-2mamba
|
|
|
|
- ported from sysv5 to systemd
|
|
|
|
|
2024-01-05 21:03:04 +01:00
|
|
|
* Sat Oct 23 2021 Automatic Build System <autodist@mambasoft.it> 0.5.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:03:04 +01:00
|
|
|
* Mon Oct 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.9-1mamba
|
|
|
|
- update to 0.5.9
|
|
|
|
|
2024-01-05 21:03:04 +01:00
|
|
|
* Thu Mar 04 2021 Automatic Build System <autodist@mambasoft.it> 0.5.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:03:04 +01:00
|
|
|
* Fri Feb 05 2021 Automatic Build System <autodist@mambasoft.it> 0.5.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 21:03:03 +01:00
|
|
|
* Sun Mar 29 2020 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.5.6-1mamba
|
|
|
|
- update to 0.5.6
|
|
|
|
|
2024-01-05 21:03:03 +01:00
|
|
|
* Mon Jul 25 2011 Automatic Build System <autodist@mambasoft.it> 0.1.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 28 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.5-3mamba
|
|
|
|
- fixed default configuration file
|
|
|
|
|
|
|
|
* Wed Apr 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.5-2mamba
|
|
|
|
- recreate c-icap.conf from patched c-icap.conf.in
|
|
|
|
- configure for running with squid group and user
|
|
|
|
|
|
|
|
* Wed Apr 13 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.5-1mamba
|
|
|
|
- package created by autospec
|