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 Name: openssl
Version: 1.0.2q Version: 1.1.1b
Release: 1mamba Release: 1mamba
Summary: Secure Sockets Layer communications libs and utils Summary: Secure Sockets Layer communications libs and utils
Group: Network/Security Group: Network/Security
@ -7,17 +9,17 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.openssl.org 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 Source1: openssl-makecerts
Patch0: %{name}-1.0.1a-fix_non_ia32.patch Patch0: %{name}-1.0.1a-fix_non_ia32.patch
Patch1: openssl-1.0.2a-version.patch Patch1: openssl-1.0.2a-version.patch
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libperl BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: perl-WWW-Curl BuildRequires: perl-WWW-Curl
BuildRequires: perl-devel BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -65,8 +67,8 @@ Static libraries needed to compile apps with support for various cryptographic a
#%patch0 -p1 #%patch0 -p1
# Using Fedora versioning patch # Using Fedora versioning patch
%patch1 -p1 #%patch1 -p1
sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypto/opensslv.h #sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypto/opensslv.h
%build %build
# FIXME: --openssldir=%{_libdir}/ssl # FIXME: --openssldir=%{_libdir}/ssl
@ -88,7 +90,14 @@ sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypt
shared \ shared \
enable-md2 \ enable-md2 \
--prefix=%{_prefix} \ --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 %ifarch ppc
sed -i "s/-m486/-march=%{_target_cpu}/g" Makefile 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 sed -i 's|\(.*\)chmod 644\(.*/lib/pkgconfig\)|\1chmod 755\2|' Makefile
%make -j1 CC=%{_host}-gcc MANDIR=%{_mandir} %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}} #export LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
%if "%{_host}" == "%{_build}" #%if "%{_host}" == "%{_build}"
make test #make test
%endif #%endif
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{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 755 %{buildroot}%{_libdir}/pkgconfig
chmod 644 %{buildroot}%{_libdir}/pkgconfig/*.pc chmod 644 %{buildroot}%{_libdir}/pkgconfig/*.pc
mv %{buildroot}%{_mandir}/man1/passwd.* \ mv %{buildroot}%{_mandir}/man1/passwd.* \
%{buildroot}%{_mandir}/man1/openssl-passwd.* %{buildroot}%{_mandir}/man1/openssl-passwd.*
mv %{buildroot}%{_mandir}/man3/err.* \ #mv %{buildroot}%{_mandir}/man3/err.* \
%{buildroot}%{_mandir}/man3/openssl-err.* # %{buildroot}%{_mandir}/man3/openssl-err.*
mv %{buildroot}%{_mandir}/man3/rand.* \ #mv %{buildroot}%{_mandir}/man3/rand.* \
%{buildroot}%{_mandir}/man3/openssl-rand.* # %{buildroot}%{_mandir}/man3/openssl-rand.*
# rpmbuild can't correctly handle spaces in symlink names # 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} mkdir -p %{buildroot}/var/ssl/{certs,newcerts,private,crl}
touch %{buildroot}/var/ssl/index.txt touch %{buildroot}/var/ssl/index.txt
echo "01" > %{buildroot}/var/ssl/serial 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
rm -f %{buildroot}%{_libdir}/fips_premain.c.sha1 rm -f %{buildroot}%{_libdir}/fips_premain.c.sha1
@ -141,6 +163,9 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/ssl/openssl.cnf %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 %dir %{_sysconfdir}/ssl/private
%{_sysconfdir}/ssl/misc %{_sysconfdir}/ssl/misc
%{_bindir}/c_rehash %{_bindir}/c_rehash
@ -163,7 +188,8 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libcrypto.so.* %{_libdir}/libcrypto.so.*
%{_libdir}/libssl.so.* %{_libdir}/libssl.so.*
%{_libdir}/engines/lib*.so %dir %{_libdir}/engines-%{soversion}
%{_libdir}/engines-%{soversion}/*.so
%doc LICENSE %doc LICENSE
%files -n lib%{name}-devel %files -n lib%{name}-devel
@ -175,15 +201,20 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%{_libdir}/pkgconfig/libssl.pc %{_libdir}/pkgconfig/libssl.pc
%{_libdir}/pkgconfig/openssl.pc %{_libdir}/pkgconfig/openssl.pc
%{_mandir}/man3/* %{_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 %files -n lib%{name}-static
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/*.a %{_libdir}/*.a
%changelog %changelog
* Sat Dec 08 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2q-1mamba * Wed Feb 27 2019 Automatic Build System <autodist@mambasoft.it> 1.1.1b-1mamba
- update to 1.0.2q - 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 * Sun Sep 09 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2p-1mamba
- update to 1.0.2p - update to 1.0.2p