Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:aevseev:desktop
snappy
snappy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File snappy.spec of Package snappy
%define realname snappy %define realver 1.1.10 %define srcext tar.gz %define so_ver 1 # turn off the generation of debuginfo rpm (RH9) ?? %global debug_package %{nil} # Common info Name: lib%{realname}%{?so_ver} Version: %{realver} Release: wiz%{?extraver:0.}1%{?dist} License: BSD-3-Clause Group: Productivity/Archiving/Compression URL: http://google.github.io/snappy/ Summary: Fast compressor/decompressor # Install-time parameters Provides: %{realname} = %{version}-%{release} Provides: lib%{realname} = %{version}-%{release} # Build-time parameters BuildRequires: cmake >= 3.1 BuildRequires: ninja BuildRequires: gcc-c++ BuildRequires: zlib-devel BuildRequires: lzo-devel BuildRequires: %{?suse_version:lib}lz4-devel BuildRoot: %{_tmppath}/%{name}-root Source: https://github.com/google/snappy/archive/refs/tags/%{realver}%{?extraver}.%{srcext}#/%{realname}-%{realver}%{?extraver}.%{srcext} %description Snappy is a compression/decompression library. It does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression. For instance, compared to the fastest mode of zlib, Snappy is an order of magnitude faster for most inputs, but the resulting compressed files are anywhere from 20% to 100% bigger. %package -n %{?suse_version:lib}%{realname}-devel Group: Development/Languages/C and C++ Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} Requires: libstdc++-devel Provides: lib%{realname}%{?so_ver}-devel = %{version}-%{release} %if 0%{?suse_version} Provides: %{realname}-devel = %{version}-%{release} Obsoletes: %{realname}-devel < %{version}-%{release} %else Provides: lib%{realname}-devel = %{version}-%{release} Obsoletes: lib%{realname}-devel < %{version}-%{release} %endif %description -n %{?suse_version:lib}%{realname}-devel Development files for %{name} # Preparation step (unpackung and patching if necessary) %prep %setup -q -n %{realname}-%{version}%{?extraver} %build # -maes -mavx -mavx2 -mbmi -mbmi2 -mclflushopt -mcx16 -mmovbe -mpopcnt -mrdrnd -mrdseed -mxsave -mxsavec -mxsaves -mxsaveopt _CFLAGS='%{optflags} %{?gcc_lto}' _LDFLAGS='-Wl,--as-needed -Wl,--strip-all -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro %{?gcc_lto}' _CMAKE_ARGS=( -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_C_FLAGS_RELEASE="$_CFLAGS" -DCMAKE_EXE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="$_LDFLAGS" -DCMAKE_VERBOSE_MAKEFILE=YES ) cmake -S . -B build \ -G Ninja \ "${_CMAKE_ARGS[@]}" \ \ -DBUILD_SHARED_LIBS=YES \ -DSNAPPY_BUILD_TESTS=NO \ -DSNAPPY_BUILD_BENCHMARKS=NO \ -DSNAPPY_REQUIRE_AVX2=YES ninja -C build -v %{?_smp_mflags} %install DESTDIR=%{buildroot} ninja -v -C build install [ "%{buildroot}" != "/" ] && %{__rm} -f %{buildroot}%{_datadir}/doc/%{realname}/* %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %files %defattr(-,root,root) %license COPYING %doc AUTHORS NEWS README.md %{_libdir}/lib%{realname}.so.%{?so_ver}* # Development stuff %files -n %{?suse_version:lib}%{realname}-devel %defattr(-,root,root) %license COPYING %doc AUTHORS NEWS README.md %doc *.txt %dir %{_libdir}/cmake/Snappy %dir %{_libdir}/cmake %{_libdir}/cmake/Snappy/*.cmake %{_includedir}/*.h %{_libdir}/lib%{realname}.so %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor