diff --git a/gdisk.spec b/gdisk.spec index 69b20d6..034600c 100644 --- a/gdisk.spec +++ b/gdisk.spec @@ -1,11 +1,12 @@ Summary: An fdisk-like partitioning tool for GPT disks Name: gdisk Version: 0.8.1 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 URL: http://www.rodsbooks.com/gdisk/ Group: System Environment/Base Source0: http://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz +Patch0: gptfdisk-0.8.1-gcc47.patch BuildRequires: popt-devel BuildRequires: libicu-devel BuildRequires: libuuid-devel @@ -19,6 +20,7 @@ tables, and the ability to convert MBR disks to GPT format. %prep %setup -q -n gptfdisk-%{version} +%patch0 -p1 chmod 0644 gdisk_test.sh %build @@ -47,6 +49,9 @@ done %{_mandir}/man8/fixparts.8* %changelog +* Thu Jan 05 2012 Terje Rosten - 0.8.1-3 +- Add patch to build with gcc 4.7 + * Mon Oct 17 2011 Terje Rosten - 0.8.1-2 - Add cgdisk and fixparts diff --git a/gptfdisk-0.8.1-gcc47.patch b/gptfdisk-0.8.1-gcc47.patch new file mode 100644 index 0000000..392ef4a --- /dev/null +++ b/gptfdisk-0.8.1-gcc47.patch @@ -0,0 +1,11 @@ +--- gptfdisk-0.8.1/diskio-unix.cc~ 2011-10-01 23:52:33.000000000 +0200 ++++ gptfdisk-0.8.1/diskio-unix.cc 2012-01-05 10:14:49.440260712 +0100 +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + #include + #include + #include +