Skip to content

Commit

Permalink
Update libdeflate version to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
jykanase committed Oct 8, 2024
1 parent 7ecc5ac commit 8c916a6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 11 deletions.
2 changes: 1 addition & 1 deletion SPECS-EXTENDED/libdeflate/libdeflate.signatures.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Signatures": {
"libdeflate-1.9.tar.gz": "a537ab6125c226b874c02b166488b326aece954930260dbf682d88fc339137e3"
"libdeflate-1.21.tar.gz": "50827d312c0413fbd41b0628590cd54d9ad7ebf88360cba7c0e70027942dbd01"
}
}
39 changes: 31 additions & 8 deletions SPECS-EXTENDED/libdeflate/libdeflate.spec
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
Summary: Fast implementation of DEFLATE, gzip, and zlib


Name: libdeflate
Version: 1.9
Release: 4%{?dist}
Version: 1.21
Release: 1%{?dist}
License: MIT
Vendor: Microsoft Corporation
Distribution: Azure Linux
URL: https://github.com/ebiggers/libdeflate
Source0: https://github.com/ebiggers/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/ebiggers/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz


BuildRequires: gcc
BuildRequires: make
BuildRequires: cmake
BuildRequires: zlib-devel

%description
libdeflate is a library for fast, whole-buffer DEFLATE-based compression and
Expand All @@ -28,16 +33,29 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description utils
Binaries from libdeflate.


%prep
%autosetup
sed -r -i 's/-O2 -fomit-frame-pointer -std=c99/-std=c99/' Makefile

%build
%make_build CFLAGS="%{optflags} -fpic -pie -g" USE_SHARED_LIB=1 LIBDIR=%{_libdir} PREFIX=%{_prefix}
cmake_opts="\
-DLIBDEFLATE_BUILD_STATIC_LIB:BOOL=OFF \
-DLIBDEFLATE_BUILD_SHARED_LIB:BOOL=ON \
-DLIBDEFLATE_COMPRESSION_SUPPORT:BOOL=ON \
-DLIBDEFLATE_DECOMPRESSION_SUPPORT:BOOL=ON \
-DLIBDEFLATE_ZLIB_SUPPORT:BOOL=ON \
-DLIBDEFLATE_GZIP_SUPPORT:BOOL=ON \
-DLIBDEFLATE_FREESTANDING:BOOL=OFF \
-DLIBDEFLATE_BUILD_GZIP:BOOL=ON \
-DLIBDEFLATE_BUILD_TESTS:BOOL=ON \
-DLIBDEFLATE_USE_SHARED_LIBS:BOOL=ON"

%cmake $cmake_opts
%cmake_build

%install
%make_install CFLAGS="%{optflags} -fpic -pie -g" USE_SHARED_LIB=1 LIBDIR=%{_libdir} PREFIX=%{_prefix}
rm %{buildroot}/%{_libdir}/*.a
%cmake_install


%files
%doc NEWS.md README.md
Expand All @@ -48,12 +66,17 @@ rm %{buildroot}/%{_libdir}/*.a
%{_includedir}/libdeflate.h
%{_libdir}/libdeflate.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/libdeflate/

%files utils
%{_bindir}/libdeflate-gzip
%{_bindir}/libdeflate-gunzip


%changelog
* Mon Oct 7 2024 Jyoti kanase <[email protected]> - 1.21-1
- Update to version 1.21

* Wed Jan 18 2023 Suresh Thelkar <[email protected]> - 1.9-4
- Initial CBL-Mariner import from Fedora 36 (license: MIT)
- License verified
Expand Down
4 changes: 2 additions & 2 deletions cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9011,8 +9011,8 @@
"type": "other",
"other": {
"name": "libdeflate",
"version": "1.9",
"downloadUrl": "https://github.com/ebiggers/libdeflate/archive/v1.9.tar.gz"
"version": "1.21",
"downloadUrl": "https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.21.tar.gz"
}
}
},
Expand Down

0 comments on commit 8c916a6

Please sign in to comment.