Accepting request 566600 from home:dimstar:Factory

I don't see a better solution that this, without breaking building for leap in the devel branch

OBS-URL: https://build.opensuse.org/request/show/566600
OBS-URL: https://build.opensuse.org/package/show/security:chipcard/libp11?expand=0&rev=24
This commit is contained in:
2018-01-31 11:40:57 +00:00
committed by Git OBS Bridge
parent 863bd5049f
commit edc0bba79e
3 changed files with 19 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package libp11
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,14 @@
#
# the libname depends on what version openssl it is linked against
%if 0%{?suse_version} < 1500
# libp11.so.2 for openssl 1.0 - suse_version < 1500
%define libname libp11-2
%else
# libp11.so.3 for openssl 1.1 - suse_version >= 1500
%define libname libp11-3
%endif
Name: libp11
Version: 0.4.7
Release: 0
@@ -28,7 +35,6 @@ Source0: https://github.com/OpenSC/libp11/releases/download/%{name}-%{ver
Source1: https://github.com/OpenSC/libp11/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: %{name}-rpmlintrc
Source4: baselibs.conf
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: pkgconfig(openssl)
@@ -94,6 +100,8 @@ Token Interface (Cryptoki)".
%prep
%setup -q
# Since the library name changes based on used openssl, we have to create baselibs.conf dynamically
echo %{libname} > %{_sourcedir}/baselibs.conf
%build
%configure \