automatic version update by autodist [release 1.1.1h-1mamba;Wed Sep 23 2020]

This commit is contained in:
Automatic Build System 2024-01-06 08:16:19 +01:00
parent 7282cb3fed
commit 0c9586a3e7

View File

@ -1,7 +1,7 @@
%define soversion %(echo %version | cut -d. -f1-2) %define soversion %(echo %version | cut -d. -f1-2)
%define fullversion %(echo %version | tr -d [:alpha:]) %define fullversion %(echo %version | tr -d [:alpha:])
Name: openssl Name: openssl
Version: 1.1.1g Version: 1.1.1h
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
@ -18,7 +18,7 @@ License: BSD
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libz-devel BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: perl-WWW-Curl #BuildRequires: perl-WWW-Curl
BuildRequires: perl-devel BuildRequires: perl-devel
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -64,6 +64,7 @@ Static libraries needed to compile apps with support for various cryptographic a
%prep %prep
%setup -q -n openssl-%{version} %setup -q -n openssl-%{version}
#-D -T
#%patch0 -p1 #%patch0 -p1
# Using Fedora versioning patch # Using Fedora versioning patch
@ -71,6 +72,7 @@ Static libraries needed to compile apps with support for various cryptographic a
#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
#:<< _EOF
# FIXME: --openssldir=%{_libdir}/ssl # FIXME: --openssldir=%{_libdir}/ssl
# (FHS: no executable files should be installed in /etc) # (FHS: no executable files should be installed in /etc)
./Configure \ ./Configure \
@ -86,6 +88,9 @@ Static libraries needed to compile apps with support for various cryptographic a
%endif %endif
%ifarch arm %ifarch arm
linux-generic32 \ linux-generic32 \
%endif
%ifarch aarch64
linux-aarch64 \
%endif %endif
shared \ shared \
enable-md2 \ enable-md2 \
@ -105,7 +110,8 @@ 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} libdir=%{_libdir}
#% 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}}
@ -119,9 +125,12 @@ sed -i 's|\(.*\)chmod 644\(.*/lib/pkgconfig\)|\1chmod 755\2|' Makefile
# Clean up the .pc files # Clean up the .pc files
for i in libcrypto.pc libssl.pc openssl.pc ; do for i in libcrypto.pc libssl.pc openssl.pc ; do
sed -i '/^Libs.private:/{s/-L[^ ]* //;s/-Wl[^ ]* //}' $i sed -i '/^Libs.private:/{s/-L[^ ]* //;s/-Wl[^ ]* //}' $i
%ifarch aarch64
sed -i "s|/lib$|/lib64|" $i
%endif
done done
%makeinstall %makeinstall libdir=%{_libdir}
rename so.%{soversion} so.%{fullversion} %{buildroot}%{_libdir}/*.so.%{soversion} rename so.%{soversion} so.%{fullversion} %{buildroot}%{_libdir}/*.so.%{soversion}
for lib in %{buildroot}%{_libdir}/*.so.%{fullversion} ; do for lib in %{buildroot}%{_libdir}/*.so.%{fullversion} ; do
@ -177,10 +186,10 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%{_mandir}/man5/* %{_mandir}/man5/*
%{_mandir}/man7/* %{_mandir}/man7/*
%dir /var/ssl %dir /var/ssl
%dir /var/ssl/certs #%dir /var/ssl/certs
%dir /var/ssl/crl #%dir /var/ssl/crl
%dir /var/ssl/newcerts #%dir /var/ssl/newcerts
%dir %attr(0700,root,root) /var/ssl/private #%dir %attr(0700,root,root) /var/ssl/private
%config(noreplace) /var/ssl/index.txt %config(noreplace) /var/ssl/index.txt
%config(noreplace) /var/ssl/serial %config(noreplace) /var/ssl/serial
@ -210,6 +219,9 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
%{_libdir}/*.a %{_libdir}/*.a
%changelog %changelog
* Wed Sep 23 2020 Automatic Build System <autodist@mambasoft.it> 1.1.1h-1mamba
- automatic version update by autodist
* Tue Apr 21 2020 Automatic Build System <autodist@mambasoft.it> 1.1.1g-1mamba * Tue Apr 21 2020 Automatic Build System <autodist@mambasoft.it> 1.1.1g-1mamba
- automatic version update by autodist - automatic version update by autodist
@ -435,5 +447,5 @@ install -m 0755 -D %{SOURCE1} %{buildroot}%{_sbindir}/openssl-makecerts
* Wed Apr 30 2003 Silvan Calarco <silvan.calarco@qinet.it> * Wed Apr 30 2003 Silvan Calarco <silvan.calarco@qinet.it>
- err, rand and passwd manpages renamed to openssl-* to avoid conflicts with other versions - err, rand and passwd manpages renamed to openssl-* to avoid conflicts with other versions
* Tue Apr 16 2003 Luca Tinelli <luca.tinelli@qinet.it> * Wed Apr 16 2003 Luca Tinelli <luca.tinelli@qinet.it>
- first build - first build