]> git.pld-linux.org Git - packages/stunnel.git/blob - stunnel.spec
- changed all BuildRoot definitons
[packages/stunnel.git] / stunnel.spec
1 Summary:        Universal SSL tunnel
2 Summary(pl):    Uniwersalne narzedzie do bezpiecznego tunelowania
3 Name:           stunnel
4 Version:        3.8
5 Release:        2
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(pl):      Sieciowe/Serwery
9 Source0:        http://mike.daewoo.com.pl/computer/stunnel/%{name}-%{version}.tar.gz
10 Patch1:         stunnel-DESTDIR.patch
11 Patch2:         stunnel-dirs.patch
12 Patch3:         stunnel-fixargs.patch
13 URL:            http://mike.daewoo.com.pl/computer/stunnel/
14 BuildRequires:  openssl-devel >= 0.9.4-2
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         certdir         /var/state/openssl/certs
18
19 %description
20 The stunnel program is designed to work as SSL encryption wrapper between
21 remote client and local (inetd-startable) or remote server. The concept is
22 that having non-SSL aware daemons running on your system you can easily
23 setup them to communicate with clients over secure SSL channel. stunnel can
24 be used to add SSL functionality to commonly used inetd daemons like POP-2,
25 POP-3 and IMAP servers without any changes in the programs' code.
26
27 %description -l pl
28 Stunnel umo¿liwia stawianie silnie kodowanych tuneli pomiêdzy serwerem a
29 komputerem klienta. Przy jego u¿yciu mo¿na ³atwo zrealizowaæ us³ugi pop3s
30 lub https.
31
32 %prep
33 %setup -q
34 %patch1 -p1 
35 %patch2 -p1 
36 %patch3 -p0 
37
38 %build
39 autoconf
40 CFLAGS="$RPM_OPT_FLAGS -DHAVE_GETOPT"
41 LDFLAGS="-s"
42 export CFLAGS LDFLAGS
43 %configure 
44         
45 make certdir=%{certdir}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 make install \
51         DESTDIR=$RPM_BUILD_ROOT \
52         certdir=$RPM_BUILD_ROOT/%{certdir}
53         
54 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
55         FAQ HISTORY README BUGS 
56
57 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc {FAQ,HISTORY,README,BUGS}.gz 
66 %doc %lang(pl) doc.polish/*
67 %doc stunnel.exe
68 %attr(755,root,root) %{_sbindir}/*
69 %attr(755,root,root) %{_libdir}/*
70
71 %{_mandir}/man8/*
72 %config(noreplace) %verify(not size mtime md5) %attr(600,root,root) %{certdir}/stunnel.pem
This page took 0.044307 seconds and 4 git commands to generate.