diff --git a/gdisk.spec b/gdisk.spec index 6dea99aa58689feec66ba1ebd8b0df4dac3f989d..1d88f7402105f70f730d2835f99aedef62e672be 100644 --- a/gdisk.spec +++ b/gdisk.spec @@ -1,7 +1,9 @@ +%define anolis_release .0.1 + Summary: An fdisk-like partitioning tool for GPT disks Name: gdisk Version: 1.0.3 -Release: 9%{?dist} +Release: 9%{anolis_release}%{?dist} License: GPLv2 URL: http://www.rodsbooks.com/gdisk/ Group: System Environment/Base @@ -10,6 +12,8 @@ Patch0: gdisk-1.0.3-byteswap.patch BuildRequires: popt-devel BuildRequires: libuuid-devel BuildRequires: ncurses-devel +Provides: /usr/sbin/gdisk +Requires: glibc %description An fdisk-like partitioning tool for GPT disks. GPT fdisk features a @@ -17,6 +21,14 @@ command-line interface, fairly direct manipulation of partition table structures, recovery tools to help you deal with corrupt partition tables, and the ability to convert MBR disks to GPT format. +%package doc +Summary: Documents for %{name} +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Doc pages for %{name}. + %prep %setup -q -n gptfdisk-%{version} %patch0 -p1 @@ -33,7 +45,7 @@ done %files %license COPYING -%doc NEWS README gdisk_test.sh +%doc gdisk_test.sh %{_sbindir}/gdisk %{_sbindir}/cgdisk %{_sbindir}/sgdisk @@ -43,7 +55,13 @@ done %{_mandir}/man8/sgdisk.8* %{_mandir}/man8/fixparts.8* +%files doc +%doc NEWS README + %changelog +* Sun Jul 17 2022 DengXiewei - 1.0.3-9.0.1 +- Add doc sub package + * Tue Mar 15 2022 Nikola Forró - 1.0.3-9 - Fix double byteswap on big-endian systems also while reading partition names related: #1899990