Projects
home:pandora:RobinOS23
zstd
_service:download_src_package:zstd.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:download_src_package:zstd.spec of Package zstd
%define anolis_release 2 %bcond_without asm %bcond_without lz4 %bcond_without lzma %bcond_without zlib %ifarch x86_64 %bcond_without pzstd %else %bcond_with pzstd %endif Name: zstd Version: 1.5.2 Release: %{anolis_release}%{?dist} Summary: Zstd compression library License: BSD and GPLv2 URL: https://github.com/facebook/zstd Source0: https://github.com/facebook/zstd/releases/download/v%{version}/%{name}-%{version}.tar.zst Patch1: pzstd.1.patch Patch2: enable-CET.patch BuildRequires: make BuildRequires: gcc gtest-devel %if %{with lz4} BuildRequires: lz4-devel %endif %if %{with lzma} BuildRequires: xz-devel %endif %if %{with pzstd} BuildRequires: gcc-c++ %endif %if %{with zlib} BuildRequires: zlib-devel %endif BuildRequires: execstack %description Zstd, short for Zstandard, is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level compression ratio. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package -n lib%{name} Summary: Zstd shared library %description -n lib%{name} Zstandard compression shared library. %package -n lib%{name}-devel Summary: Header files for Zstd library Requires: lib%{name} = %{version}-%{release} %package -n lib%{name}-static Summary: Static variant of the Zstd library Requires: lib%{name}-devel = %{version}-%{release} %description -n lib%{name}-devel Header files for Zstd library. %description -n lib%{name}-static Static variant of the Zstd library. %prep %setup -q find -name .gitignore -delete %if %{with pzstd} %patch1 -p1 %endif %patch2 -p1 %build export CFLAGS="$RPM_OPT_FLAGS" export LDFLAGS="$RPM_LD_FLAGS" export PREFIX="%{_prefix}" export LIBDIR="%{_libdir}" %make_build -C lib lib-mt %{!?with_asm:ZSTD_NO_ASM=1} %make_build -C programs %{!?with_asm:ZSTD_NO_ASM=1} %if %{with pzstd} export CXXFLAGS="$RPM_OPT_FLAGS" %make_build -C contrib/pzstd %{!?with_asm:ZSTD_NO_ASM=1} %endif %check execstack lib/libzstd.so.1 export CFLAGS="$RPM_OPT_FLAGS" export LDFLAGS="$RPM_LD_FLAGS" make -C tests test-zstd %if %{with pzstd} export CXXFLAGS="$RPM_OPT_FLAGS" make -C contrib/pzstd test %endif %install %make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} %if %{with pzstd} install -D -m755 contrib/pzstd/pzstd %{buildroot}%{_bindir}/pzstd install -D -m644 programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1 %endif %generate_compatibility_deps %files %{_bindir}/%{name} %if %{with pzstd} %{_bindir}/p%{name} %{_mandir}/man1/p%{name}.1* %{abidir}/p%{name}-option.list %endif %{abidir}/%{name}*-option.list %{_bindir}/%{name}mt %{_bindir}/un%{name} %{_bindir}/%{name}cat %{_bindir}/%{name}grep %{_bindir}/%{name}less %{_mandir}/man1/%{name}.1* %{_mandir}/man1/un%{name}.1* %{_mandir}/man1/%{name}cat.1* %{_mandir}/man1/%{name}grep.1* %{_mandir}/man1/%{name}less.1* %license COPYING LICENSE %files doc %doc CHANGELOG README.md %files -n lib%{name} %dir %{abidir} %{_libdir}/libzstd.so.* %{abidir}/libzstd.dump %license COPYING LICENSE %files -n lib%{name}-devel %{_includedir}/zdict.h %{_includedir}/zstd.h %{_includedir}/zstd_errors.h %{_libdir}/pkgconfig/libzstd.pc %{_libdir}/libzstd.so %files -n lib%{name}-static %{_libdir}/libzstd.a %ldconfig_scriptlets -n lib%{name} %changelog * Wed Oct 19 2022 mgb01105731 <mgb01105731@alibaba-inc.com> - 1.5.2-2 - optimise spec file & add doc package * Wed Mar 09 2022 zhang xianting <zhangxianting@uniontech.com> - 1.5.2-1 - Initial build for Anolis V23
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2