# TODO: separate -static? Summary: Distributed SSL session cache Summary(pl): Rozproszona pamięć podręczna sesji SSL Name: distcache Version: 1.4.5 Release: 6 License: LGPL Group: Daemons Source0: http://dl.sourceforge.net/distcache/%{name}-%{version}.tar.bz2 # Source0-md5: bad485801024f711ad72e83ba1adcd7d Source1: dc_server.init Source2: dc_client.init Patch0: %{name}-1.4.5-setuid.patch URL: http://www.distcache.org/ BuildRequires: automake >= 1:1.7 BuildRequires: autoconf >= 2.50 BuildRequires: libtool BuildRequires: openssl-devel Requires(post): /sbin/ldconfig Requires(post,preun): /sbin/chkconfig Requires: rc-scripts BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The distcache package provides a variety of functionality for enabling a network-based session caching system, primarily for (though not restricted to) SSL/TLS session caching. %description -l pl Pakiet distcache udostępnia rozmaitą funkcjonalność mającą umożliwić działanie sieciowego systemu pamięci podręcznej sesji, głównie (choć niekoniecznie tylko) w celu zapamiętywania sesji SSL/TLS. %package devel Summary: Header files for distcache distributed session cache library Summary(pl): Pliki nagłówkowe biblioteki rozproszonej pamięci podręcznej sesji distcache Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package includes the header files for the libraries that implement the necessary network functionality, the session caching protocol, and APIs for applications wishing to use a distributed session cache, or indeed even to implement a storage mechanism for a session cache server. %description devel -l pl Ten pakiet zawiera pliki nagłówkowe bibliotek implementujących potrzebną funkcjonalność sieciową, protokół zapamiętywania sesji oraz API dla aplikacji chcących korzystać z rozproszonej pamięci podręcznej sesji lub mających samemu implementować mechanizm przechowywania danych dla serwera pamięci podręcznej sesji. %prep %setup -q %patch0 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} automake -aic --gnu || : automake ate my hamster %configure \ --enable-shared %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %{__make} -C ssl install \ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/rc.d/init.d install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dc_server install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dc_client # Unpackaged files rm -f $RPM_BUILD_ROOT%{_bindir}/{nal_test,piper} %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig /sbin/chkconfig --add dc_server /sbin/chkconfig --add dc_client %preun if [ "$1" = "0" ]; then /etc/rc.d/init.d/dc_server stop >/dev/null 2>&1 /etc/rc.d/init.d/dc_client stop >/dev/null 2>&1 /sbin/chkconfig --del dc_server /sbin/chkconfig --del dc_client fi %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc ANNOUNCE CHANGES README LICENSE FAQ %attr(755,root,root) %{_bindir}/sslswamp %attr(755,root,root) %{_bindir}/dc_* %attr(755,root,root) %{_libdir}/*.so.* %attr(754,root,root) /etc/rc.d/init.d/dc_* %{_datadir}/swamp %{_mandir}/man1/* %{_mandir}/man8/* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/*.so %{_libdir}/*.*a %{_includedir}/distcache %{_includedir}/libnal %{_mandir}/man2/*