File zram-tools.spec of Package zram-tools

#
# spec file for package zram-tools
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#


Name:           zram-tools
Version:        1.20151014.1300~git768c35c
Release:        0
Summary:        Tools to start/stop/query zram swap
License:        MIT
Group:          Hardware/Other
Url:            https://github.com/bmwiedemann/zram-tools
Source:         %{name}.tar.gz
Requires:       grep
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(pre):  pwdutils
Requires(pre):  %fillup_prereq %insserv_prereq

%description
Tools to start/stop/query zram swap
This allows to use more memory than physically available.

%prep
%setup -q -n bmwiedemann-zram-tools-768c35c

%build
make

%install
make install DEST_DIR=%{buildroot} PREFIX=/usr

%files
%defattr(-,root,root)
%{_sbindir}/zramswap*
%{_bindir}/zramswap*
%config %{_sysconfdir}/default/zramswap

%changelog