provide both libimaevm.so.1 and libimaevm.so.2

This commit is contained in:
Anakin Zhang 2020-09-21 21:50:30 +08:00
parent 5b52387014
commit b54f8d8728
2 changed files with 7 additions and 29 deletions

View File

@ -1,26 +0,0 @@
From 28eefc4b05c8733a3e7d220ac70cfe1e3777f714 Mon Sep 17 00:00:00 2001
From: Anakin Zhang <benjamin93@163.com>
Date: Thu, 17 Sep 2020 13:38:37 +0800
Subject: [PATCH] change libimaevm release number
Signed-off-by: Anakin Zhang <benjamin93@163.com>
---
src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index d6c779f..ba9719b 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,7 +4,7 @@ libimaevm_la_SOURCES = libimaevm.c
libimaevm_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBCRYPTO_CFLAGS)
# current[:revision[:age]]
# result: [current-age].age.revision
-libimaevm_la_LDFLAGS = -version-info 2:0:0
+libimaevm_la_LDFLAGS = -version-info 1:0:0
libimaevm_la_LIBADD = $(LIBCRYPTO_LIBS)
include_HEADERS = imaevm.h
--
2.23.0

View File

@ -1,14 +1,14 @@
Name: ima-evm-utils
Version: 1.3.1
Release: 2
Release: 3
Summary: IMA/EVM control utilities
Group: System/Libraries
License: GPLv2
URL: http://linux-ima.sourceforge.net/
Source0: http://sourceforge.net/projects/linux-ima/files/ima-evm-utils/%{name}-%{version}.tar.gz
Patch0: change-libimaevm-release-number.patch
BuildRequires: autoconf automake libtool m4 asciidoc libxslt openssl-devel keyutils-libs-devel git
BuildRequires: autoconf automake libtool m4 asciidoc libxslt openssl-devel
BuildRequires: keyutils-libs-devel git ima-evm-utils
Requires: %{name}-libs = %{version}-%{release}
%description
@ -45,6 +45,7 @@ make %{?_smp_mflags}
%install
rm -rf %{buildroot}
%make_install
cp %{_libdir}/libimaevm.so.1* %{buildroot}/%{_libdir}
%check
make check
@ -78,6 +79,9 @@ make check
%doc %{_mandir}/*/*
%changelog
* Mon Sep 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.1-3
- provide both libimaevm.so.1 and libimaevm.so.2
* Thu Sep 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.3.1-2
- provide libimaevm.so.1