From b349007f8bb866865c7bfb6b95e6507bcc6085c2b9ccba85c91360b1fda169cb Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Wed, 20 May 2020 08:01:16 +0000 Subject: [PATCH] - Packaging cleanup: * Use modern macros * Use latests SPDX style of license strings OBS-URL: https://build.opensuse.org/package/show/Archiving/lzop?expand=0&rev=28 --- lzop.changes | 7 +++++++ lzop.spec | 19 +++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lzop.changes b/lzop.changes index 376f662..742cba4 100644 --- a/lzop.changes +++ b/lzop.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 20 08:00:40 UTC 2020 - Martin Pluskal + +- Packaging cleanup: + * Use modern macros + * Use latests SPDX style of license strings + ------------------------------------------------------------------- Fri Feb 9 10:03:53 UTC 2018 - mpluskal@suse.com diff --git a/lzop.spec b/lzop.spec index 8b78bfb..45ce34f 100644 --- a/lzop.spec +++ b/lzop.spec @@ -1,7 +1,7 @@ # # spec file for package lzop # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 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/ # @@ -20,9 +20,9 @@ Name: lzop Version: 1.04 Release: 0 Summary: Dictionary-based LZ-type compressor favoring speed -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Archiving/Compression -URL: http://www.lzop.org +URL: https://www.lzop.org Source0: http://www.lzop.org/download/%{name}-%{version}.tar.gz Source1: %{name}.changes BuildRequires: cmake >= 3.0 @@ -40,16 +40,11 @@ lzop was designed with the following goals in mind: - portability %prep -%setup -q -modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE1}")" -DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" -TIME="\"$(date -d "${modified}" "+%%R")\"" -find . -name '*.[ch]' |\ - xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" +%autosetup %build %cmake -%make_jobs +%cmake_build %install %cmake_install @@ -63,6 +58,6 @@ rm -fr %{buildroot}%{_datadir}/doc %doc AUTHORS ChangeLog NEWS README THANKS %license COPYING %{_bindir}/lzop -%{_mandir}/man1/lzop.1%{ext_man} +%{_mandir}/man1/lzop.1%{?ext_man} %changelog