File easybashgui.spec of Package easybashgui
#
# spec file for package easybashgui
#
# Copyright (c) 2024 PICCORO Lenz McKAY <mckaygerhard>.
#
# 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://github.com/BashGui/easybashgui/issues
#
Name: easybashgui
Version: 15.0.1
Release: 0
Summary: Simplified way to code bash made GUI frontend dialogs!
License: GPL-3.0-or-later
Group: Development/Tools
URL: https://github.com/BashGui/easybashgui
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: make
BuildRequires: bash
Requires: dialog
Requires: bash
Requires: bc
BuildArch: noarch
BuildRequires: -post-build-checks
%description
Easy Bash Gui shortened as EBG, is a Posix compliant Bash functions library that aims to give unified GUI functions using frontends for dialogs boxeds (from the user's point of view are frontends but from the EGB side are backends)
%prep
%setup -c -n %{name}-%{version}
%build
:
%install
#%make_install
# stupid rpm distros dont manage by itselft this step.. it fails.. puff, so use files section
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_datadir}/%{name}
cp %{name}-%{version}/src/%{name} %{buildroot}%{_bindir}
cp %{name}-%{version}/src/%{name}-debug %{buildroot}%{_bindir}
cp %{name}-%{version}/icons/*.xpm %{buildroot}%{_datadir}/%{name}/
install -m 0755 %{name}-%{version}/src/easydialog-legacy %{buildroot}%{_bindir}
install -m 0644 %{name}-%{version}/lib/easybashlib %{buildroot}%{_libdir}
install -m 0644 %{name}-%{version}/lib/%{name}.lib %{buildroot}%{_libdir}
install -m 0644 %{name}-%{version}/docs/%{name}.1.gz %{buildroot}%{_mandir}/man1/
%files
%license %{name}-%{version}/LICENSE
%doc %{name}-%{version}/README.md
%doc %{name}-%{version}/docs/README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-debug
%{_bindir}/easydialog-legacy
%{_libdir}/easybashlib
%{_libdir}/%{name}.lib
%{_datadir}/%{name}/*
%{_mandir}/man1/%{name}.*
%changelog