diff --git a/.files b/.files
index fe21090..b603f23 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 77f2d75..85e1df3 100644
--- a/.rev
+++ b/.rev
@@ -34,4 +34,12 @@
https://security.freebsd.org/patches/SA-16:25/bspatch.patch
415543
+
+ 4bc3c425e8682523aeda0571ec7635c5
+ 4.3
+
+ dimstar_suse
+
+ 1091841
+
diff --git a/bsdiff.changes b/bsdiff.changes
index 6c69c54..ed55f4a 100644
--- a/bsdiff.changes
+++ b/bsdiff.changes
@@ -1,4 +1,14 @@
-------------------------------------------------------------------
+Fri Jun 9 08:36:14 UTC 2023 - Martin Pluskal
+
+- Spec file modernisation
+
+-------------------------------------------------------------------
+Thu Oct 17 14:59:45 UTC 2019 - Richard Brown
+
+- Remove obsolete Groups tag (fate#326485)
+
+-------------------------------------------------------------------
Tue Jul 26 16:46:59 UTC 2016 - sor.alexei@meowr.ru
- Add bsdiff-fix-makefile.patch: patch Makefile instead of working
diff --git a/bsdiff.spec b/bsdiff.spec
index 3d6b5af..4fa7fb6 100644
--- a/bsdiff.spec
+++ b/bsdiff.spec
@@ -1,7 +1,7 @@
#
# spec file for package bsdiff
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2023 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/
#
@@ -21,15 +21,13 @@ Version: 4.3
Release: 0
Summary: Tools for binary file patches
License: BSD-2-Clause
-Group: Productivity/File utilities
-Url: http://daemonology.net/bsdiff
+URL: https://daemonology.net/bsdiff
Source: http://daemonology.net/bsdiff/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE bsdiff-fix-makefile.patch sor.alexei@meowr.ru
Patch0: %{name}-fix-makefile.patch
# PATCH-FIX-UPSTREAM bsdiff-fix-heap-vul.patch bsc#990660 -- Fix heap vulnerability in bspatch (CVE-2014-9862).
Patch1: %{name}-fix-heap-vul.patch
BuildRequires: libbz2-devel
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
bsdiff and bspatch are tools for building and applying patches to
@@ -40,13 +38,11 @@ than those produced by Xdelta, and 15%% smaller than those produced
by .RTPatch.
%prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
+%autosetup -p1
head -n 25 %{name}.c > COPYING
%build
-make %{?_smp_mflags} \
+%make_build \
CFLAGS="%{optflags}"
%install
@@ -54,8 +50,7 @@ make %{?_smp_mflags} \
PREFIX=%{_prefix}
%files
-%defattr(-,root,root)
-%doc COPYING
+%license COPYING
%{_bindir}/%{name}
%{_bindir}/bspatch
%{_mandir}/man1/*.1%{?ext_man}