From f1f9b767f30008b5a820e4cec768cf377ffdff0209aee6f6e25b0885287b2bd8 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 15 Aug 2024 07:13:58 +0000 Subject: [PATCH] [info=45c107641fe2b47b8d433842d0ff23738f0534636749a260257bbee35bab5e5e] OBS-URL: https://build.opensuse.org/package/show/Archiving/lz4?expand=0&rev=58 --- _scmsync.obsinfo | 4 ++-- build.specials.obscpio | 2 +- lz4.changes | 6 ++++++ lz4.spec | 12 +++++++++--- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 234aebd..d6f97af 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1721875765 -commit: e0d13e3387e54a9938a9761fd4d9d729404f34eb6775303056783eeba56cc998 +mtime: 1723665497 +commit: 45c107641fe2b47b8d433842d0ff23738f0534636749a260257bbee35bab5e5e url: https://src.opensuse.org/jengelh/lz4 revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index 326c253..da40a40 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:87e1c4d152e270fc163493ea42bc1bd11c4b9c96093be5c2c91f841ee83df3c9 +oid sha256:6bd3160d7eb4abbe7e759a6e3da1d2bbad4a25e9cac2050d87f3aec89af99e4a size 256 diff --git a/lz4.changes b/lz4.changes index 8a42b97..69a8349 100644 --- a/lz4.changes +++ b/lz4.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Aug 14 16:09:45 UTC 2024 - Ben Greiner + +- Switch to cmake build system: Creates extra cmake modules for + consuming projects + ------------------------------------------------------------------- Mon Jul 22 11:45:03 UTC 2024 - Jan Engelhardt diff --git a/lz4.spec b/lz4.spec index f4e4e3d..2fff8f8 100644 --- a/lz4.spec +++ b/lz4.spec @@ -30,6 +30,8 @@ Source: https://github.com/lz4/lz4/archive/v%version.tar.gz Source99: baselibs.conf Patch2: lz-export.diff BuildRequires: pkgconfig +BuildRequires: cmake +BuildRequires: fdupes %{?suse_build_hwcaps_libs} %description @@ -71,11 +73,14 @@ applications that want to make use of liblz4. %autosetup -p1 %build -V=1 %make_build CFLAGS="%optflags" +%define __sourcedir build/cmake +%cmake \ + -DBUILD_STATIC_LIBS:BOOL=OFF +%cmake_build %install -%make_install PREFIX="%_prefix" LIBDIR="%_libdir" -rm -f "%buildroot/%_libdir"/*.a +%cmake_install +%fdupes %{buildroot}/%{_mandir} %check LD_LIBRARY_PATH="%buildroot/%_libdir" ldd -r "%buildroot/%_bindir/lz4" @@ -97,5 +102,6 @@ LD_LIBRARY_PATH="%buildroot/%_libdir" ldd -r "%buildroot/%_bindir/lz4" %_includedir/lz4*.h %_libdir/liblz4.so %_libdir/pkgconfig/*.pc +%_libdir/cmake/lz4 %changelog