commit 7139e77f251f9e99016af274b3a4bd73320a593e
Author: Jan Rękorajski <[email protected]>
Date:   Thu Oct 14 23:02:01 2021 +0200

    - up to 1.1.2

 build.patch   | 24 ++++++++++++++++++++++++
 openpace.spec | 15 +++++++++------
 2 files changed, 33 insertions(+), 6 deletions(-)
---
diff --git a/openpace.spec b/openpace.spec
index bb5812c..cb1e2da 100644
--- a/openpace.spec
+++ b/openpace.spec
@@ -10,15 +10,16 @@
 Summary:       Cryptographic library for EAC version 2
 Summary(pl.UTF-8):     Biblioteka kryptograficzna do EAC v2
 Name:          openpace
-Version:       1.0.2
-Release:       4
+Version:       1.1.2
+Release:       1
 License:       GPL v3+
 Group:         Libraries
 #Source0Download: https://github.com/frankmorgner/openpace/releases
-Source0:       
https://github.com/frankmorgner/openpace/releases/download/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 2fbd4d27d4726efe19417b471319c3a9
+Source0:       
https://github.com/frankmorgner/openpace/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 55f22686b89026fd40f60358cc2247d0
 Patch0:                %{name}-optflags.patch
 Patch1:                %{name}-ruby.patch
+Patch2:                build.patch
 URL:           https://frankmorgner.github.io/openpace/
 BuildRequires: autoconf >= 2.67
 BuildRequires: automake
@@ -134,6 +135,7 @@ Wiązania języka Ruby do biblioteki OpenPACE.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 # outdated versions
 %{__rm} -r docs/_static/{bootstrap-2.3.2,bootswatch-2.3.2}
@@ -153,7 +155,8 @@ Wiązania języka Ruby do biblioteki OpenPACE.
        %{?with_ruby:--enable-ruby} \
        --disable-silent-rules \
        %{!?with_static_libs:--disable-static}
-%{__make}
+
+%{__make} -j 1
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -184,7 +187,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/cvc-print
 %attr(755,root,root) %{_bindir}/eactest
 %attr(755,root,root) %{_libdir}/libeac.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libeac.so.2
+%attr(755,root,root) %ghost %{_libdir}/libeac.so.3
 %dir %{_sysconfdir}/eac
 %dir %{_sysconfdir}/eac/cvc
 %{_sysconfdir}/eac/cvc/DECVC*
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..fab5c06
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,24 @@
+--- openpace-1.1.2/src/eac.c~  2021-07-08 13:32:38.000000000 +0200
++++ openpace-1.1.2/src/eac.c   2021-10-14 22:52:32.824753609 +0200
+@@ -104,8 +104,8 @@
+ {
+     if (!ctx)
+         return 0;
+-
+-    return BN_zero(ctx->ssc);
++    BN_zero(ctx->ssc);
++    return 0;
+ }
+ 
+ int EAC_set_ssc(const EAC_CTX *ctx, unsigned long ssc)
+--- openpace-1.1.2/src/eac/cv_cert.h~  2021-07-08 13:32:38.000000000 +0200
++++ openpace-1.1.2/src/eac/cv_cert.h   2021-10-14 22:55:21.327446475 +0200
+@@ -341,7 +341,7 @@
+  * @return Number of bytes successfully encoded or a negative value if an
+  * error occured.
+  */
+-int i2d_CVC_CERT(CVC_CERT *a, unsigned char **out);
++int i2d_CVC_CERT(const CVC_CERT *a, unsigned char **out);
+ 
+ /**
+  * @brief Duplicate a CV certificate
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openpace.git/commitdiff/7139e77f251f9e99016af274b3a4bd73320a593e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to