File bucklespring.spec of Package bucklespring

%define debug_package %{nil}

Name:		bucklespring
Version:	1.5.1
Release:	1%{?dist}
Summary:	Nostalgia bucklespring keyboard sound


Group:		Applications/Multimedia
License:	GPLv2
URL:		https://github.com/zevv/bucklespring
#Source0:	https://github.com/zevv/bucklespring/archive/v1.4.0.zip
Source0:	bucklespring-%{version}.zip

# BuildRequires:	pkg-config pkgconf-pkg-config
BuildRequires:	gcc libXtst-devel openal-soft-devel
#alure-devel
BuildRequires:  pkgconfig(alure)
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/*.wav
/usr/lib/debug/usr/local/bin/buckle-*.debug
/usr/src/debug/bucklespring-*/buckle.h
/usr/src/debug/bucklespring-*/main.c
/usr/src/debug/bucklespring-*/scan-x11.c

%changelog

* Mon Nov 11 2024 Your Name <you@example.com> - 1.5.1-1
- Initial package creation
openSUSE Build Service is sponsored by