diff --git a/libnfnetlink.spec b/libnfnetlink.spec index 42d6f03c8050f9489177ba196f68e26787bea2ea..0ee2aca8c265c6943dc3cb6f3268b3618255ec4c 100644 --- a/libnfnetlink.spec +++ b/libnfnetlink.spec @@ -1,6 +1,7 @@ +%define anolis_release .0.1 Name: libnfnetlink Version: 1.0.1 -Release: 13%{?dist} +Release: 13%{anolis_release}%{?dist} Summary: Netfilter netlink userspace library Group: System Environment/Libraries License: GPLv2+ @@ -10,12 +11,23 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: kernel-headers BuildRequires: automake autoconf libtool pkgconfig +Requires: glibc + %description libnfnetlink is a userspace library that provides some low-level nfnetlink handling functions. It is used as a foundation for other, netfilter subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log and libnfnetlink_queue. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + + +%description doc +Doc pages for %{name}. + %package devel Summary: Netfilter netlink userspace library Group: Development/Libraries @@ -50,9 +62,10 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %{!?_licensedir:%global license %%doc} %license COPYING -%doc README %{_libdir}/*.so.* +%files doc +%doc README %files devel %defattr(-,root,root,-) @@ -62,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/libnfnetlink/*.h %changelog +* Mon Jul 17 2022 mgb01105731 - 1.0.1-13.0.1 +- Add doc sub package + * Fri Feb 09 2018 Igor Gnatenko - 1.0.1-13 - Escape macros in %%changelog