File typometer.spec of Package typometer
#
# spec file for package typometer
#
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
#
# 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: typometer
Version: 1.0.1
Release: 0
Summary: Text/code editor typing latency analyzer
License: Apache-2.0
Group: System/Benchmark
URL: https://github.com/pavelfatin/typometer
Source: https://github.com/pavelfatin/typometer/releases/download/v%{version}/%{name}-%{version}-bin.zip
BuildRequires: unzip
Requires: java >= 1.8.0
BuildArch: noarch
%description
Typometer is a tool to measure and analyze visual latency of text and
code editors.
Editor latency is delay between an input event and a corresponding
screen update, in particular case – delay between keystroke and
character appearance. While there are many kinds of delays (caret
movement, line editing, etc.), typing latency is a major predictor of
editor usability.
%prep
%setup -q
%build
%install
install -D -m 0644 %{name}-%{version}.jar %{buildroot}/%{_datadir}/%{name}/%{name}-%{version}.jar
# startscript
install -d -m 0755 "%{buildroot}/%{_bindir}"
cat >"%{buildroot}/%{_bindir}/%{name}" << EOF
#!/bin/sh
exec java -jar -Xmx256m "%{_datadir}/%{name}/%{name}-%{version}.jar"
EOF
chmod 0755 "%{buildroot}/%{_bindir}/%{name}"
%files
%license LICENSE
%doc README.html
%{_bindir}/typometer
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}-%{version}.jar
%changelog