Filter out provides and requires which appeared after recent changes, add some devel provides

This commit is contained in:
Mikhail Novosyolov 2019-12-03 17:46:55 +03:00
parent 179f31e464
commit 0984f741ab

View file

@ -23,9 +23,6 @@
%{?!_compress:%define _compress /bin/true}
%{?!_extension:%define _extension .xz}
# 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
%define __noautoprov '.*openssl.*|pkgconfig\((libtls|libcrypro|libssl)\)'
# Ideas behind this package are the following:
# - libressl-devel must provide pkgconfig(libressl*)
# - libressl-devel must not provide pkgconfig(openssl),
@ -41,6 +38,14 @@
# - not FHS-compilant /opt is used only for devel package to allow
# coinstallability with OpenSSL devel packages
# // mikhailnov, 03.12.2019
# 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.
# Filtering libraries provides and requirements example:
# - libssl.so.47()(64bit) - remove (filter out)
# - libssl.so.47(LIBRESSL)(64bit) - leave
%define __noautoprov \
'.*openssl.*|pkgconfig\\(lib(tls|crypro|ssl)\\)|lib(tls|crypro|ssl)\\.so\\..*\\(\\).*'
%define __noautoreq 'lib(tls|crypro|ssl)\\.so\\..*\\(\\).*'
%define libcrypto_sover 45
%define libssl_sover 47
@ -52,7 +57,7 @@
Summary: LibreSSL utils and libs coexisting with OpenSSL
Name: libressl
Version: 3.0.2
Release: 3
Release: 6
# The code is distributed under ISC license except of original OpenSSL code
License: ISC and BSD-like
Group: System/Libraries
@ -141,6 +146,10 @@ Requires: %{name} = %{EVRD}
Requires: %{libcrypto_pkg} = %{EVRD}
Requires: %{libtls_pkg} = %{EVRD}
Requires: %{libssl_pkg} = %{EVRD}
# Add provides to pull this package by common devel names
Provides: %{mklibname crypto_libressl -d} = %{EVRD}
Provides: %{mklibname tls_libressl -d} = %{EVRD}
Provides: %{mklibname ssl_libressl -d} = %{EVRD}
Autoreq: 1
%description devel