From 34b5dcd0f6923f9c5ad13b8a0af5bdfde0e3f473 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 6 Dec 2005 19:21:38 +0000 Subject: [PATCH] - pl, some cleanups Changed files: distcache.spec -> 1.2 --- distcache.spec | 92 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 55 insertions(+), 37 deletions(-) diff --git a/distcache.spec b/distcache.spec index fc990cd..d8f1d98 100644 --- a/distcache.spec +++ b/distcache.spec @@ -1,99 +1,117 @@ - +# 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: System Environment/Daemons -###### Unknown group! -URL: http://www.distcache.org/ +Group: Daemons Source0: %{name}-%{version}.tar.bz2 -Patch0: %{name}-1.4.5-setuid.patch Source1: dc_server.init Source2: dc_client.init -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -BuildRequires: automake >= 1.7 +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: /sbin/chkconfig +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 -Summary: Development tools for distcache distributed session cache -Requires: distcache = %{version} +Requires: %{name} = %{version}-%{release} %description devel -This package includes 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. +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 -b .setuid +%patch0 -p1 %build -libtoolize --force --copy && aclocal && autoconf +%{__libtoolize} +%{__aclocal} +%{__autoconf} automake -aic --gnu || : automake ate my hamster -%configure --enable-shared -%{__make} %{?_smp_mflags} +%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%{_sysconfdir}/rc.d/init.d -install $RPM_SOURCE_DIR/dc_server.init \ - $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dc_server -install $RPM_SOURCE_DIR/dc_client.init \ - $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dc_client +%{__make} -C ssl install \ + DESTDIR=$RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_sbindir} +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 -/sbin/ldconfig %preun -if [ $1 = 0 ]; then - /sbin/service dc_server stop > /dev/null 2>&1 - /sbin/service dc_client stop > /dev/null 2>&1 +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 -%clean -rm -rf $RPM_BUILD_ROOT - %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(754,root,root) /etc/rc.d/init.d/dc_* -%doc ANNOUNCE CHANGES README LICENSE FAQ %attr(755,root,root) %{_libdir}/*.so.* +%attr(754,root,root) /etc/rc.d/init.d/dc_* +%{_datadir}/swamp %{_mandir}/man1/* %{_mandir}/man8/* -%{_datadir}/swamp %files devel %defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/*.so +%{_libdir}/*.*a %{_includedir}/distcache %{_includedir}/libnal -%{_libdir}/*.*a -%attr(755,root,root) %{_libdir}/*.so %{_mandir}/man2/* -- 2.43.0