diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-10 17:17:48 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-10 17:17:48 +0000 |
commit | 3968241936be72eae9ef93725cf57a5d65d6df06 (patch) | |
tree | 30b9279185102f9b72aa1d35f9515cdb98f98ca6 /libdeflate.spec | |
parent | 3674328d9183ab6c72fd0f403ad0fafbcb3521bc (diff) |
automatic import of libdeflate
Diffstat (limited to 'libdeflate.spec')
-rw-r--r-- | libdeflate.spec | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/libdeflate.spec b/libdeflate.spec new file mode 100644 index 0000000..01591a3 --- /dev/null +++ b/libdeflate.spec @@ -0,0 +1,77 @@ +%global debug_package %{nil} + +Name: libdeflate +Version: 1.21 +Release: 1 +Summary: Fast implementation of DEFLATE, gzip, and zlib +License: MIT +URL: https://github.com/ebiggers/libdeflate +Source0: https://github.com/ebiggers/libdeflate/releases/download/v%{version}/%{name}-%{version}.tar.gz +Patch0: libdeflate-gcc-13.3-binutils-2.40.patch + +BuildRequires: gcc cmake ninja-build zlib-devel + +%description +libdeflate is a library for fast, whole-buffer DEFLATE-based compression and +decompression, supporting DEFLATE, gzip, and zlib. + + +%package devel +Summary: Development files for libdeflate +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files for libdeflate. + + +%package utils +Summary: Binaries from libdeflate +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description utils +Binaries from libdeflate. + +%prep +%autosetup -p1 + +%build +%cmake \ + -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_build + +%install +%cmake_install + +%files +%doc NEWS.md README.md +%license COPYING +%{_libdir}/libdeflate.so.0 + +%files devel +%{_includedir}/libdeflate.h +%{_libdir}/libdeflate.so +%{_libdir}/cmake/libdeflate/*.cmake +%{_libdir}/pkgconfig/* + +%files utils +%{_bindir}/libdeflate-gzip +%{_bindir}/libdeflate-gunzip + +%changelog +* Sun Aug 11 2024 Funda Wang <fundawang@yeah.net> - 1.21-1 +- update to 1.21 + +* Sat Jun 3 2023 guoyizhang <kuoi@bioarchlinux.org> - 1.18-1 +- update to 1.18 + +* Fri Jan 28 2022 herengui <herengui@uniontech.com> - 1.9-1 +- Initial package |