From b41484b6764f31c1e1af6dbe896600e17130203e Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Wed, 28 May 2025 15:34:27 +0800 Subject: [PATCH] build with meson --- lz4.spec | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/lz4.spec b/lz4.spec index 7ffdf82..902682c 100644 --- a/lz4.spec +++ b/lz4.spec @@ -1,6 +1,8 @@ +%global _vpath_srcdir build/meson + Name: lz4 Version: 1.10.0 -Release: 2 +Release: 3 Summary: Extremely fast compression algorithm License: GPL-2.0-or-later AND BSD-2-Clause @@ -12,6 +14,7 @@ Obsoletes: %{name}-libs < %{version} BuildRequires: gcc BuildRequires: make +BuildRequires: meson >= 0.58.0 %description LZ4 is lossless compression algorithm, providing compression speed > 500 MB/s per @@ -33,25 +36,24 @@ applications using liblz4 library. %prep %autosetup -n %{name}-%{version} -p1 -cp lib/LICENSE LICENSE-lib %build -%set_build_flags -export PREFIX=/usr -%make_build +%meson \ + -Dprograms=true \ + -Ddefault_library=both \ + -Dtests=true \ + %{nil} +%meson_build %install -%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix} +%meson_install %check -%set_build_flags -%make_build test +%meson_test %files -%license programs/COPYING +%license programs/COPYING lib/LICENSE %doc NEWS -%license LICENSE -%license LICENSE-lib %{_bindir}/* %{_libdir}/liblz4.so.* @@ -66,6 +68,10 @@ export PREFIX=/usr %{_mandir}/man?/* %changelog +* Wed May 28 2025 Funda Wang - 1.10.0-3 +- build with meson +- finally fix pkg-config file + * Wed May 28 2025 Dongxing Wang - 1.10.0-2 - Fix pkg-config error dir /usr/local -- Gitee