forked from pool/lz4
use cmake
This commit is contained in:
parent
e0d13e3387
commit
45c107641f
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 14 16:09:45 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Switch to cmake build system: Creates extra cmake modules for
|
||||
consuming projects
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 22 11:45:03 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
12
lz4.spec
12
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
|
||||
|
Loading…
Reference in New Issue
Block a user