- 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
This commit is contained in:
Martin Pluskal 2020-05-20 08:01:16 +00:00 committed by Git OBS Bridge
parent d596b01b62
commit b349007f8b
2 changed files with 14 additions and 12 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 20 08:00:40 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Packaging cleanup:
* Use modern macros
* Use latests SPDX style of license strings
-------------------------------------------------------------------
Fri Feb 9 10:03:53 UTC 2018 - mpluskal@suse.com

View File

@ -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