]> git.pld-linux.org Git - packages/distcache.git/blob - distcache.spec
- shared sysconfig for dc_client and dc_server
[packages/distcache.git] / distcache.spec
1 # TODO: separate -static?
2 Summary:        Distributed SSL session cache
3 Summary(pl):    Rozproszona pamiêæ podrêczna sesji SSL
4 Name:           distcache
5 Version:        1.4.5
6 Release:        6
7 License:        LGPL
8 Group:          Daemons
9 Source0:        http://dl.sourceforge.net/distcache/%{name}-%{version}.tar.bz2
10 # Source0-md5:  bad485801024f711ad72e83ba1adcd7d
11 Source1:        dc_server.init
12 Source2:        dc_client.init
13 Patch0:         %{name}-1.4.5-setuid.patch
14 URL:            http://www.distcache.org/
15 BuildRequires:  automake >= 1:1.7
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  libtool
18 BuildRequires:  openssl-devel
19 Requires(post): /sbin/ldconfig
20 Requires(post,preun):   /sbin/chkconfig
21 Requires:       rc-scripts
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The distcache package provides a variety of functionality for enabling
26 a network-based session caching system, primarily for (though not
27 restricted to) SSL/TLS session caching.
28
29 %description -l pl
30 Pakiet distcache udostêpnia rozmait± funkcjonalno¶æ maj±c± umo¿liwiæ
31 dzia³anie sieciowego systemu pamiêci podrêcznej sesji, g³ównie (choæ
32 niekoniecznie tylko) w celu zapamiêtywania sesji SSL/TLS.
33
34 %package devel
35 Summary:        Header files for distcache distributed session cache library
36 Summary(pl):    Pliki nag³ówkowe biblioteki rozproszonej pamiêci podrêcznej sesji distcache
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 This package includes the header files for the libraries that
42 implement the necessary network functionality, the session caching
43 protocol, and APIs for applications wishing to use a distributed
44 session cache, or indeed even to implement a storage mechanism for a
45 session cache server.
46
47 %description devel -l pl
48 Ten pakiet zawiera pliki nag³ówkowe bibliotek implementuj±cych
49 potrzebn± funkcjonalno¶æ sieciow±, protokó³ zapamiêtywania sesji oraz
50 API dla aplikacji chc±cych korzystaæ z rozproszonej pamiêci podrêcznej
51 sesji lub maj±cych samemu implementowaæ mechanizm przechowywania
52 danych dla serwera pamiêci podrêcznej sesji.
53
54 %prep
55 %setup -q
56 %patch0 -p1
57
58 %build
59 %{__libtoolize}
60 %{__aclocal}
61 %{__autoconf}
62 automake -aic --gnu || : automake ate my hamster
63 %configure \
64         --enable-shared
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %{__make} -C ssl install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
77 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dc_server
78 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dc_client
79
80 # Unpackaged files
81 rm -f $RPM_BUILD_ROOT%{_bindir}/{nal_test,piper}
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 /sbin/ldconfig
88 /sbin/chkconfig --add dc_server
89 /sbin/chkconfig --add dc_client
90
91 %preun
92 if [ "$1" = "0" ]; then
93         /etc/rc.d/init.d/dc_server stop >/dev/null 2>&1
94         /etc/rc.d/init.d/dc_client stop >/dev/null 2>&1
95         /sbin/chkconfig --del dc_server
96         /sbin/chkconfig --del dc_client
97 fi
98
99 %postun -p /sbin/ldconfig
100
101 %files
102 %defattr(644,root,root,755)
103 %doc ANNOUNCE CHANGES README LICENSE FAQ
104 %attr(755,root,root) %{_bindir}/sslswamp
105 %attr(755,root,root) %{_bindir}/dc_*
106 %attr(755,root,root) %{_libdir}/*.so.*
107 %attr(754,root,root) /etc/rc.d/init.d/dc_*
108 %{_datadir}/swamp
109 %{_mandir}/man1/*
110 %{_mandir}/man8/*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/*.so
115 %{_libdir}/*.*a
116 %{_includedir}/distcache
117 %{_includedir}/libnal
118 %{_mandir}/man2/*
This page took 0.056984 seconds and 3 git commands to generate.