82 lines
2.7 KiB
RPMSpec
82 lines
2.7 KiB
RPMSpec
|
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
|
||
|
Name: innoextract
|
||
|
Version: 1.2
|
||
|
Release: 0
|
||
|
Summary: A tool to extract Inno Setup installers under non-windows systems
|
||
|
Source: https://github.com/downloads/dscharrer/InnoExtract/innoextract-%{version}.tar.gz
|
||
|
URL: https://github.com/dscharrer/InnoExtract/
|
||
|
Group: Productivity/Archiving/Backup
|
||
|
License: Zlib
|
||
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||
|
BuildRequires: python
|
||
|
BuildRequires: boost-devel
|
||
|
BuildRequires: xz-devel xz
|
||
|
BuildRequires: gcc-c++
|
||
|
BuildRequires: cmake >= 2.8.0
|
||
|
BuildRequires: glibc-devel pkgconfig
|
||
|
|
||
|
%description
|
||
|
Inno Setup is a tool to create installers for Microsoft Windows applications.
|
||
|
Inno Extracts allows to extract such installers under non-windows systems
|
||
|
without running the actual installer using wine. Inno Extract currently
|
||
|
supports installers created by Inno Setup 1.2.10 to 5.4.3.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
# how awesome, on 12.1 the shlib symlink of liblzma is broken
|
||
|
# => crude workaround:
|
||
|
%if 0%{?suse_version} == 1210
|
||
|
%__install -d lzma/lib
|
||
|
matches=$(/bin/ls -1 /%{_lib}/liblzma.so.*.*.* | wc -l)
|
||
|
[ $matches -gt 0 ] || { echo 'ERROR: failed to find any match for /%{_lib}/liblzma.so.*.*.*' >&2; exit 1; }
|
||
|
[ $matches -gt 1 ] && { echo 'ERROR: found too many matches for /%{_lib}/liblzma.so.*.*.*' >&2; exit 1; }
|
||
|
#'
|
||
|
%__ln_s $(/bin/ls -1 /%{_lib}/liblzma.so.*.*.*) lzma/lib/liblzma.so
|
||
|
%endif
|
||
|
|
||
|
%build
|
||
|
LZMALIB="$PWD/lzma/lib"
|
||
|
%__install -d build
|
||
|
pushd build
|
||
|
cmake \
|
||
|
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
|
||
|
-DCMAKE_INSTALL_PREFIX="%{_prefix}" \
|
||
|
-DCMAKE_SKIP_RPATH=TRUE \
|
||
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
|
||
|
%if 0%{?suse_version} == 1210
|
||
|
-DCMAKE_LIBRARY_PATH="$LZMALIB" \
|
||
|
%endif
|
||
|
..
|
||
|
%__make %{?_smp_mflags}
|
||
|
popd
|
||
|
|
||
|
%install
|
||
|
pushd build
|
||
|
%makeinstall
|
||
|
popd
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc CHANGELOG LICENSE README.md
|
||
|
%{_bindir}/innoextract
|
||
|
%doc %{_mandir}/man1/innoextract.1*
|
||
|
|
||
|
%changelog
|