mirror of
https://abf.rosa.ru/djam/libressl.git
synced 2025-02-23 16:12:53 +00:00
More fixes for building on rpm4
This commit is contained in:
parent
063640e2d2
commit
aa028f8919
1 changed files with 14 additions and 15 deletions
|
@ -9,9 +9,13 @@
|
|||
%define _obindir %{_oprefix}/bin
|
||||
%define _omandir %{_oprefix}/share/man
|
||||
%define _olibdir %{_oprefix}/%{_lib}
|
||||
# We need to override macros set in platform
|
||||
%define _prefix /opt/libressl
|
||||
# No need to have /opt/libressl/lib64, use /opt/libressl/lib
|
||||
%define _libdir %{_prefix}/lib
|
||||
%define _bindir %{_prefix}/bin
|
||||
%define _libdir %{_prefix}/%{_lib}
|
||||
%define _libexecdir %{_prefix}/libexec
|
||||
%define _datadir %{_prefix}/share
|
||||
%define _mandir %{_datadir}/man
|
||||
# Keep package docs in normal locations
|
||||
%define _defaultdocdir %{_oprefix}/share/doc
|
||||
# Disable /usr/share/spec-helper/relink_symlinks
|
||||
|
@ -41,8 +45,8 @@
|
|||
# We rename e.g. libtls.pc to libressl-tls.pc, make sure that we do not
|
||||
# get odd provides and break the repository if forgot to rename something.
|
||||
# Filter out provides like 'devel(libcrypto(64bit))' (they are in OpenSSL).
|
||||
%define __noautoprov \
|
||||
'.*openssl.*|pkgconfig\\(lib(tls|crypro|ssl)\\)|devel\\(lib(tls|crypto|ssl).*\\).*'
|
||||
%define __provides_exclude \
|
||||
'.*openssl.*|pkgconfig\\(lib(tls|crypro|ssl)\\)|devel\\(lib(tls|crypto|ssl).*\\).*'
|
||||
|
||||
%define libcrypto_sover 46
|
||||
%define libssl_sover 48
|
||||
|
@ -95,8 +99,7 @@ BuildRequires: binutils grep gawk
|
|||
BuildRequires: chrpath
|
||||
# This LibreSSL uses /etc/pki/tls from system OpenSSL
|
||||
# but most functions will work without its files
|
||||
Suggests: openssl
|
||||
Autoreq: 1
|
||||
Recommends: openssl
|
||||
|
||||
%description
|
||||
LibreSSL utils and libs coexisting with OpenSSL.
|
||||
|
@ -104,6 +107,7 @@ GOST is supported out of the box.
|
|||
|
||||
%files
|
||||
%doc ChangeLog COPYING
|
||||
%license COPYING
|
||||
# %%_bindir here is /opt/libressl/bin
|
||||
# %%_obindir is /usr/bin
|
||||
# %%_mandir is /opt/libressl/share/man
|
||||
|
@ -121,7 +125,6 @@ GOST is supported out of the box.
|
|||
%package -n %{libcrypto_pkg}
|
||||
Summary: libcrypto library from LibreSSL
|
||||
Group: System/Libraries
|
||||
Autoreq: 1
|
||||
|
||||
%description -n %{libcrypto_pkg}
|
||||
libcrypto library from LibreSSL
|
||||
|
@ -133,7 +136,6 @@ libcrypto library from LibreSSL
|
|||
%package -n %{libssl_pkg}
|
||||
Summary: libssl library from LibreSSL
|
||||
Group: System/Libraries
|
||||
Autoreq: 1
|
||||
|
||||
%description -n %{libssl_pkg}
|
||||
libssl library from LibreSSL
|
||||
|
@ -145,7 +147,6 @@ libssl library from LibreSSL
|
|||
%package -n %{libtls_pkg}
|
||||
Summary: libtls library from LibreSSL
|
||||
Group: System/Libraries
|
||||
Autoreq: 1
|
||||
|
||||
%description -n %{libtls_pkg}
|
||||
libtls library from LibreSSL
|
||||
|
@ -180,7 +181,6 @@ Provides: devel(libressl-libtls%{b64})
|
|||
Provides: devel(libressl-libcrypto%{b64})
|
||||
Provides: devel(libressl-libssl%{b64})
|
||||
%endif
|
||||
Autoreq: 1
|
||||
|
||||
%description devel
|
||||
LibreSSL devel package. Devel libraries are in %{_libdir},
|
||||
|
@ -227,7 +227,6 @@ Provides: nc = %{EVRD}
|
|||
# Provide "netcat" but of a lower version than the real netcat
|
||||
# to allow other packages to depend from any variant of netcat
|
||||
Provides: netcat = 1.0
|
||||
Autoreq: 1
|
||||
|
||||
%description -n netcat-openbsd
|
||||
The nc package contains Netcat (the program is actually nc), a simple
|
||||
|
@ -262,23 +261,23 @@ cat %{SOURCE1} | sed \
|
|||
patch -p1 < 1.patch
|
||||
|
||||
%build
|
||||
%setup_compile_flags
|
||||
%set_build_flags
|
||||
%serverbuild
|
||||
# Use the same %%_openssl dir with OpenSSL, but separate the config
|
||||
# (note that we patch libressl, X509_CONF_FILE is not upstream)
|
||||
export CFLAGS="$CFLAGS -DX509_CONF_FILE='\"%{_openssldir}/libressl.cnf\"'"
|
||||
autoreconf -if #patch2
|
||||
# static libs are required for tests target in Makefile
|
||||
%configure2_5x \
|
||||
%configure \
|
||||
--enable-nc \
|
||||
--enable-static \
|
||||
--with-openssldir=%{_openssldir}
|
||||
%make
|
||||
%make_build
|
||||
|
||||
%install
|
||||
set +f # explicitly enable shell globbing
|
||||
|
||||
%makeinstall_std
|
||||
%make_install
|
||||
|
||||
# Some ideas about mans are from ALT Linux spec
|
||||
install -m 0644 apps/nc/nc.1 %{buildroot}%{_mandir}/man1/nc.1
|
||||
|
|
Loading…
Add table
Reference in a new issue