automatic version update by autodist [release 1.1.1b-1mamba;Wed Feb 27 2019]

This commit is contained in:
Automatic Build System 2024-01-06 08:16:19 +01:00
parent f3b41ebbf5
commit 30993d5c4a

View File

@ -1,5 +1,7 @@
%define soversion %(echo %version | cut -d. -f1-2)
%define fullversion %(echo %version | tr -d [:alpha:])
Name: openssl
Version: 1.0.2q
Version: 1.1.1b
Release: 1mamba
Summary: Secure Sockets Layer communications libs and utils
Group: Network/Security
@ -7,17 +9,17 @@ Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.openssl.org
Source: http://www.openssl.org/source/openssl-%{version}.tar.gz
Source: https://www.openssl.org/source/openssl-%{version}.tar.gz
Source1: openssl-makecerts
Patch0: %{name}-1.0.1a-fix_non_ia32.patch
Patch1: openssl-1.0.2a-version.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libperl
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: perl-WWW-Curl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -65,8 +67,8 @@ Static libraries needed to compile apps with support for various cryptographic a
#%patch0 -p1
# Using Fedora versioning patch
%patch1 -p1
sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypto/opensslv.h
#%patch1 -p1
#sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypto/opensslv.h
%build
# FIXME: --openssldir=%{_libdir}/ssl
@ -88,7 +90,14 @@ sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypt
shared \
enable-md2 \
--prefix=%{_prefix} \
--openssldir=/etc/ssl
--openssldir=%{_sysconfdir}/ssl \
zlib enable-camellia enable-seed enable-rfc3779 enable-sctp \
enable-cms enable-md2 enable-rc5 enable-ssl3 enable-ssl3-method \
enable-weak-ssl-ciphers \
shared
# no-mdc2 no-ec2m no-sm2 no-sm4 \
#${sslarch} $RPM_OPT_FLAGS '-DDEVRANDOM="\"/dev/urandom\""'
%ifarch ppc
sed -i "s/-m486/-march=%{_target_cpu}/g" Makefile
@ -97,34 +106,47 @@ sed -i "s/-m486/-march=%{_target_cpu}/g" Makefile
sed -i 's|\(.*\)chmod 644\(.*/lib/pkgconfig\)|\1chmod 755\2|' Makefile
%make -j1 CC=%{_host}-gcc MANDIR=%{_mandir}
%make -j1 CC=%{_host}-gcc rehash
#% make -j1 CC=%{_host}-gcc rehash
#export LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
%if "%{_host}" == "%{_build}"
make test
%endif
#%if "%{_host}" == "%{_build}"
#make test
#%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
make install CC=%{_host}-gcc INSTALL_PREFIX=%{buildroot} MANDIR=%{_mandir}
# Clean up the .pc files
for i in libcrypto.pc libssl.pc openssl.pc ; do
sed -i '/^Libs.private:/{s/-L[^ ]* //;s/-Wl[^ ]* //}' $i
done
%makeinstall
rename so.%{soversion} so.%{fullversion} %{buildroot}%{_libdir}/*.so.%{soversion}
for lib in %{buildroot}%{_libdir}/*.so.%{fullversion} ; do
chmod 755 ${lib}
ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{fullversion}`
ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{fullversion}`.%{soversion}
done
chmod 755 %{buildroot}%{_libdir}/pkgconfig
chmod 644 %{buildroot}%{_libdir}/pkgconfig/*.pc
mv %{buildroot}%{_mandir}/man1/passwd.* \
%{buildroot}%{_mandir}/man1/openssl-passwd.*
mv %{buildroot}%{_mandir}/man3/err.* \
%{buildroot}%{_mandir}/man3/openssl-err.*
mv %{buildroot}%{_mandir}/man3/rand.* \
%{buildroot}%{_mandir}/man3/openssl-rand.*
#mv %{buildroot}%{_mandir}/man3/err.* \
# %{buildroot}%{_mandir}/man3/openssl-err.*
#mv %{buildroot}%{_mandir}/man3/rand.* \
# %{buildroot}%{_mandir}/man3/openssl-rand.*
# rpmbuild can't correctly handle spaces in symlink names
rm -f %{buildroot}%{_mandir}/man7/Modes\ of\ DES.7
#rm -f %{buildroot}%{_mandir}/man7/Modes\ of\ DES.7
mkdir -p %{buildroot}/var/ssl/{certs,newcerts,private,crl}
touch %{buildroot}/var/ssl/index.txt
echo "01" > %{buildroot}/var/ssl/serial
sed -i "s|./demoCA|/var/ssl|" %{buildroot}/etc/ssl/openssl.cnf
sed -i "s|./demoCA|/var/ssl|" %{buildroot}%{_sysconfdir}/ssl/openssl.cnf
rm -f %{buildroot}%{_libdir}/fips_premain.c
rm -f %{buildroot}%{_libdir}/fips_premain.c.sha1
@ -141,6 +163,9 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ssl/openssl.cnf
%{_sysconfdir}/ssl/ct_log_list.cnf
%{_sysconfdir}/ssl/ct_log_list.cnf.dist
%{_sysconfdir}/ssl/openssl.cnf.dist
%dir %{_sysconfdir}/ssl/private
%{_sysconfdir}/ssl/misc
%{_bindir}/c_rehash
@ -163,7 +188,8 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%defattr(-,root,root)
%{_libdir}/libcrypto.so.*
%{_libdir}/libssl.so.*
%{_libdir}/engines/lib*.so
%dir %{_libdir}/engines-%{soversion}
%{_libdir}/engines-%{soversion}/*.so
%doc LICENSE
%files -n lib%{name}-devel
@ -175,15 +201,20 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%{_libdir}/pkgconfig/libssl.pc
%{_libdir}/pkgconfig/openssl.pc
%{_mandir}/man3/*
%doc CHANGES* FAQ NEWS PROBLEMS README*
%dir %{_datadir}/doc/openssl
%{_datadir}/doc/openssl/*
%doc CHANGES* FAQ NEWS README*
%files -n lib%{name}-static
%defattr(-,root,root)
%{_libdir}/*.a
%changelog
* Sat Dec 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2q-1mamba
- update to 1.0.2q
* Wed Feb 27 2019 Automatic Build System <autodist@mambasoft.it> 1.1.1b-1mamba
- automatic version update by autodist
* Sat Dec 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.1a-1mamba
- update to 1.1.1a
* Sun Sep 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2p-1mamba
- update to 1.0.2p