From 93de2e3b1948e6115ffefa75b5966576aecc67ab Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 29 2019 16:47:37 +0000 Subject: import gdisk-0.8.10-3.el7 --- diff --git a/.gdisk.metadata b/.gdisk.metadata new file mode 100644 index 0000000..4aebbe3 --- /dev/null +++ b/.gdisk.metadata @@ -0,0 +1 @@ +1708e232220236b6bdf299b315e9bc2205c01ba5 SOURCES/gptfdisk-0.8.10.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9c42d69 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/gptfdisk-0.8.10.tar.gz diff --git a/SOURCES/gdisk-0.8.10-exit-code.patch b/SOURCES/gdisk-0.8.10-exit-code.patch new file mode 100644 index 0000000..56ecd31 --- /dev/null +++ b/SOURCES/gdisk-0.8.10-exit-code.patch @@ -0,0 +1,46 @@ +From 09cfc620e6d0135efff53cf01499937b0d496dc8 Mon Sep 17 00:00:00 2001 +From: "Roderick W. Smith" +Date: Sat, 29 Mar 2014 00:45:59 -0400 +Subject: [PATCH] Fixed bug that caused spurious "1" exit condition in gdisk. + +--- + gdisk.cc | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/gdisk.cc b/gdisk.cc +index b3c6240..5768869 100644 +--- a/gdisk.cc ++++ b/gdisk.cc +@@ -15,6 +15,7 @@ int main(int argc, char* argv[]) { + GPTDataTextUI theGPT; + string device = ""; + UnicodeString uString; ++ int isError = 0; + + cout << "GPT fdisk (gdisk) version " << GPTFDISK_VERSION << "\n\n"; + +@@ -47,16 +48,20 @@ int main(int argc, char* argv[]) { + device = (string) argv[1]; + } else { // 3 arguments, but none is "-l" + cerr << "Usage: " << argv[0] << " [-l] device_file\n"; ++ isError = 1; + } // if/elseif/else + if (device != "") { + theGPT.JustLooking(); + if (theGPT.LoadPartitions(device)) + theGPT.DisplayGPTData(); ++ else ++ isError = 1; + } // if + break; + default: + cerr << "Usage: " << argv[0] << " [-l] device_file\n"; ++ isError = 1; + break; + } // switch +- return 1 ; ++ return (isError); + } // main +-- +2.17.2 + diff --git a/SPECS/gdisk.spec b/SPECS/gdisk.spec new file mode 100644 index 0000000..796910f --- /dev/null +++ b/SPECS/gdisk.spec @@ -0,0 +1,150 @@ +Summary: An fdisk-like partitioning tool for GPT disks +Name: gdisk +Version: 0.8.10 +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 + +# fix spurious exit code +Patch0: gdisk-0.8.10-exit-code.patch + +BuildRequires: popt-devel +BuildRequires: libuuid-devel +BuildRequires: ncurses-devel +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +%description +An fdisk-like partitioning tool for GPT disks. GPT fdisk features a +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. + +%prep +%setup -q -n gptfdisk-%{version} +%patch0 -p1 +chmod 0644 gdisk_test.sh + +%build +%{__make} CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" + +%install +%{__rm} -rf %{buildroot} +for f in gdisk sgdisk cgdisk fixparts ; do + %{__install} -D -p -m 0755 $f %{buildroot}%{_sbindir}/$f + %{__install} -D -p -m 0644 $f.8 %{buildroot}%{_mandir}/man8/$f.8 +done + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%doc COPYING README gdisk_test.sh +%{_sbindir}/gdisk +%{_sbindir}/cgdisk +%{_sbindir}/sgdisk +%{_sbindir}/fixparts +%{_mandir}/man8/gdisk.8* +%{_mandir}/man8/cgdisk.8* +%{_mandir}/man8/sgdisk.8* +%{_mandir}/man8/fixparts.8* + +%changelog +* Wed Dec 05 2018 Nikola Forró - 0.8.10-3 +- Fix spurious exit code (#1656300) + +* Mon May 28 2018 Nikola Forró - 0.8.10-2 +- Remove libicu build dependency + +* Tue Jan 30 2018 Nikola Forró - 0.8.10-1 +- Update to 0.8.10 (#1540008) + +* Fri Oct 03 2014 Tomas Bzatek - 0.8.6-5 +- Fix sgdisk alignment code (#1087353) + +* Fri Jan 24 2014 Daniel Mach - 0.8.6-4 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 0.8.6-3 +- Mass rebuild 2013-12-27 + +* Thu Sep 26 2013 Tomas Bzatek - 0.8.6-2 +- Range check -i option (#1007761) + +* Fri Jan 25 2013 Orion Poplawski - 0.8.6-1 +- Update to 0.8.6 + +* Sat Nov 17 2012 Terje Rosten - 0.8.5-1 +- 0.8.5 + +* Thu Jul 19 2012 Fedora Release Engineering - 0.8.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Apr 23 2012 Terje Rosten - 0.8.4-1 +- 0.8.4 + +* Sat Apr 21 2012 Orcan Ogetbil - 0.8.2-3 +- Rebuild for libicu 49.1.1 + +* Tue Feb 28 2012 Fedora Release Engineering - 0.8.2-2 +- Rebuilt for c++ ABI breakage + +* Sun Jan 29 2012 Terje Rosten - 0.8.2-1 +- 0.8.2 + +* 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 + +* Mon Oct 17 2011 Terje Rosten - 0.8.1-1 +- 0.8.1 +- Add ncurses-devel to buildreq + +* Thu Sep 08 2011 Orion Poplawski - 0.7.2-2 +- Rebuild for libicu 4.8.1 + +* Sun Jul 10 2011 Terje Rosten - 0.7.2-1 +- 0.7.2 + +* Mon Apr 12 2011 Terje Rosten - 0.7.1-1 +- 0.7.1 + +* Tue Feb 08 2011 Fedora Release Engineering - 0.6.14-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jan 29 2011 Terje Rosten - 0.6.14-1 +- 0.6.14 + +* Thu Nov 11 2010 Terje Rosten - 0.6.13-1 +- 0.6.13 + +* Fri Jun 18 2010 Terje Rosten - 0.6.8-1 +- 0.6.8 + +* Thu Mar 25 2010 Terje Rosten - 0.6.6-1 +- 0.6.6 +- Compile with -D_FILE_OFFSET_BITS=64, recommended upstream + +* Sat Mar 20 2010 Terje Rosten - 0.6.5-1 +- 0.6.5 +- Add alignment patch (bz #575297) + +* Thu Mar 11 2010 Terje Rosten - 0.6.3-2 +- Fix source url + +* Sun Feb 14 2010 Terje Rosten - 0.6.3-1 +- 0.6.3 + +* Sun Jan 31 2010 Terje Rosten - 0.6.2-1 +- 0.6.2 + +* Mon Jan 25 2010 Terje Rosten - 0.6.1-1 +- 0.6.1 +- add popt-devel to buildreq +- random clean up + +* Fri Jan 15 2010 R Smith - 0.6.0 +- created spec file for 0.6.0 release