%global debug_package %{nil} Name: libstp-extras Version: 1.0.0 Release: 1 Summary: A simple setup tool suit BuildArch: %{_target_cpu} License: Apache-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: libstp Requires: libstp %description A library made by the Setup Tooling Project %prep %setup -q %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_datadir}/licenses/%{name} mkdir -p %{buildroot}/%{_mandir}/man1 gcc libstp.c -I/usr/lib64/libstp -L/usr/lib64/libstp /usr/lib64/libstp/libstp-c.so -o libstp cp libstp %{buildroot}/%{_bindir} cp libstp.1 %{buildroot}/%{_mandir}/man1 cp LICENSE %{buildroot}/%{_datadir}/licenses/%{name} %files %license %{_datadir}/licenses/%{name}/LICENSE %{_bindir}/libstp %{_mandir}/man1/libstp.1* %changelog %autochangelog