diff --git a/snappy.spec b/snappy.spec index d2cabc252babe1b7566811b01c3b4ee12dcd94ea..59c118362e2638593b70288a0d2fcb87d19b46a8 100644 --- a/snappy.spec +++ b/snappy.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: snappy Version: 1.1.8 -Release: 3%{?dist} +Release: 3%{anolis_release}%{?dist} Summary: Fast compression and decompression library Group: System Environment/Libraries @@ -15,6 +16,8 @@ BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gtest-devel +Requires: glibc + %description Snappy is a compression/decompression library. It does not aim for maximum compression, or compatibility with any other compression library; instead, it @@ -36,6 +39,13 @@ Obsoletes: %{name}-devel < %{version}-2 The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. %prep %setup -q @@ -86,7 +96,6 @@ ctest -V %{?_smp_mflags} %files %defattr(-,root,root,-) -%doc AUTHORS COPYING NEWS README.md %{_libdir}/libsnappy.so.* %files devel @@ -101,8 +110,13 @@ ctest -V %{?_smp_mflags} %{_datadir}/cmake/Modules/lib/*.cmake %endif +%files doc +%doc AUTHORS COPYING NEWS README.md %changelog +* Mon Jul 18 2022 Xiaoping Liu - 1.1.8-3.0.1 +- Add doc sub package + * Fri Aug 21 2020 Bhupesh Sharma - 1.1.8-3 - Obsolete snappy-devel versions lower than 1.1.8-2 as lower versions have multilib issues.