- Fix inetd mode

- Remove unnecessary Requires: and BuildRequires:
- Clean up the spec file
This commit is contained in:
Miloslav Trmac 2005-06-01 11:49:11 +00:00
parent 39031c369b
commit a43187da6b
2 changed files with 20 additions and 24 deletions

View File

@ -1,3 +1,2 @@
stunnel-4.05.tar.gz stunnel-4.10.tar.gz
stunnel-4.08.tar.gz stunnel-4.10.tar.gz.asc
stunnel-4.08.tar.gz.asc

View File

@ -1,7 +1,7 @@
Summary: An SSL-encrypting socket wrapper. Summary: An SSL-encrypting socket wrapper.
Name: stunnel Name: stunnel
Version: 4.10 Version: 4.10
Release: 1 Release: 2
License: GPL License: GPL
Group: Applications/Internet Group: Applications/Internet
URL: http://stunnel.mirt.net/ URL: http://stunnel.mirt.net/
@ -15,14 +15,10 @@ Source6: pop3-redirect.xinetd
Source7: stunnel-pop3s-client.conf Source7: stunnel-pop3s-client.conf
Patch0: stunnel-4.08-authpriv.patch Patch0: stunnel-4.08-authpriv.patch
Patch1: stunnel-4.08-sample.patch Patch1: stunnel-4.08-sample.patch
Patch2: stunnel-4.10-noprompt.patch Patch2: stunnel-4.10-inetd.patch
Buildroot: %{_tmppath}/stunnel-root Buildroot: %{_tmppath}/stunnel-root
BuildPrereq: automake, autoconf, libtool, openssl-devel, perl, pkgconfig,
# util-linux is needed for rename # util-linux is needed for rename
BuildPrereq: tcp_wrappers, /usr/share/dict/words, util-linux BuildRequires: openssl-devel, pkgconfig, tcp_wrappers, util-linux
Prereq: coreutils, /bin/mktemp, /sbin/ldconfig
Prereq: /usr/share/dict/words, /bin/hostname, /usr/bin/id, /usr/bin/getent
Requires: make
%description %description
Stunnel is a socket wrapper which can provide SSL (Secure Sockets Stunnel is a socket wrapper which can provide SSL (Secure Sockets
@ -33,34 +29,27 @@ in conjunction with imapd to create an SSL secure IMAP server.
%setup -q %setup -q
%patch0 -p1 -b .authpriv %patch0 -p1 -b .authpriv
%patch1 -p1 -b .sample %patch1 -p1 -b .sample
%patch2 -p1 -b .noprompt %patch2 -p1 -b .inetd
iconv -f iso-8859-1 -t utf-8 < doc/stunnel.fr.8 > doc/stunnel.fr.8_ iconv -f iso-8859-1 -t utf-8 < doc/stunnel.fr.8 > doc/stunnel.fr.8_
mv doc/stunnel.fr.8_ doc/stunnel.fr.8 mv doc/stunnel.fr.8_ doc/stunnel.fr.8
iconv -f iso-8859-2 -t utf-8 < doc/stunnel.pl.8 > doc/stunnel.pl.8_ iconv -f iso-8859-2 -t utf-8 < doc/stunnel.pl.8 > doc/stunnel.pl.8_
mv doc/stunnel.pl.8_ doc/stunnel.pl.8 mv doc/stunnel.pl.8_ doc/stunnel.pl.8
autoreconf
%build %build
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
if pkg-config openssl ; then if pkg-config openssl ; then
CFLAGS="$CFLAGS `pkg-config --cflags openssl`"; CFLAGS="$CFLAGS `pkg-config --cflags openssl`";
LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS LDFLAGS="`pkg-config --libs-only-L openssl`"; export LDFLAGS
fi fi
%configure --with-tcp-wrappers --with-pic %configure --with-tcp-wrappers
export tagname=CC make LDADD="-pie -Wl,-z,defs,-z,relro"
make LIBTOOL=%{_bindir}/libtool LDADD="-pie -Wl,-z,defs,-z,relro"
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
export tagname=CC mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/stunnel
%makeinstall docdir=`pwd`/installed-docs LIBTOOL=%{_bindir}/libtool touch $RPM_BUILD_ROOT%{_sysconfdir}/stunnel/stunnel.pem
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.?
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/stunnel/*sample*
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/stunnel/stunnel.pem
# Move the translated man pages to the right subdirectories, and strip off the # Move the translated man pages to the right subdirectories, and strip off the
# language suffixes. # language suffixes.
for lang in fr pl ; do for lang in fr pl ; do
@ -78,7 +67,7 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc BUGS ChangeLog COPY* CREDITS NEWS PORTS README TODO doc/*.html %doc AUTHORS BUGS ChangeLog COPY* CREDITS NEWS PORTS README TODO doc/*.html
%doc $RPM_SOURCE_DIR/Certificate-Creation %doc $RPM_SOURCE_DIR/Certificate-Creation
%doc $RPM_SOURCE_DIR/sfinger.xinetd %doc $RPM_SOURCE_DIR/sfinger.xinetd
%doc $RPM_SOURCE_DIR/pop3-redirect.xinetd %doc $RPM_SOURCE_DIR/pop3-redirect.xinetd
@ -87,14 +76,22 @@ rm -rf $RPM_BUILD_ROOT
%doc tools/stunnel.conf-sample %doc tools/stunnel.conf-sample
%lang(en) %doc doc/en/* %lang(en) %doc doc/en/*
%lang(po) %doc doc/pl/* %lang(po) %doc doc/pl/*
%exclude %{_datadir}/doc/stunnel
%{_libdir}/libstunnel.so %{_libdir}/libstunnel.so
%exclude %{_libdir}/libstunnel.la
%{_mandir}/man8/stunnel.8* %{_mandir}/man8/stunnel.8*
%{_mandir}/*/man8/stunnel.8* %{_mandir}/*/man8/stunnel.8*
%{_sbindir}/stunnel %{_sbindir}/stunnel
%{_sbindir}/stunnel3 %{_sbindir}/stunnel3
%dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}
%exclude %{_sysconfdir}/stunnel/*
%changelog %changelog
* Wed Jun 1 2005 Miloslav Trmac <mitr@redhat.com> - 4.10-2
- Fix inetd mode
- Remove unnecessary Requires: and BuildRequires:
- Clean up the spec file
* Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 4.10-1 * Tue Apr 26 2005 Nalin Dahyabhai <nalin@redhat.com> 4.10-1
- update to 4.10 - update to 4.10