X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=openssl.spec;h=135a189532209c16493e2cbc567064613ddec0bb;hb=29a78a60b75b2fba350306fb95df30c977b7fc2e;hp=823dc4f89e9de4011170835398b362969df0a1dc;hpb=8cbee32cd243ab294602b63cb44c7e6dc8e55f21;p=packages%2Fopenssl.git diff --git a/openssl.spec b/openssl.spec index 823dc4f..135a189 100644 --- a/openssl.spec +++ b/openssl.spec @@ -16,12 +16,12 @@ Summary(pt_BR.UTF-8): Uma biblioteca C que fornece vários algoritmos e protocol Summary(ru.UTF-8): Библиотеки и утилиты для соединений через Secure Sockets Layer Summary(uk.UTF-8): Бібліотеки та утиліти для з'єднань через Secure Sockets Layer Name: openssl -Version: 1.0.0e +Version: 1.0.1e Release: 1 License: Apache-like Group: Libraries Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz -# Source0-md5: 7040b89c4c58c7a1016c0dfa6e821c86 +# Source0-md5: 66bf6f10f060d561929de96f9dfe5b8c Source2: %{name}.1.pl Source3: %{name}-ssl-certificate.sh Source4: %{name}-c_rehash.sh @@ -245,9 +245,6 @@ RC4, RSA и SSL. Включает статические библиотеки д %patch6 -p1 %patch7 -p1 -%{__perl} -pi -e 's#%{_prefix}/local/bin/perl#%{__perl}#g' \ - `grep -l -r "%{_prefix}/local/bin/perl" *` - sed -i -e 's|\$prefix/\$libdir/engines|/%{_lib}/engines|g' Configure %build @@ -256,7 +253,8 @@ touch Makefile.* %{__perl} util/perlpath.pl %{__perl} OPTFLAGS="%{rpmcflags} %{rpmcppflags} %{?with_purify:-DPURIFY}" \ -./Configure \ +PERL="%{__perl}" \ +%{__perl} ./Configure \ %if "%{pld_release}" == "ti" --openssldir=%{_var}/lib/%{name} \ %else @@ -336,7 +334,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} \ $RPM_BUILD_ROOT/%{_lib}/engines \ $RPM_BUILD_ROOT%{_pkgconfigdir} -%{__make} install \ +%{__make} -j1 install \ INSTALLTOP=%{_prefix} \ INSTALL_PREFIX=$RPM_BUILD_ROOT \ MANDIR=%{_mandir} @@ -386,6 +384,10 @@ if [ -L /var/lib/openssl/openssl.cnf ] ; then fi %else %triggerpostun -- %{name} < 0.9.8i-2 +# don't do anything on --downgrade +if [ $1 -le 1 ]; then + exit 0 +fi if [ -d /var/lib/openssl/certs ] ; then mv /var/lib/openssl/certs/* %{_sysconfdir}/%{name}/certs 2>/dev/null || : fi @@ -396,6 +398,8 @@ if [ -d /var/lib/openssl ] ; then for f in /var/lib/openssl/* ; do [ -f "$f" ] && mv "$f" %{_sysconfdir}/%{name} 2>/dev/null || : done + rmdir /var/lib/openssl/* 2>/dev/null || : + rmdir /var/lib/openssl 2>/dev/null || : fi %endif @@ -509,4 +513,5 @@ fi %files static %defattr(644,root,root,755) -%{_libdir}/lib*.a +%{_libdir}/libcrypto.a +%{_libdir}/libssl.a