summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-09 14:40:23 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-09 14:40:23 +0000
commit8cab43cec06b890ccce6c715bc2eba8a78c92c44 (patch)
tree850933c62d5ae4a8131b41246b2ad7dcb2442446
parent841132f34df2af52f704905a08562f66790a14dd (diff)
automatic import of libdeflateopeneuler24.03_LTS
-rw-r--r--.gitignore1
-rw-r--r--libdeflate.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..a7b16d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libdeflate-1.22.tar.gz
diff --git a/libdeflate.spec b/libdeflate.spec
new file mode 100644
index 0000000..8383e75
--- /dev/null
+++ b/libdeflate.spec
@@ -0,0 +1,78 @@
+%global debug_package %{nil}
+
+Name: libdeflate
+Version: 1.22
+Release: 2
+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
+
+BuildRequires: gcc
+BuildRequires: cmake >= 3.7
+BuildRequires: ninja-build
+BuildRequires: 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
+
+%build
+%cmake -G Ninja \
+ -DLIBDEFLATE_BUILD_STATIC_LIB=OFF \
+ -DLIBDEFLATE_BUILD_TESTS=ON
+%cmake_build
+
+%install
+%cmake_install
+
+%check
+%ctest
+
+%files
+%doc NEWS.md README.md
+%license COPYING
+%{_libdir}/libdeflate.so.*
+
+%files devel
+%{_includedir}/libdeflate.h
+%{_libdir}/libdeflate.so
+%{_libdir}/cmake/libdeflate
+%{_libdir}/pkgconfig/*
+
+%files utils
+%{_bindir}/libdeflate-gzip
+%{_bindir}/libdeflate-gunzip
+
+%changelog
+* Sat Nov 09 2024 Funda Wang <fundawang@yeah.net> - 1.22-2
+- adopt to new cmake macro
+- cleanup spec
+
+* Tue Oct 22 2024 binshuo zu <binshuo.oerv@isrc.iscas.ac.cn> - 1.22-1
+- upgrade to 1.22
+
+* 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
diff --git a/sources b/sources
new file mode 100644
index 0000000..55fd39c
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+35569ae2a9eb666b8899632db13e07df libdeflate-1.22.tar.gz