Name: revbank Version: 20.0.0 Release: 1%{?dist} Summary: Prepaid bar tab payment system for hackerspaces # Upstream permits redistribution under any OSI-approved license so # I picked MIT. License: MIT URL: https://codeberg.org/revspace/revbank Source0: https://codeberg.org/revspace/revbank/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch Requires: perl-Term-ReadLine-Gnu Requires: perl-Curses-UI BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl-podlators BuildRequires: perl-Test-Harness BuildRequires: perl-Test-Simple BuildRequires: perl-Test2-Suite BuildRequires: perl-Term-ReadLine-Gnu BuildRequires: perl-Curses-UI BuildRequires: perl(Digest::SHA) BuildRequires: perl(FindBin) BuildRequires: perl(I18N::Langinfo) BuildRequires: perl(autodie) BuildRequires: perl(experimental) BuildRequires: perl(lib) BuildRequires: perl(open) # Used by the optional audit plugin. Recommends: perl(Digest::SHA) %description RevBank is a prepaid bar tab payment system for hackerspaces. It provides an interactive terminal interface, a plugin system, and file-based bookkeeping. %prep %autosetup -n revbank %build pod2man --section=1 --release=%{version} revbank revbank.1 %install # FindBin resolves symlinks and lets RevBank locate its private modules, # plugins and example data relative to the installed executable. install -d %{buildroot}%{_datadir}/revbank %{buildroot}%{_bindir} cp -a lib plugins data %{buildroot}%{_datadir}/revbank/ # RevBank reads these files itself they shouldn't be executable and RPM # tries to mangle shebangs if they are set to executable. find %{buildroot}%{_datadir}/revbank -type f -exec chmod 0644 {} + install -pm0755 revbank %{buildroot}%{_datadir}/revbank/revbank ln -s ../share/revbank/revbank %{buildroot}%{_bindir}/revbank install -Dm0644 revbank.1 %{buildroot}%{_mandir}/man1/revbank.1 %check prove -lr t # Try the installed symlinks and the first start data setup stuff # as well. %{buildroot}%{_bindir}/revbank --datadir "$PWD/rpm-test-data" --with-lock -- /usr/bin/true test -s rpm-test-data/plugins test -f rpm-test-data/products test -f rpm-test-data/market test -f %{buildroot}%{_datadir}/revbank/plugins/help %files %license LICENSE %doc README.md INSTALLING.md UPGRADING.md %{_bindir}/revbank %{_datadir}/revbank/ %{_mandir}/man1/revbank.1* %changelog * Fri Nov 20 2026 Simon de Vlieger - 20.0.0-1 - Initial package