stunnel/stunnel.spec

125 lines
4.0 KiB
RPMSpec

Name: stunnel
Version: 5.03
Release: 1mamba
Summary: Universal SSL Tunnel
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.stunnel.org
Source: ftp://ftp.stunnel.org/stunnel/stunnel-%{version}.tar.gz
Patch0: %{name}-4.20-makefile.patch
Patch1: %{name}-4.20-authpriv.patch
Patch2: %{name}-4.27-config.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libopenssl-devel
BuildRequires: libwrap-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Stunnel is a program that allows you to encrypt arbitrary TCP connections inside SSL (Secure Sockets Layer) available on both Unix and Windows.
Stunnel can allow you to secure non-SSL aware daemons and protocols (like POP, IMAP, LDAP, etc) by having Stunnel provide the encryption, requiring no changes to the daemon's code.
%prep
%setup -q
#%patch0 -p1 -b .makefile
#%patch1 -p1 -b .authpriv
#%patch2 -p1 -b .config
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
mv %{buildroot}%{_sysconfdir}/stunnel/stunnel.conf-sample \
%{buildroot}%{_sysconfdir}/stunnel/stunnel.conf
install -d %{buildroot}%{_mandir}/{fr,pl}/man8
mv %{buildroot}%{_mandir}/man8/stunnel.fr.8 \
%{buildroot}%{_mandir}/fr/man8/stunnel.8
mv %{buildroot}%{_mandir}/man8/stunnel.pl.8 \
%{buildroot}%{_mandir}/pl/man8/stunnel.8
# remuve unpackaged files
rm -f %{buildroot}%{_sysconfdir}/stunnel/stunnel.pem
rm -rf %{buildroot}%{_docdir}/stunnel
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_bindir}/stunnel
%{_bindir}/stunnel3
%dir %{_sysconfdir}/stunnel
%{_sysconfdir}/stunnel/stunnel.conf
%{_libdir}/stunnel/libstunnel.*
%{_mandir}/man8/stunnel.*
%lang(fr) %{_mandir}/fr/man8/stunnel.*
%lang(pl) %{_mandir}/pl/man8/stunnel.*
%doc AUTHORS BUGS COPYING* CREDITS ChangeLog NEWS PORTS README TODO
%doc doc/en/* doc/stunnel.html
%doc tools/{ca.*,importCA.*}
%doc %lang(fr) doc/stunnel.fr.html
%doc %lang(pl) doc/pl/* doc/stunnel.pl.html
%changelog
* Sun Aug 17 2014 Automatic Build System <autodist@mambasoft.it> 5.03-1mamba
- automatic update by autodist
* Wed Jun 25 2014 Automatic Build System <autodist@mambasoft.it> 5.02-1mamba
- automatic update by autodist
* Sun Apr 13 2014 Automatic Build System <autodist@mambasoft.it> 5.01-1mamba
- automatic version update by autodist
* Sat Mar 30 2013 Automatic Build System <autodist@mambasoft.it> 4.56-1mamba
- automatic version update by autodist
* Fri Mar 08 2013 Automatic Build System <autodist@mambasoft.it> 4.55-1mamba
- automatic version update by autodist
* Thu Oct 11 2012 Automatic Build System <autodist@mambasoft.it> 4.54-1mamba
- automatic version update by autodist
* Tue Aug 07 2012 Automatic Build System <autodist@mambasoft.it> 4.53-1mamba
- automatic version update by autodist
* Mon Oct 24 2011 Automatic Build System <autodist@mambasoft.it> 4.44-1mamba
- automatic version update by autodist
* Sat Oct 09 2010 Automatic Build System <autodist@mambasoft.it> 4.34-1mamba
- automatic update by autodist
* Wed Jan 13 2010 Automatic Build System <autodist@mambasoft.it> 4.29-1mamba
- automatic update by autodist
* Wed May 06 2009 Automatic Build System <autodist@mambasoft.it> 4.27-1mamba
- automatic update by autodist
* Sun Dec 21 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.26-1mamba
- automatic update by autodist
* Sat Sep 20 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 4.25-1mamba
- update to 4.25
* Thu Dec 14 2006 Davide Madrisan <davide.madrisan@qilinux.it>
- better configuration file
- fixed installation paths for french and polish man pages
- install documentation files in the correct directory
- update dynamic linker run time bindings
* Fri Mar 26 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 4.05-1qilnx
- first build