Skip to content

Instantly share code, notes, and snippets.

@rabin-io
Last active May 29, 2021 23:40
Show Gist options
  • Save rabin-io/5398f59fab2faaf150a97d53876269b4 to your computer and use it in GitHub Desktop.
Save rabin-io/5398f59fab2faaf150a97d53876269b4 to your computer and use it in GitHub Desktop.
bucklespring.spec
Name: bucklespring
Version: 1.5.0
Release: 1%{?dist}
Summary: Nostalgia bucklespring keyboard sound
Group: Applications/Multimedia
License: GPLv2
URL: https://github.com/zevv/bucklespring
#Source0: https://github.com/rabin-io/bucklespring/archive/v%{version}.tar.gz
Source0: https://github.com/zevv/bucklespring/archive/refs/tags/%{version}.tar.gz
#Source0: bucklespring-%{version}.zip
# BuildRequires: pkg-config pkgconf-pkg-config
BuildRequires: gcc alure-devel libXtst-devel openal-soft-devel dumb-devel
Requires: alure openal-soft libXtst
%description
This project emulates the sound of my old faithful IBM Model-M
space saver bucklespring keyboard while typing on my notebook,
mainly for the purpose of annoying the hell out of my coworkers.
%prep
%setup -q
%build
cat >>Makefile <<EOF
install:
mkdir -p "${RPM_BUILD_ROOT}/usr/local/bin"
install buckle "${RPM_BUILD_ROOT}/usr/local/bin/buckle"
install --directory wav "${RPM_BUILD_ROOT}/usr/local/lib/bucklespring/wav"
cp -a wav/* "${RPM_BUILD_ROOT}/usr/local/lib/bucklespring/wav/"
EOF
tail Makefile
make
%install
make install
%files
%doc
/usr/local/bin/buckle
/usr/local/lib/bucklespring/wav/
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment