snappy/snappy.spec

118 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-11-06 19:52:56 +08:00
Name: snappy
2023-07-03 18:43:15 +08:00
Version: 1.1.10
Release: 2
2019-09-30 11:17:17 -04:00
Summary: A fast compressor/decompressor
License: BSD
URL: https://github.com/google/snappy
Source0: https://github.com/google/snappy/archive/%{version}/%{name}-%{version}.tar.gz
Source1: snappy.pc
2021-12-24 16:24:18 +08:00
Patch0: remove-dependency-on-google-benchmark-and-gmock.patch
Patch2: add-option-to-enable-rtti-set-default-to-current-ben.patch
2019-09-30 11:17:17 -04:00
2021-12-24 16:24:18 +08:00
BuildRequires: gcc-c++ make gtest-devel cmake
2019-09-30 11:17:17 -04:00
%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.
%package devel
2020-07-17 11:02:06 +08:00
Summary: Development files for snappy
2019-09-30 11:17:17 -04:00
Group: Development/Libraries
2019-11-06 19:52:56 +08:00
Requires: %{name} = %{version}-%{release}
2019-09-30 11:17:17 -04:00
Requires: cmake-filesystem pkgconfig
%description devel
This package is the development files for snappy.
%package_help
%prep
2019-11-06 19:52:56 +08:00
%autosetup -n %{name}-%{version} -p1
2019-09-30 11:17:17 -04:00
%build
%cmake -DSNAPPY_ENABLE_RTTI=ON -DCMAKE_CXX_STANDARD=14
2019-09-30 11:17:17 -04:00
%make_build
%install
rm -rf %{buildroot}
mkdir %{buildroot}
%make_install
install -p -D %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/snappy.pc
%check
2019-11-06 19:52:56 +08:00
make test
2019-09-30 11:17:17 -04:00
%pre
%preun
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
2019-11-06 19:52:56 +08:00
%license COPYING AUTHORS
2019-09-30 11:17:17 -04:00
%{_libdir}/libsnappy.so.*
%files devel
%defattr(-,root,root)
%doc format_*.txt framing_*.txt
%{_includedir}/snappy*.h
%{_libdir}/libsnappy.so
%{_libdir}/pkgconfig/snappy.pc
%{_libdir}/cmake/Snappy/*.cmake
%files help
%doc NEWS README.md
%changelog
* Fri Jan 12 2024 zhoupengcheng<zhoupengcheng11@huawei.com> -1.1.10-2
- Build with C++14 instead of C++11; gtest 1.13.0 requires it
2023-07-03 18:43:15 +08:00
* Mon Jul 3 2023 dillon chen<dillon.chen@gmail.com> -1.1.10-1
- update version to 1.1.10
- Removed patch1(inline.patch) as it's no longer required.
- repatch patch2(snappy-stubs-internal.h)
* Wed Jun 22 2022 wangzengliang<wangzengliang1@huawei.com> - 1.1.9-2
- DESC: add option to enable rtti set default to current
2021-12-24 16:24:18 +08:00
* Fri Dec 24 2021 yuanxin<yuanxin24@huawei.com> - 1.1.9-1
- update version to 1.1.9
* Thu Dec 2 2021 hanxinke<hanxinke@huawei.com> - 1.1.8-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC: add testcases and delete unnecessary test code for snappy
2020-07-17 11:02:06 +08:00
* Fri Jul 17 2020 shixuantong <shixuantong> - 1.1.8-1
- Type:NA
- ID:NA
- SUG:NA
- DESC:update to 1.1.8-1
2019-11-06 19:52:56 +08:00
* Wed Oct 9 2019 shenyangyang<shenyangyang4@huawei.com> - 1.1.7-10
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:modify the patch number and requires of devel
2019-09-30 11:17:17 -04:00
* Fri Sep 27 2019 shenyangyang<shenyangyang4@huawei.com> - 1.1.7-9
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:move the license
* Tue Sep 24 2019 shenyangyang<shenyangyang4@huawei.com> - 1.1.7-8
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add help package
* Tue Aug 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.1.7-7
- Package init