File project.diff of Package disktype

--- disktype.changes.orig
+++ disktype.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Wed Dec 25 20:54:53 UTC 2024 - Martin Hauke <mardnh@gmx.de>
+
+- Specfile cleanup
+
+-------------------------------------------------------------------
 Fri May 31 21:29:30 UTC 2013 - marec@detebe.org
 
 - improved package build
--- disktype.spec.orig
+++ disktype.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package disktype
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -22,35 +22,27 @@ Release:        0
 Summary:        Disk Format Detection
 License:        MIT
 Group:          System/Filesystems
-Url:            http://%{name}.sourceforge.net/
-Source0:        %{name}-%{version}.tar.xz
+URL:            https://disktype.sourceforge.net/
+Source0:        https://sourceforge.net/projects/disktype/files/disktype/9/%{name}-%{version}.tar.gz
 
 %description
-The purpose of disktype is to detect the content format of a disk or disk image. It knows about common file systems, partition tables, and boot codes.
+The purpose of disktype is to detect the content format of a disk or disk image.
+It knows about common file systems, partition tables, and boot codes.
 
 %prep
 %setup -q
 
 %build
-%{__make} %{?_smp_mflags} CFLAGS="${CFLAGS:-%{optflags}}"
-%{__strip} -s %{name}
+%make_build CFLAGS="%{optflags}"
 
 %install
-%{__mkdir_p} %{buildroot}%{_bindir}
-%{__mkdir_p} %{buildroot}%{_mandir}/man1
-%{__install} -m 0755 -p -t %{buildroot}%{_bindir} %{name}
-%{__gzip} %{name}.1
-%{__install} -m 0644 -p -t %{buildroot}%{_mandir}/man1 %{name}.1.gz
+install -Dpm 0755 disktype %{buildroot}%{_bindir}/disktype
+install -Dpm 0644 disktype.1 %{buildroot}%{_mandir}/man1/disktype.1
 
 %files
-%defattr(-,root,root,-)
-%doc HISTORY README TODO
-%attr(755,root,root) %{_bindir}/%{name}
-%attr(644,root,root) %{_mandir}/man1/%{name}.1.gz
-%if 0%{?suse_version} && 0%{?suse_version} >= 1500
 %license LICENSE
-%else
-%doc LICENSE
-%endif
+%doc HISTORY README
+%{_bindir}/disktype
+%{_mandir}/man1/disktype.1.gz
 
 %changelog
openSUSE Build Service is sponsored by