%global debug_package %{nil} Name: libstp3 Version: 0.0.1 Release: 1 Summary: C library maintained by Setup Tooling Project for setup-tool, etc. BuildArch: %{_target_cpu} License: Apache-2.0 Source0: %{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: make BuildRequires: ncurses-devel BuildRequires: libyaml-devel Recommends: libstp3-extras Requires: ncurses Requires: libyaml Requires: ncurses-devel Requires: libyaml-devel %description C-library maintained by the Setup Tooling Project team for setup-tool, etc. This library contains many functions that are easy to use and can help a lot. %prep %setup -q %install rm -rf %{buildroot} mkdir -p %{buildroot}/%{_datadir}/licenses/%{name} mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_includedir} mkdir -p %{buildroot}/%{_sysconfdir}/libstp3 make cp libstp3.h %{buildroot}/%{_includedir} cp libstp3.so %{buildroot}/%{_libdir} cp special_dates.yaml %{buildroot}/%{_sysconfdir}/libstp3 cp LICENSE %{buildroot}/%{_datadir}/licenses/%{name} %post # Update dynamic linker cache after installing shared library /sbin/ldconfig %postun # Update dynamic linker cache after removing shared library /sbin/ldconfig %files %{_includedir}/libstp3.h %{_libdir}/libstp3.so %config(noreplace) %{_sysconfdir}/libstp3/special_dates.yaml %license %{_datadir}/licenses/%{name}/LICENSE %changelog %autochangelog