[packages/libdigidocpp] expand version for ppkgconfig properly
glen
glen at pld-linux.org
Mon Dec 10 21:47:49 CET 2018
commit b7bd693fa34ec25e067c43ca31e94962242a7475
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Mon Dec 10 22:47:15 2018 +0200
expand version for ppkgconfig properly
- https://github.com/open-eid/libdigidocpp/pull/260
- https://github.com/open-eid/libdigidocpp/pull/261
DIGIDOCPP_VERSION.patch | 21 +++++++++++++++++++++
libdigidocpp.spec | 4 +++-
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/libdigidocpp.spec b/libdigidocpp.spec
index c6980f4..c19089d 100644
--- a/libdigidocpp.spec
+++ b/libdigidocpp.spec
@@ -17,12 +17,13 @@ Summary: Library for creating and validating BDoc and DDoc containers
Summary(pl.UTF-8): Biblioteka do tworzenia i sprawdzania poprawności kontenerów BDoc i DDoc
Name: libdigidocpp
Version: 3.13.8
-Release: 1
+Release: 2
License: LGPL v2.1+
Group: Libraries
Source0: https://github.com/open-eid/libdigidocpp/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 2d35f37dc103e3cecb57f0332f46ff31
Patch0: %{name}-link.patch
+Patch1: DIGIDOCPP_VERSION.patch
URL: https://github.com/open-eid/libdigidocpp
# for tests
BuildRequires: boost-devel
@@ -139,6 +140,7 @@ Wiązania Pythona do biblioteki libdigidocpp.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# Remove bundled copy of minizip
%{__rm} -r src/minizip
diff --git a/DIGIDOCPP_VERSION.patch b/DIGIDOCPP_VERSION.patch
new file mode 100644
index 0000000..4cdf81c
--- /dev/null
+++ b/DIGIDOCPP_VERSION.patch
@@ -0,0 +1,21 @@
+--- libdigidocpp/./src/libdigidocpp.pc.cmake~ 2018-12-10 22:32:50.373425891 +0200
++++ libdigidocpp/./src/libdigidocpp.pc.cmake 2018-12-10 22:36:22.574581291 +0200
+@@ -5,6 +5,6 @@
+
+ Name: libdigidocpp
+ Description: Libdigidocpp C++ library for handling digitally signed documents
+-Version: @DIGIDOCPP_VERSION@
++Version: @PROJECT_VERSION@
+ Libs: -L${libdir} -ldigidocpp
+ Cflags: -I${includedir}
+--- libdigidocpp/./etc/Doxyfile.in~ 2018-12-10 22:32:50.276754142 +0200
++++ libdigidocpp/./etc/Doxyfile.in 2018-12-10 22:36:15.097521556 +0200
+@@ -38,7 +38,7 @@
+ # could be handy for archiving the generated documentation or if some version
+ # control system is used.
+
+-PROJECT_NUMBER = @DIGIDOCPP_VERSION@
++PROJECT_NUMBER = @PROJECT_VERSION@
+
+ # Using the PROJECT_BRIEF tag one can provide an optional one line description
+ # for a project that appears at the top of each page and should give viewer a
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libdigidocpp.git/commitdiff/b7bd693fa34ec25e067c43ca31e94962242a7475
More information about the pld-cvs-commit
mailing list