diff --git a/ipcalc.spec b/ipcalc.spec index f5d12c05b5a2fd9d01cb91927d47dcddb389ca07..5ad8928b9f960040adaa542983aa8ff3d4deae0a 100644 --- a/ipcalc.spec +++ b/ipcalc.spec @@ -1,6 +1,8 @@ +%define anolis_release .0.1 + Name: ipcalc Version: 0.2.4 -Release: 4%{?dist} +Release: 4%{anolis_release}%{?dist} Summary: IP network address calculator # This is an updated version of ipcalc originally found @@ -29,6 +31,14 @@ IP network information in human readable format, in a format suitable for parsing in scripts, generate random private addresses, resolve an IP address, or check the validity of an address. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %autosetup -S git @@ -49,10 +59,15 @@ make check %{_bindir}/ipcalc %license COPYING -%doc README.md %{_mandir}/man1/ipcalc.1* +%files doc +%doc README.md + %changelog +* Mon Jul 18 2022 DengXiewei - 0.2.4-4.0.1 +- Add doc sub package + * Thu Oct 10 2019 Martin Osvald - 0.2.4-4 - Add support for RFC3021 (#1638834)