SHA256
1
0
forked from pool/zstd

Accepting request 644196 from home:AndreasStieger:branches:Archiving

zstd 1.3.7

OBS-URL: https://build.opensuse.org/request/show/644196
OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=24
This commit is contained in:
2018-10-24 09:34:08 +00:00
committed by Git OBS Bridge
parent 92aa6cbd1c
commit 3c35264bb6
5 changed files with 28 additions and 127 deletions

View File

@@ -19,16 +19,15 @@
%define major 1
%define libname lib%{name}%{major}
Name: zstd
Version: %{major}.3.5
Version: %{major}.3.7
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
Source0: https://github.com/facebook/zstd/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch1: pzstd.1.patch
Patch2: pzstd-global-gtest.patch
Patch3: zstd-1.3.5-fix-list-stdin.patch
BuildRequires: gcc
# C++ is needed for pzstd only
BuildRequires: gcc-c++
@@ -83,7 +82,6 @@ Needed for compiling programs that link with the library.
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
export CFLAGS="%{optflags}"
@@ -104,34 +102,23 @@ install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1
%files
%doc NEWS README.md
%{_bindir}/zstd
%{_bindir}/zstdcat
%{_bindir}/zstdgrep
%{_bindir}/zstdless
%{_bindir}/zstdmt
%{_bindir}/unzstd
%{_bindir}/pzstd
%{_mandir}/man1/zstd.1%{?ext_man}
%{_mandir}/man1/unzstd.1%{?ext_man}
%{_mandir}/man1/zstdcat.1%{?ext_man}
%{_mandir}/man1/pzstd.1%{?ext_man}
%license COPYING LICENSE
%doc NEWS README.md
%{_bindir}/*
%{_mandir}/man1/*.1%{?ext_man}
%files -n %{libname}
%{_libdir}/libzstd.so.*
%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
%{_includedir}/*.h
%{_libdir}/pkgconfig/libzstd.pc
%{_libdir}/libzstd.so
%files -n lib%{name}-devel-static
%license COPYING LICENSE
%{_libdir}/libzstd.a
%post -n %{libname} -p /sbin/ldconfig