Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37634166
en ru br
ALT Linux repos
S:0.4-alt3

Group :: Toys
RPM: thinksaber

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: thinksaber
Version: 0.4
Release: alt3

Summary: Turn your HDAPS-enabled Thinkpad into Jedi's Lightsabre
License: GPL-2.0
Group: Toys

Url: http://elfsternberg.com/projects/thinksaber/
Source0: %url/%name-%version.tar.gz
Source1: thinksaber.sh
Source2: thinksaber.sysconfig
Packager: Michael Shigorin <mike at altlinux.org>

BuildArch: noarch

BuildRequires(pre): rpm-build-python3

%define tsdir %_datadir/%name

%description
Thinksaber is obviously inspired by the program MacSaber, and I'm
grateful to the MacSaber people for assembling the Star Wars sound
effects collection needed to make it so successful.

Thinksaber uses a motion-detection algorithm derived from the one
written by Tatsuhiko Miyagawa (miyagawa at gmail.com) for his own
thinkpad-saber program, which ran only under Perl for Windows.
Obviously, I think mine's better.

%prep
%setup

%install
mkdir -p %buildroot%tsdir
cp -a *.wav %buildroot%tsdir
install -pDm755 %name.py %buildroot%_bindir/%name.py
install -pDm755 %SOURCE1 %buildroot%_bindir/%name
install -pDm644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/%name

# TODO:

# - something regarding the udev rule needed (js input)

# !TODO:

# - _don't_ add desktop file, Jedi will know better. :)

%files
%_bindir/*
%tsdir
%_sysconfdir/sysconfig/%name
%doc AUTHORS ChangeLog README

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin