Bump to zstd 1.4.5 16/248116/1 accepted/tizen_6.5_base accepted/tizen_6.5_base_tool tizen_6.5_base accepted/tizen/6.5/base/20230714.002746 accepted/tizen/6.5/base/tool/20211028.034932 accepted/tizen/base/tool/20201123.235225 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.201101 submit/tizen_6.5_base/20211028.121101 submit/tizen_6.5_base/20211028.124201 submit/tizen_base/20201123.003545 submit/tizen_base/20201123.004933 submit/tizen_base/20201123.010621 submit/tizen_base/20201123.024227 submit/tizen_base/20201123.025129 submit/tizen_base/20201123.051834 submit/tizen_base/20201123.055004 submit/tizen_base/20201123.060020 submit/tizen_base/20201123.061546 submit/tizen_base/20201123.075306 submit/tizen_base/20201207.055733 submit/tizen_base/20201208.051231 submit/tizen_base/20201208.051733 tizen_6.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 20 Nov 2020 07:05:39 +0000 (16:05 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 23 Nov 2020 00:34:36 +0000 (09:34 +0900)
Change-Id: Ib6b3bcbf8a38d225227cfc2aacd6344bc7b71924
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
.gitignore [deleted file]
packaging/zstd.manifest [new file with mode: 0644]
packaging/zstd.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 96f8bdc..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-# Object files
-*.o
-*.ko
-*.dSYM
-
-# Libraries
-*.lib
-*.a
-
-# Shared objects (inc. Windows DLLs)
-*.dll
-*.so
-*.so.*
-*.dylib
-
-# Executables
-/zstd
-zstdmt
-*.exe
-*.out
-*.app
-
-# Test artefacts
-tmp*
-dictionary.
-dictionary
-NUL
-
-# Build artefacts
-projects/
-bin/
-.buckd/
-buck-out/
-build-*
-
-# Other files
-.directory
-_codelite/
-_zstdbench/
-.clang_complete
-*.idea
-*.swp
-.DS_Store
-googletest/
-*.d
-*.vscode
-*.code-workspace
-compile_commands.json
-.clangd
diff --git a/packaging/zstd.manifest b/packaging/zstd.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/zstd.spec b/packaging/zstd.spec
new file mode 100644 (file)
index 0000000..f71befb
--- /dev/null
@@ -0,0 +1,106 @@
+#
+# spec file for package zstd
+#
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+
+%define major 1
+%define libname lib%{name}%{major}
+Name:           zstd
+Version:        %{major}.4.5
+Release:        0
+Summary:        Zstandard compression tools
+License:        BSD-3-Clause AND GPL-2.0-only
+Group:          Productivity/Archiving/Compression
+Url:            https://github.com/facebook/zstd
+Source0:        https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+BuildRequires:  pkgconfig
+
+%description
+Zstd, short for Zstandard, is a lossless compression algorithm,
+targeting real-time compression scenarios at zlib-level compression ratio.
+
+Zstd can also offer stronger compression ratios at the cost of
+compression speed. Speed vs. compression trade-off is configurable by
+small increments. Decompression speed is preserved and remains
+roughly the same at all settings, a property shared by most LZ
+compression algorithms, such as zlib or lzma.
+
+%package -n %{libname}
+Summary:        Zstd compression library
+Group:          System/Libraries
+
+%description -n %{libname}
+Zstd, short for Zstandard, is a lossless compression algorithm,
+targeting real-time compression scenarios at zlib-level compression ratio.
+
+This subpackage contains the implementation as a shared library.
+
+%package -n lib%{name}-devel
+Summary:        Development files for the Zstd compression library
+Group:          Development/Libraries/C and C++
+Requires:       %{libname} = %{version}
+Requires:       glibc-devel
+
+%description -n lib%{name}-devel
+Zstd, short for Zstandard, is a lossless compression algorithm,
+targeting real-time compression scenarios at zlib-level compression ratio.
+
+Needed for compiling programs that link with the library.
+
+%prep
+%setup -q
+
+%build
+for dir in lib programs; do
+  CFLAGS="%{optflags}" make %{?_smp_mflags} -C "$dir"
+done
+
+%post -n %{libname} -p /sbin/ldconfig
+%postun -n %{libname} -p /sbin/ldconfig
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT \
+                       INSTALL="%{__install} -p" \
+                       PREFIX=%{_prefix} \
+                       LIBDIR=%{_libdir}
+rm -f %{buildroot}%{_libdir}/libzstd.a
+%remove_docs
+
+# %check
+# CFLAGS="%{optflags}" make %{?_smp_mflags} -C tests test-zstd
+
+%files
+%license COPYING LICENSE
+%{_bindir}/zstd
+%{_bindir}/zstdcat
+%{_bindir}/zstdgrep
+%{_bindir}/zstdless
+%{_bindir}/zstdmt
+%{_bindir}/unzstd
+
+%files -n %{libname}
+%license COPYING LICENSE
+%{_libdir}/libzstd.so.*
+
+%files -n lib%{name}-devel
+%license COPYING LICENSE
+%{_includedir}/zbuff.h
+%{_includedir}/zdict.h
+%{_includedir}/zstd.h
+%{_includedir}/zstd_errors.h
+%{_libdir}/pkgconfig/libzstd.pc
+%{_libdir}/libzstd.so
+