File loadlibrary.spec of Package loadlibrary

#
# spec file for package loadlibrary
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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:           loadlibrary
Version:        
Release:        0
Summary:        Porting Windows Dynamic Link Libraries to Linux
License:        GPL-2.0 and ClArtistic
Group:          Development/Tools/Debuggers
Url:            https://github.com/taviso/loadlibrary
Source0:        %{name}-%{version}.tar.xz
Patch0:         fix_return_nonvoid.patch
%ifarch x86_64
BuildRequires:  gcc-32bit
BuildRequires:  readline-devel-32bit
%else
BuildRequires:  readline-devel
%endif
Requires:       cabextract
ExclusiveArch:  %ix86 x86_64

%description
This library allows native Linux programs to load and call functions from
a Windows DLL.
This project does not replace Wine or Winelib.
The closest analogy would be ndiswrapper but for userspace.

%prep
%autosetup -p1
sed -e '/^CFLAGS/s/=/= %{optflags} /' \
    -i Makefile peloader/Makefile \
       intercept/libdisasm/Makefile \
       intercept/Makefile

%build
%make_build

%install
mkdir -pv %{buildroot}%{_bindir}
install -m0755 mpclient genmapsym.sh -t %{buildroot}%{_bindir}

%files
%doc README.md
%license LICENSE
%{_bindir}/mpclient
%{_bindir}/genmapsym.sh

%changelog
openSUSE Build Service is sponsored by