%global debug_package %{nil} Name: setup-tool-cli Version: 1.5.2 Release: 1 Summary: A simple setup tool suite BuildArch: %{_target_cpu} License: MPL-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: libstp #Requires: bash Requires: libstp %if 0%{?fedora} || 0%{?epel} Requires: fastfetch %endif %description A simple setup program for RPM-based distros. %prep %setup -q %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_datadir}/licenses/%{name} gcc setup-tool-cli.c -I/usr/lib64/libstp -L/usr/lib64/libstp /usr/lib64/libstp/libstp-c.so -o setup-tool-cli cp setup-tool-cli %{buildroot}/%{_bindir} cp LICENSE %{buildroot}/%{_datadir}/licenses/%{name} %files %license %{_datadir}/licenses/%{name}/LICENSE %{_bindir}/setup-tool-cli %changelog %autochangelog