File rainfrog.spec of Package rainfrog

#
# spec file for package rainfrog
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

Name:           rainfrog
Version:        0.3.12
Release:        0
Summary:        a database management tui for postgres
License:        MIT
URL:            https://github.com/achristmascarl/rainfrog
Source0:        %{name}-%{version}.tar.zst
Source1:        vendor.tar.zst
BuildRequires:  cargo-packaging
BuildRequires:  gcc-c++
BuildRequires:  help2man

%description
a database management tui for postgres

%prep
%setup -q
%setup -q -T -D -a 1

%build
%{cargo_build}
help2man -N -n "A database management tui for postgres" ./target/release/%{name} > ./target/release/%{name}.1

%check
%cargo_test

%install
mkdir -p "%{buildroot}%{_mandir}/man1/"
install -D -m 755 -t "%{buildroot}/%{_bindir}" target/release/rainfrog
install -D -m 644 -t "%{buildroot}/%{_docdir}/%{name}" README.md
install -Dm 0644 target/release/%{name}.1 %{buildroot}%{_mandir}/man1/

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{ext_man}

%pre

%post

%preun

%postun

%changelog
openSUSE Build Service is sponsored by