-Group(pl): Sieciowe/Serwery
-Copyright: GPL
-Source0: http://mike.daewoo.com.pl/computer/stunnel/%{name}-%{version}.tar.gz
-Patch0: stunnel-PLD.patch
-Patch1: stunnel-DESTDIR.patch
-Patch2: stunnel-3.4a-fix.patch
-Patch3: stunnel-dirs.patch
-URL: http://mike.daewoo.com.pl/computer/stunnel/
-BuildRequires: openssl-devel
-BuildRoot: /tmp/%{name}-%{version}-root
-
-%define certdir /var/state/openssl/certs
+Source0: ftp://stunnel.mirt.net/stunnel/%{name}-%{version}.tar.gz
+# Source0-md5: 7d53af550a1c2e01e146b936e58b8860
+Source1: %{name}.init
+Source2: %{name}.sysconfig
+Source3: %{name}.inet
+Patch0: %{name}-gethostbyname_is_in_libc_aka_no_libnsl.patch
+Patch1: %{name}-authpriv.patch
+Patch2: %{name}-ac_fixes.patch
+Patch3: %{name}-am.patch
+Patch4: %{name}-getgrnam.patch
+Patch5: %{name}-libwrap_srv_name_log.patch
+Patch6: %{name}-config.patch
+URL: http://www.stunnel.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: libwrap-devel
+BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: openssl-tools >= 0.9.7d
+BuildRequires: rpmbuild(macros) >= 1.202
+PreReq: rc-scripts
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(post,preun): /sbin/chkconfig
+Provides: group(stunnel)
+Provides: user(stunnel)
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)