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