Accepting request 807478 from Archiving
- Packaging cleanup: * Use modern macros * Use latests SPDX style of license strings OBS-URL: https://build.opensuse.org/request/show/807478 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lzop?expand=0&rev=12
This commit is contained in:
commit
9b83190cf1
@ -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
|
||||
|
||||
|
19
lzop.spec
19
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
|
||||
|
Loading…
Reference in New Issue
Block a user