File TempestSDR.spec of Package TempestSDR
#
# spec file for package TempestSDR
#
# Copyright (c) 2017, 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: TempestSDR
Version: 0.0.0+git.20190223
Release: 0
Summary: Remote video eavesdropping using a software-defined radio platform
License: GPL-3.0-only
Group: Productivity/Hamradio/Other
URL: https://github.com/tanpc/TempestSDR
#Git-Clone: https://github.com/tanpc/TempestSDR.git
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: java-1_8_0-openjdk-devel
BuildRequires: uhd-devel
ExclusiveArch: x86_64
%description
A software toolkit for remotely eavesdropping video monitors using a
Software Defined Radio (SDR) receiver.
It exploits compromising emanations from cables carrying video signals.
%prep
%setup -q
%build
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
%make_build all JAVA_HOME=%{_libdir}/jvm/java-1.8.0-openjdk-1.8.0/
%install
install -dm 0755 "%{buildroot}/%{_datadir}/%{name}"
install -m 0644 "JavaGUI/JTempestSDR.jar" "%{buildroot}/%{_datadir}/%{name}/JTempestSDR.jar"
# startscript
install -dm 0755 "%{buildroot}/%{_bindir}"
cat >"%{buildroot}/%{_bindir}/%{name}" << EOF
#!/bin/sh
exec java -jar "%{_datadir}/%{name}/JTempestSDR.jar"
EOF
chmod 0755 "%{buildroot}/%{_bindir}/%{name}"
%files
%license license.txt
%doc README.md
%{_bindir}/TempestSDR
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/JTempestSDR.jar
%changelog