cb466f
Summary:       An fdisk-like partitioning tool for GPT disks
cb466f
Name:          gdisk
cb466f
Version:       1.0.3
d8f8be
Release:       11%{?dist}
cb466f
License:       GPLv2
cb466f
URL:           http://www.rodsbooks.com/gdisk/
cb466f
Group:         System Environment/Base
cb466f
Source0:       http://downloads.sourceforge.net/gptfdisk/gptfdisk-%{version}.tar.gz
cb466f
Patch0:        gdisk-1.0.3-byteswap.patch
d8f8be
Patch1:        gdisk-CVE-2020-0256.patch
d8f8be
Patch2:        gdisk-CVE-2021-0308.patch
cb466f
BuildRequires: popt-devel
cb466f
BuildRequires: libuuid-devel
cb466f
BuildRequires: ncurses-devel
cb466f
cb466f
%description
cb466f
An fdisk-like partitioning tool for GPT disks. GPT fdisk features a
cb466f
command-line interface, fairly direct manipulation of partition table
cb466f
structures, recovery tools to help you deal with corrupt partition
cb466f
tables, and the ability to convert MBR disks to GPT format.
cb466f
cb466f
%prep
cb466f
%setup -q -n gptfdisk-%{version}
cb466f
%patch0 -p1
d8f8be
%patch1 -p1
d8f8be
%patch2 -p1
cb466f
chmod 0644 gdisk_test.sh
cb466f
cb466f
%build
cb466f
make CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" LDFLAGS="%{build_ldflags}"
cb466f
cb466f
%install
cb466f
for f in gdisk sgdisk cgdisk fixparts ; do 
cb466f
    install -D -p -m 0755 $f %{buildroot}%{_sbindir}/$f
cb466f
    install -D -p -m 0644 $f.8 %{buildroot}%{_mandir}/man8/$f.8
cb466f
done
cb466f
cb466f
%files
cb466f
%license COPYING
cb466f
%doc NEWS README gdisk_test.sh
cb466f
%{_sbindir}/gdisk
cb466f
%{_sbindir}/cgdisk
cb466f
%{_sbindir}/sgdisk
cb466f
%{_sbindir}/fixparts
cb466f
%{_mandir}/man8/gdisk.8*
cb466f
%{_mandir}/man8/cgdisk.8*
cb466f
%{_mandir}/man8/sgdisk.8*
cb466f
%{_mandir}/man8/fixparts.8*
cb466f
cb466f
%changelog
d8f8be
* Tue Mar 15 2022 Nikola Forró <nforro@redhat.com> - 1.0.3-11
a167d1
- Fix double byteswap on big-endian systems also while reading partition names
d8f8be
  resolves: #2065205
d8f8be
d8f8be
* Wed Mar 02 2022 Nikola Forró <nforro@redhat.com> - 1.0.3-10
d8f8be
- Fix CVE-2021-0308
d8f8be
  resolves: #2052364
d8f8be
d8f8be
* Wed Mar 02 2022 Nikola Forró <nforro@redhat.com> - 1.0.3-9
d8f8be
- Fix CVE-2020-0256
d8f8be
  resolves: #2052365
a167d1
cb466f
* Mon Oct 25 2021 Nikola Forró <nforro@redhat.com> - 1.0.3-8
cb466f
- Add upstream tests as a gating test
cb466f
  related: #1899990
cb466f
cb466f
* Wed Sep 29 2021 Nikola Forró <nforro@redhat.com> - 1.0.3-7
cb466f
- Fix incorrect byte order of partition names on big-endian systems
cb466f
  resolves: #1899990
cb466f
cb466f
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 1.0.3-6
cb466f
- Use LDFLAGS from redhat-rpm-config
cb466f
cb466f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-5
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
cb466f
cb466f
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-4
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
cb466f
cb466f
* Mon Jul 31 2017 Florian Weimer <fweimer@redhat.com> - 1.0.3-3
cb466f
- Rebuild with binutils fix for ppc64le (#1475636)
cb466f
cb466f
* Fri Jul 28 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.0.3-2
cb466f
- Ship NEWS
cb466f
cb466f
* Fri Jul 28 2017 Terje Rosten <terje.rosten@ntnu.no> - 1.0.3-1
cb466f
- 1.0.3
cb466f
cb466f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
cb466f
cb466f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cb466f
cb466f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cb466f
cb466f
* Thu Oct 29 2015 Terje Rosten <terje.rosten@ntnu.no> - 1.0.1-1
cb466f
- 1.0.1
cb466f
cb466f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cb466f
cb466f
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.0.0-2
cb466f
- Rebuilt for GCC 5 C++11 ABI change
cb466f
cb466f
* Sat Mar 21 2015 Terje Rosten <terje.rosten@ntnu.no> - 1.0.0-1
cb466f
- 1.0.0
cb466f
cb466f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.10-4
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
cb466f
cb466f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.10-3
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cb466f
cb466f
* Sat Mar 08 2014 Terje Rosten <terje.rosten@ntnu.no> - 0.8.10-2
cb466f
- Drop icu from buildreq
cb466f
cb466f
* Sat Mar 08 2014 Terje Rosten <terje.rosten@ntnu.no> - 0.8.10-1
cb466f
- 0.8.10
cb466f
cb466f
* Sun Mar 02 2014 Terje Rosten <terje.rosten@ntnu.no> - 0.8.9-1
cb466f
- 0.8.9
cb466f
cb466f
* Wed Feb 12 2014 Nils Philippsen <nils@redhat.com> - 0.8.8-2
cb466f
- fix bogus dates in changelog
cb466f
- rebuild for new libicu
cb466f
cb466f
* Thu Oct 17 2013 Terje Rosten <terje.rosten@ntnu.no> - 0.8.8-1
cb466f
- 0.8.8
cb466f
cb466f
* Fri Sep 13 2013 Richard W.M. Jones <rjones@redhat.com> - 0.8.7-2
cb466f
- Range check -i option (RHBZ#1007847).
cb466f
cb466f
* Sun Aug 11 2013 Terje Rosten <terje.rosten@ntnu.no> - 0.8.7-1
cb466f
- 0.8.7
cb466f
cb466f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.6-2
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
cb466f
cb466f
* Fri Jan 25 2013 Orion Poplawski <orion@cora.nwra.com> - 0.8.6-1
cb466f
- Update to 0.8.6
cb466f
cb466f
* Sat Nov 17 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.8.5-1
cb466f
- 0.8.5
cb466f
cb466f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.4-2
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cb466f
cb466f
* Mon Apr 23 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.8.4-1
cb466f
- 0.8.4
cb466f
cb466f
* Sat Apr 21 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.8.2-3
cb466f
- Rebuild for libicu 49.1.1
cb466f
cb466f
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2-2
cb466f
- Rebuilt for c++ ABI breakage
cb466f
cb466f
* Sun Jan 29 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.8.2-1
cb466f
- 0.8.2
cb466f
cb466f
* Thu Jan 05 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-3
cb466f
- Add patch to build with gcc 4.7
cb466f
cb466f
* Mon Oct 17 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-2
cb466f
- Add cgdisk and fixparts
cb466f
cb466f
* Mon Oct 17 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1
cb466f
- 0.8.1
cb466f
- Add ncurses-devel to buildreq
cb466f
cb466f
* Thu Sep 08 2011 Orion Poplawski <orion@cora.nwra.com> - 0.7.2-2
cb466f
- Rebuild for libicu 4.8.1
cb466f
cb466f
* Sun Jul 10 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.7.2-1
cb466f
- 0.7.2
cb466f
cb466f
* Mon Apr 11 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.7.1-1
cb466f
- 0.7.1
cb466f
cb466f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.14-2
cb466f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cb466f
cb466f
* Sat Jan 29 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.6.14-1
cb466f
- 0.6.14
cb466f
cb466f
* Thu Nov 11 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.13-1
cb466f
- 0.6.13
cb466f
cb466f
* Fri Jun 18 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.8-1
cb466f
- 0.6.8
cb466f
cb466f
* Thu Mar 25 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.6-1
cb466f
- 0.6.6
cb466f
- Compile with -D_FILE_OFFSET_BITS=64, recommended upstream
cb466f
cb466f
* Sat Mar 20 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.5-1
cb466f
- 0.6.5
cb466f
- Add alignment patch (bz #575297)
cb466f
cb466f
* Thu Mar 11 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.3-2
cb466f
- Fix source url
cb466f
cb466f
* Sun Feb 14 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.3-1
cb466f
- 0.6.3
cb466f
cb466f
* Sun Jan 31 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.2-1
cb466f
- 0.6.2
cb466f
cb466f
* Mon Jan 25 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.6.1-1
cb466f
- 0.6.1
cb466f
- add popt-devel to buildreq
cb466f
- random clean up
cb466f
cb466f
* Fri Jan 15 2010 R Smith <rodsmith@rodsbooks.com> - 0.6.0
cb466f
- created spec file for 0.6.0 release