%define debug_package %{nil} %global cross_compiling 0%{?_cross_compiling:1} Name: slibtool Version: 0.6.1 Release: 1%{?dist} Source0: https://github.com/midipix-project/slibtool/archive/refs/tags/v0.6.1.tar.gz#/%{name}-%{version}.tar.gz Summary: Drop-in replacement for libtool URL: https://github.com/midipix-project/slibtool License: Custom BSD-like Group: Development/Tools %description `slibtool` is an independent reimplementation of the widely used libtool, written in C. `slibtool` is designed to be a clean, fast, easy-to-use libtool drop-in replacement, and is accordingly aimed at package authors, distro developers, and system integrators. `slibtool` maintains compatibility with libtool in nearly every aspect of the tool's functionality as well as semantics, leaving out (or turning into a no-op) only a small number of features that are no longer needed on modern systems. Being a compiled binary, and although not primarily written for the sake of performance, building a package with `slibtool` is often faster than with its script-based counterpart. The resulting performance gain would normally vary between packages, and is most noticeable in builds that invoke libtool a large number of times, and which are characterized by the short compilation duration of individual translation units. %prep %autosetup -p1 -n %{name}-%{version} # Looks like autoconf, but isn't ./configure \ %if %{cross_compiling} --target=%{_target_platform} \ %endif --prefix=%{_prefix} \ --libdir=%{_libdir} %build %make_build %install %make_install # Upstream ltmain.sh uses #!/dev/null -- weird dependency cat >%{buildroot}%{_datadir}/slibtool/ltmain.sh <> EOF chmod +x %{buildroot}%{_datadir}/slibtool/ltmain.sh %files %{_bindir}/clibtool %{_bindir}/clibtool-ar %{_bindir}/clibtool-shared %{_bindir}/clibtool-static %{_bindir}/dlibtool %{_bindir}/dlibtool-ar %{_bindir}/dlibtool-shared %{_bindir}/dlibtool-static %{_bindir}/dclibtool %{_bindir}/dclibtool-ar %{_bindir}/dclibtool-shared %{_bindir}/dclibtool-static %{_bindir}/rclibtool %{_bindir}/rdclibtool %{_bindir}/rdlibtool %{_bindir}/rlibtool %{_bindir}/slibtool %{_bindir}/slibtool-ar %{_bindir}/slibtool-shared %{_bindir}/slibtool-static %{_bindir}/slibtoolize %{_datadir}/slibtool