File lzop.spec of Package lzop.19459

# spec file for package lzop
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           lzop
Version:        1.04
Release:        0
Summary:        Dictionary-based LZ-type compressor favoring speed
License:        GPL-2.0+
Group:          Productivity/Archiving/Compression
Source1:        %{name}.changes
BuildRequires:  cmake >= 3.0
BuildRequires:  lzo-devel

lzop is a general-purpose file compressor similar to gzip.
It favors higher compression and decompression speed at the cost
of compression ratio.

lzop was designed with the following goals in mind:
- speed (both compression and decompression)
- reasonable drop-in compatibility to gzip
- portability

%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"


# Remove unwanted doc folder created during build
rm -fr %{buildroot}%{_datadir}/doc



openSUSE Build Service is sponsored by