[packages/lz4] disable C++ language checks in cmake

glen glen at pld-linux.org
Sun Oct 6 19:02:27 CEST 2013


commit 9f3308471a5049805dbc49597296bae006d66047
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Oct 6 20:02:08 2013 +0300

    disable C++ language checks in cmake

 cmake-langs.patch | 8 ++++++++
 lz4.spec          | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/lz4.spec b/lz4.spec
index 3f7652f..5b641f0 100644
--- a/lz4.spec
+++ b/lz4.spec
@@ -8,12 +8,11 @@ License:	GPL-2.0+ and BSD-2-Clause
 Group:		Libraries
 Source0:	https://dl.dropboxusercontent.com/u/59565338/LZ4/%{name}-r%{svnrev}.tar.gz
 # Source0-md5:	4d071aaecd42dd383dd58c5a7577663b
+Patch0:		cmake-langs.patch
 URL:		http://fastcompression.blogspot.com/p/lz4.html
 BuildRequires:	cmake
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%undefine	__cxx
-
 %description
 LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv)
 algorithm. It is a LZP2 fork and provides better compression ratio for
@@ -46,6 +45,7 @@ Statyczna biblioteka %{name}.
 
 %prep
 %setup -qn %{name}-r%{svnrev}
+%patch0 -p1
 
 %build
 cd cmake
diff --git a/cmake-langs.patch b/cmake-langs.patch
new file mode 100644
index 0000000..0082bdc
--- /dev/null
+++ b/cmake-langs.patch
@@ -0,0 +1,8 @@
+--- lz4-r106/cmake/CMakeLists.txt~	2013-10-01 23:23:11.000000000 +0300
++++ lz4-r106/cmake/CMakeLists.txt	2013-10-06 19:59:09.445495368 +0300
+@@ -1,4 +1,4 @@
+-PROJECT(LZ4)
++PROJECT(LZ4 C)
+ set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "ASN.1 Compiler")
+ set(CPACK_PACKAGE_VERSION_MAJOR 0)
+ set(CPACK_PACKAGE_VERSION_MINOR 0)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lz4.git/commitdiff/9f3308471a5049805dbc49597296bae006d66047



More information about the pld-cvs-commit mailing list