From 35e704d66d4b9f679b3187e8caa3400c35e383a4 Mon Sep 17 00:00:00 2001 From: jonathanspw Date: Aug 02 2022 16:23:34 +0000 Subject: modernize spec, misc improvements from new maintainer --- diff --git a/fsf_address.patch b/fsf_address.patch new file mode 100644 index 0000000..b23c697 --- /dev/null +++ b/fsf_address.patch @@ -0,0 +1,19 @@ +diff -urN gpart-0.3.orig/COPYING gpart-0.3/COPYING +--- gpart-0.3.orig/COPYING 2022-08-02 10:29:59.222518126 -0500 ++++ gpart-0.3/COPYING 2022-08-02 10:30:48.165406042 -0500 +@@ -2,10 +2,11 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + +- Copyright (C) 1989, 1991 Free Software Foundation, Inc. +- 675 Mass Ave, Cambridge, MA 02139, USA +- Everyone is permitted to copy and distribute verbatim copies +- of this license document, but changing it is not allowed. ++Copyright (C) 1989, 1991 Free Software Foundation, Inc. ++51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA ++ ++Everyone is permitted to copy and distribute verbatim copies ++of this license document, but changing it is not allowed. + + Preamble + diff --git a/gpart.spec b/gpart.spec index 749890e..078c3b7 100644 --- a/gpart.spec +++ b/gpart.spec @@ -1,41 +1,60 @@ -Summary: A program for recovering corrupt partition tables -Name: gpart -Version: 0.3 -Release: 15%{?dist} -License: GPLv2+ -URL: https://github.com/baruch/gpart/ -Source0: https://github.com/baruch/%{name}/archive/0.3.tar.gz#/%{name}-%{version}.tar.gz +Summary: A program for recovering corrupt partition tables +Name: gpart +Version: 0.3 +Release: 16%{?dist} +License: GPL-2.0-only +URL: https://github.com/baruch/%{name}/ +Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz -BuildRequires: gcc -BuildRequires: glibc-kernheaders -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: make +# https://github.com/baruch/gpart/pull/16 +Patch0: fsf_address.patch -ExcludeArch: s390 s390x +BuildRequires: gcc +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: make %description Gpart is a small tool which tries to guess what partitions are on a PC type harddisk in case the primary partition table was damaged. + %prep -%setup -q +%autosetup autoreconf -f -i + %build %configure -make %{?_smp_mflags} +%make_build + %install -%{make_install} +%make_install %files -%doc COPYING Changes README.md +%license COPYING +%if 0%{?el7} +%dir %{_datadir}/doc/%{name} +%{_datadir}/doc/%{name}/* +%else +%dir %{_pkgdocdir} +%{_pkgdocdir}/* +%endif %{_sbindir}/%{name} %{_mandir}/man8/%{name}.8* %changelog +* Tue Aug 02 2022 Jonathan Wright - 0.3-16 +- Update spec to use more macros +- Update source to proper GitHub format +- Update license to SPDX format +- Add doc dir to files +- Remove excluded arches (build on all arches) +- Remove unnecessary buildrequires glibc-kernheaders +- Initial build for EPEL7, EPEL8, and EPEL9 + * Thu Jul 21 2022 Fedora Release Engineering - 0.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild