Accepting request 620410 from home:AndreasStieger:branches:Archiving
zstd 1.3.5 OBS-URL: https://build.opensuse.org/request/show/620410 OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
f68095d641
commit
92aa6cbd1c
22
zstd.spec
22
zstd.spec
@@ -15,24 +15,25 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define major 1
|
||||
%define libname lib%{name}%{major}
|
||||
Name: zstd
|
||||
Version: %{major}.3.4
|
||||
Version: %{major}.3.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
|
||||
URL: https://github.com/facebook/zstd
|
||||
Source0: https://github.com/facebook/zstd/archive/v%{version}.tar.gz#/%{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++
|
||||
BuildRequires: googletest-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Zstd, short for Zstandard, is a lossless compression algorithm,
|
||||
@@ -82,6 +83,7 @@ Needed for compiling programs that link with the library.
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -94,7 +96,7 @@ done
|
||||
export CFLAGS="%{optflags}"
|
||||
export CXXFLAGS="%{optflags} -std=c++11"
|
||||
make %{?_smp_mflags} -C tests test-zstd
|
||||
make -C contrib/pzstd test-pzstd
|
||||
#make %{?_smp_mflags} -C contrib/pzstd test-pzstd
|
||||
|
||||
%install
|
||||
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||
@@ -102,7 +104,6 @@ install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd
|
||||
install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc NEWS README.md
|
||||
%{_bindir}/zstd
|
||||
%{_bindir}/zstdcat
|
||||
@@ -111,19 +112,17 @@ install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1
|
||||
%{_bindir}/zstdmt
|
||||
%{_bindir}/unzstd
|
||||
%{_bindir}/pzstd
|
||||
%{_mandir}/man1/zstd.1*
|
||||
%{_mandir}/man1/unzstd.1*
|
||||
%{_mandir}/man1/zstdcat.1*
|
||||
%{_mandir}/man1/pzstd.1*
|
||||
%{_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
|
||||
|
||||
%files -n %{libname}
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libzstd.so.*
|
||||
%license COPYING LICENSE
|
||||
|
||||
%files -n lib%{name}-devel
|
||||
%defattr(-,root,root,-)
|
||||
%license COPYING LICENSE
|
||||
%{_includedir}/zbuff.h
|
||||
%{_includedir}/zdict.h
|
||||
@@ -133,7 +132,6 @@ install -D -m644 programs/zstd.1 %{buildroot}%{_mandir}/man1/pzstd.1
|
||||
%{_libdir}/libzstd.so
|
||||
|
||||
%files -n lib%{name}-devel-static
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libzstd.a
|
||||
|
||||
%post -n %{libname} -p /sbin/ldconfig
|
||||
|
Reference in New Issue
Block a user