[packages/gflags] - hack cmake to disable libs check failure when gflags-static is not installed; release 2

qboosh qboosh at pld-linux.org
Sun Dec 24 14:29:23 CET 2017


commit 7feff4bca1c0f40406b973331999a05af1848004
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 24 14:30:50 2017 +0100

    - hack cmake to disable libs check failure when gflags-static is not installed; release 2

 gflags.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gflags.spec b/gflags.spec
index 7cbb365..426aa0d 100644
--- a/gflags.spec
+++ b/gflags.spec
@@ -2,7 +2,7 @@ Summary:	A commandline flags library that allows for distributed flags
 Summary(pl.UTF-8):	Biblioteka flag linii poleceń pozwalająca na rozproszone flagi
 Name:		gflags
 Version:	2.2.1
-Release:	1
+Release:	2
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/gflags/gflags/releases
@@ -12,6 +12,7 @@ Patch0:		%{name}-pc-nothreads.patch
 URL:		http://gflags.github.io/gflags/
 BuildRequires:	cmake >= 2.8.12
 BuildRequires:	libstdc++-devel
+BuildRequires:	sed >= 4.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -68,6 +69,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# disable completeness check incompatible with split packaging
+%{__sed} -i -e '/^foreach(target .*IMPORT_CHECK_TARGETS/,/^endforeach/d' $RPM_BUILD_ROOT%{_libdir}/cmake/gflags/gflags-targets.cmake
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gflags.git/commitdiff/7feff4bca1c0f40406b973331999a05af1848004



More information about the pld-cvs-commit mailing list