File hungrycat.spec of Package hungrycat

# vim: set sw=4 ts=4 et:
#
# spec file for package hungrycat
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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 http://bugs.opensuse.org/
#


Name:           hungrycat
Version:        0.4.1
Release:        0
Summary:        Cat and rm in a single Tool
License:        GPL-2.0
Group:          System/Base
Url:            http://jwilk.net/software/hungrycat.html
Source:         http://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  glibc-devel
BuildRequires:  make


%description
hungrycat is a tool that prints the contents of a file on the standard output
while simultaneously freeing disk space occupied by the file. It can be useful
if you need to process a large file, but you don't have enough space to store
the output file, and you won't need the input file afterward.

%prep
%setup -q

%build
%configure
make \
    %{?_smp_mflags} \
    CC="gcc" \
    OPTFLAGS="%{optflags}"

%install
%make_install

%check

%files
%doc doc/README doc/changelog
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}

%changelog
openSUSE Build Service is sponsored by