File kloak.spec of Package kloak
#
# spec file for package kloak
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
Name: kloak
Version: 0.2
Release: 0
Summary: Keystroke-level online anonymization
License: BSD-3-Clause
Group: Productivity/Security
URL: https://github.com/vmonaco/kloak
Source0: https://github.com/vmonaco/kloak/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: ruby2.6-rubygem-ronn
#/usr/bin/ronn
###Requires:
%description
kloak is a privacy tool that makes keystroke biometrics less effective.
This is accomplished by obfuscating the time intervals between key press
and release events, which are typically used for identification.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
ronn man/*
%install
mkdir -pv %{buildroot}%{_mandir}/man8 %{buildroot}%{_sbindir} %{buildroot}%{_unitdir}
install -m0755 eventcap kloak -t %{buildroot}%{_sbindir}
install -m0644 lib/systemd/system/kloak.service -t %{buildroot}%{_unitdir}
install -m0644 man/eventcap.8 man/kloak.8 -t %{buildroot}%{_mandir}/man8
pushd %{buildroot}%{_sbindir}
ln -s service rc%{name}
popd
%pre
%service_add_pre kloak.service
%post
%service_add_post kloak.service
%preun
%service_del_preun kloak.service
%postun
%service_del_postun kloak.service
%files
%license LICENSE
%doc README.md
%{_mandir}/man8/eventcap.8%{ext_man}
%{_mandir}/man8/kloak.8%{ext_man}
%{_sbindir}/eventcap
%{_sbindir}/kloak
%{_sbindir}/rckloak
%{_unitdir}/kloak.service
%changelog