%global debug_package %{nil} %define __cmake_in_source_build 1 # %%global gituser dscharrer %global gituser crazy-max %global gitname innoextract %global commit eef23e6aeee39d56a478382881ede1feb557a902 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global gitcounter 1 Name: innoextract Version: 1.13.git.%{gitcounter} Release: %{shortcommit}%{?dist} License: zlib Summary: Tool to extract installers created by Inno Setup Url: https://github.com/%{gituser}/%{gitname} Source: %{url}/tarball/%{commit}#/%{gituser}-%{name}-%{shortcommit}.tar.gz # Patch1: %%{url}/pull/210.patch#/Add_Inno_Setup_642-702.patch BuildRequires: gcc-c++ cmake boost-devel xz-devel BuildRequires: devscripts %description Inno Setup is a tool to create installers for Microsoft Windows applications. innoextract allows to extract such installers under non-windows systems without running the actual installer using wine. %prep %autosetup -p1 -n %{gituser}-%{gitname}-%{shortcommit} %build %set_build_flags export CFLAGS=$(echo "$CFLAGS" | sed -e 's|-g |-g0 |' -e 's|-march=x86-64|-march=x86-64-v2 -fvect-cost-model=dynamic|') export CXXFLAGS=$(echo "$CXXFLAGS" | sed -e 's|-g |-g0 |' -e 's|-march=x86-64|-march=x86-64-v2 -fvect-cost-model=dynamic|') %cmake \ -DCMAKE_INSTALL_DATAROOTDIR="%{_datadir}" \ -DCMAKE_INSTALL_MANDIR="%{_mandir}" \ -DCMAKE_INSTALL_BINDIR="%{_bindir}" \ -DUSE_LDGOLD=FALSE \ . %cmake_build %install %cmake_install %check hardening-check -v --nobranchprotection %{buildroot}%{_bindir}/%{name} %files %license LICENSE %doc README.md CHANGELOG VERSION %{_bindir}/%{name} %{_mandir}/man1/%{name}.1* %changelog * Tue Aug 25 2026 samoht0 git-master - switch to active crazy-max fork - history cleanup