-# TODO
-# - other language's descriptions look weird, backslashes and quotes
-%define SSLVER 2.8.24
-%define APACHEVER 1.3.33
+%define SSLVER 2.8.25
+%define APACHEVER 1.3.34
%define apxs /usr/sbin/apxs1
%define mod_name ssl
Summary: An SSL module for the Apache Web server
Summary(uk): íÏÄÕÌØ Ð¦ÄÔÒÉÍËÉ SSL × Apache
Name: apache1-mod_%{mod_name}
Version: %{SSLVER}_%{APACHEVER}
-Release: 1
+Release: 3
License: BSD
Group: Networking/Daemons
Source0: http://www.modssl.org/source/mod_%{mod_name}-%{SSLVER}-%{APACHEVER}.tar.gz
-# Source0-md5: 4f28dcf0f090a7dc2ab148e6a503e99a
+# Source0-md5: 1ef2a6cb47573444779b2fd10502514b
Source1: %{name}.conf
Source2: %{name}-server.crt
Source3: %{name}-server.key
URL: http://www.modssl.org/
BuildRequires: %{apxs}
BuildRequires: apache1-devel = %{APACHEVER}
-BuildRequires: apache1-devel >= 1.3.33-2
BuildRequires: db-devel >= 4.1
BuildRequires: openssl-devel >= 0.9.7d
BuildRequires: openssl-tools >= 0.9.7d
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
-Requires(post,preun): apache1
Requires(triggerpostun): grep
Requires(triggerpostun): sed >= 4.0
Requires: apache1 >= %{APACHEVER}
-Requires: apache1 >= 1.3.33-2
# see the config
-Requires: apache1-mod_setenvif
Requires: apache1-mod_log_config
+Requires: apache1-mod_setenvif
+Provides: apache(mod_ssl) = %{version}-%{release}
Obsoletes: apache-mod_ssl < 2
Obsoletes: mod_ssl
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
free to get and use it for commercial and non-commercial purposes.
%description -l cs
-"Modul mod_ssl pro WWW server Apache umo¾òuje pou¾ití silného
-¹ifrování\n" "komunikace klienta (WWW prohlí¾eè) a serveru - SSL
-(Secure Sockets Layer)\n" "a TLS (Transport Layer Security)
-protokoly."
+Modul mod_ssl pro WWW server Apache umo¾òuje pou¾ití silného
+¹ifrování komunikace klienta (WWW prohlí¾eè) a serveru - SSL
+(Secure Sockets Layer) a TLS (Transport Layer Security)
+protokoly.
%description -l de
Das mod_ssl-Projekt stellt kryptographie für den Apache 1.3-Webserver
%description -l es
El módulo mod_ssl proporciona la criptografía para el servidor Web
-Apache, los sockets seguros, los protocolos de la seguridad (SSL) y
-de la capa tranparente (TLS).
+Apache, los sockets seguros, los protocolos de la seguridad (SSL) y de
+la capa tranparente (TLS).
%description -l fr
Le projet mod_ssl fournit de la forte cryptographie pour le serveur
Hudson.
%description -l it
-"Il modulo mod_ssl fornisce un supporto di crittografia molto potente
-per\n" "il server Web Apache tramite i protocolli SSL (Secure Sockets
-Layer) e i\n" "protocolli TLS (Transport Layer Security)."
+Il modulo mod_ssl fornisce un supporto di crittografia molto potente
+per il server Web Apache tramite i protocolli SSL (Secure Sockets
+Layer) e i protocolli TLS (Transport Layer Security).
%description -l ja
-"mod_ssl ¥â¥¸¥å¡¼¥ë¤Ï¡¢SSL (Secure Sockets Layer) ¤ª¤è¤Ó TLS
-(Transport \n" "Layer Security) ¥×¥í¥È¥³¥ë¤ò²ð¤·¤Æ Apache Web
-¥µ¡¼¥Ð¡¼ÍѤζ¯ÎϤʰŹ沽\n" "µ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£"
+mod_ssl ¥â¥¸¥å¡¼¥ë¤Ï¡¢SSL (Secure Sockets Layer) ¤ª¤è¤Ó TLS
+(Transport Layer Security) ¥×¥í¥È¥³¥ë¤ò²ð¤·¤Æ Apache Web
+¥µ¡¼¥Ð¡¼ÍѤζ¯ÎϤʰŹ沽 µ¡Ç½¤òÄ󶡤·¤Þ¤¹¡£
%description -l pl
Projekt mod_ssl ma za zadanie zapewniæ serwerowi WWW Apache 1.3 wysoki
A.Younga i Tima J.Hudsona.
%description -l pt
-"O módulo mod_ssl oferece uma criptografia robusta para o servidor
-Web\n" "Apache através dos protocolos SSL (Secure Sockets Layer) e TLS
-(Transport\n" "Layer Security)."
+O módulo mod_ssl oferece uma criptografia robusta para o servidor
+Web Apache através dos protocolos SSL (Secure Sockets Layer) e TLS
+(Transport Layer Security).
%description -l ru
Apache -- ÍÏÝÎÙÊ Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÙÊ ÓÅÒ×ÅÒ Á ÔÁËÖÅ É ÓÁÍÙÍ
ÍÉÒÅ). üÔÁ ×ÅÒÓÉÑ ×ËÌÀÞÁÅÔ × ÓÅÂÑ ÐÏÄÄÅÒÖËÕ SSL v2, v3 É TLS v1.
%description -l sv
-"Modulen mod_ssl förser webbservern Apache med stark kryptografi
-via\n" "protokollen SSL (Secure Sockets Layer) och TLS (Transport
-Layer\n" "Security)."
+Modulen mod_ssl förser webbservern Apache med stark kryptografi
+via protokollen SSL (Secure Sockets Layer) och TLS (Transport
+Layer Security).
%description -l uk
Apache -- ÐÏÔÕÖÎÉÊ ×¦ÌØÎÏ ÒÏÚÐÏ×ÓÀÄÖÕ×ÁÎÉÊ ÓÅÒ×ÅÒ HTTP. ãÅ
Summary(fr): Module d'Extranet Fort pour Apache et mod_ssl
Summary(pl): Modu³ Strong Extranet dla pakietu mod_ssl i serwera WWW Apache
Group: Networking/Daemons
-Requires(triggerpostun): %{apxs}
+Requires(triggerpostun): grep
+Requires(triggerpostun): sed >= 4.0
Requires: apache1(EAPI) >= %{APACHEVER}
-Requires: apache1 >= 1.3.33-2
Obsoletes: apache-mod_sxnet < 2
%description -n apache1-mod_sxnet
%{__perl} -pi -e 's@ /lib /usr/lib @ /%{_lib} /usr/%{_lib} @' pkg.sslmod/libssl.module
+cd pkg.contrib
+tar xvf sxnet.tar
+
%build
SSL_BASE=SYSTEM; export SSL_BASE
%configure \
%{__make}
-cd pkg.contrib
-tar xvf sxnet.tar
-cd sxnet
+cd pkg.contrib/sxnet
%{apxs} -DMalloc=malloc -DFree=free -I%{_includedir}/openssl -L%{_libdir} -l ssl -l crypto -c mod_sxnet.c
%install
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/40_mod_%{mod_name}.conf
install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/server.crt
install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/server.key
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/apache-mod_%{mod_name}
+install %{SOURCE5} $RPM_BUILD_ROOT/etc/logrotate.d/apache1-mod_%{mod_name}
cp -a pkg.ssldoc ssl-doc
rm -rf $RPM_BUILD_ROOT
%post
-if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/apache start\" to start apache HTTP daemon."
-fi
+%service -q apache restart
%postun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
- fi
+ %service -q apache restart
fi
%triggerpostun -- apache1-mod_ssl < 2.8.22_1.3.33-1.7
%triggerpostun -- apache1-mod_sxnet < 2.8.22_1.3.33-1.9
# check that they're not using old apache.conf
if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
- %{apxs} -e -A -n sxnet %{_pkglibdir}/mod_sxnet.so 1>&2
+ sed -i -e '/^\(Add\|Load\)Module.*mod_sxnet\.\(so\|c\)/d' /etc/apache/apache.conf
fi
%post -n apache1-mod_sxnet
-if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
%postun -n apache1-mod_sxnet
-if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/apache ]; then
- /etc/rc.d/init.d/apache restart 1>&2
- fi
+ %service -q apache restart
fi
%files
%defattr(644,root,root,755)
%doc ANNOUNCE CHANGES CREDITS NEWS README* ssl-doc
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_ssl.conf
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/server.crt
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/server.key
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_ssl.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.crt
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server.key
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/*
%attr(640,root,root) %ghost %{_pkglogdir}/*
%attr(755,root,root) %{_pkglibdir}/libssl.so
%files -n apache1-mod_sxnet
%defattr(644,root,root,755)
%doc sxnet.html
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_sxnet.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_sxnet.conf
%attr(755,root,root) %{_pkglibdir}/mod_sxnet.so