]> git.pld-linux.org Git - packages/gflags.git/commitdiff
- hack cmake to disable libs check failure when gflags-static is not installed; release 2 auto/th/gflags-2.2.1-2
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 24 Dec 2017 13:30:50 +0000 (14:30 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 24 Dec 2017 13:30:50 +0000 (14:30 +0100)
gflags.spec

index 7cbb365b15c8e940acdfbff97e5362734e09429d..426aa0d05239a8f4d88f42df66d72340fff69c9e 100644 (file)
@@ -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
 
This page took 0.081567 seconds and 4 git commands to generate.