]> git.pld-linux.org Git - packages/distcache.git/blobdiff - distcache.spec
- tabs in preamble
[packages/distcache.git] / distcache.spec
index 179c9402be4c9b7583b93a7530cd81c388480385..62d93368e2a540998502d921fe8a38e53bc23842 100644 (file)
@@ -1,23 +1,24 @@
 Summary:       Distributed SSL session cache
-Summary(pl):   Rozproszona pamiêæ podrêczna sesji SSL
+Summary(pl.UTF-8):     Rozproszona pamięć podręczna sesji SSL
 Name:          distcache
 Version:       1.4.5
-Release:       0.1
+Release:       0.5
 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
-Source3:       distcache.sysconfig
+Source3:       %{name}.sysconfig
 Patch0:                %{name}-setuid.patch
 URL:           http://www.distcache.org/
+BuildRequires: rpmbuild(macros) >= 1.228
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake >= 1:1.7
 BuildRequires: libtool
 BuildRequires: openssl-devel
-Requires(post):        /sbin/ldconfig
 Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name}-libs = %{version}-%{release}
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -26,16 +27,35 @@ 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.
+%description -l pl.UTF-8
+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 libs
+Summary:       Shared distcache distributed session cache libraries
+Summary(pl.UTF-8):     Współdzielone biblioteki rozproszonej pamięci podręcznej sesji
+Group:         Libraries
+
+%description libs
+This package includes the shared 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 libs -l pl.UTF-8
+Ten pakiet zawiera współdzielone biblioteki implementujące 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.
 
 %package devel
 Summary:       Header files for distcache distributed session cache library
-Summary(pl):   Pliki nag³ówkowe biblioteki rozproszonej pamiêci podrêcznej sesji distcache
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki rozproszonej pamięci podręcznej sesji distcache
 Group:         Development/Libraries
-Requires:      %{name} = %{version}-%{release}
+Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
 This package includes the header files for the libraries that
@@ -44,15 +64,16 @@ 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.
+%description devel -l pl.UTF-8
+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.
 
 %package static
 Summary:       Static distcache distributed session cache library
+Summary(pl.UTF-8):     Statyczne biblioteki rozproszonej pamięci podręcznej sesji
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
@@ -63,6 +84,13 @@ APIs for applications wishing to use a distributed session cache, or
 indeed even to implement a storage mechanism for a session cache
 server.
 
+%description static -l pl.UTF-8
+Ten pakiet zawiera statyczne biblioteki implementujące 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
@@ -96,41 +124,46 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/{nal_test,piper}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
 %post
-/sbin/ldconfig
 /sbin/chkconfig --add dc_server
 /sbin/chkconfig --add dc_client
+%service dc_server restart "Distcache SSL Session Cache Server"
+%service dc_client restart "Distcache SSL Session Cache Client Proxy"
 
 %preun
 if [ "$1" = "0" ]; then
-       /etc/rc.d/init.d/dc_server stop
        /sbin/chkconfig --del dc_server
-       /etc/rc.d/init.d/dc_client stop
        /sbin/chkconfig --del dc_client
+       %service -q dc_server stop
+       %service -q dc_client stop
 fi
 
-%postun -p /sbin/ldconfig
-
 %files
 %defattr(644,root,root,755)
 %doc ANNOUNCE CHANGES README LICENSE FAQ
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
 %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 libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/*.so
-%{_libdir}/*.la
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
 %{_includedir}/distcache
 %{_includedir}/libnal
 %{_mandir}/man2/*
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/lib*.a
This page took 0.140303 seconds and 4 git commands to generate.