Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
W. Michael Petullo
51efdad373 * Sat Jan 08 2022 W. Michael Petullo <mike@flyn.org> - 1.0.3-2
- Patch to use libunicorn.so.1, not libunicorn.so (Red Hat Bugzilla #2004320)
- Require python3-setuptools at runtime (Red Hat Bugzilla #2004320)

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-01-08 10:39:24 -06:00
2 changed files with 21 additions and 3 deletions

View file

@ -0,0 +1,12 @@
diff -u --recursive unicorn-1.0.3-vanilla/bindings/python/unicorn/unicorn.py unicorn-1.0.3/bindings/python/unicorn/unicorn.py
--- unicorn-1.0.3-vanilla/bindings/python/unicorn/unicorn.py 2021-05-26 10:07:07.000000000 -0500
+++ unicorn-1.0.3/bindings/python/unicorn/unicorn.py 2022-01-08 10:14:03.531253408 -0600
@@ -22,7 +22,7 @@
_lib = { 'darwin': 'libunicorn.dylib',
'win32': 'unicorn.dll',
'cygwin': 'cygunicorn.dll',
- 'linux': 'libunicorn.so',
+ 'linux': 'libunicorn.so.1',
'linux2': 'libunicorn.so' }

View file

@ -1,6 +1,6 @@
Name: unicorn
Version: 1.0.3
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Lightweight multi-platform, multi-architecture CPU emulator framework
# GPLv2: Most of unicorn is licensed under the GPLv2, with exception
@ -11,7 +11,8 @@ Summary: Lightweight multi-platform, multi-architecture CPU emulator fram
License: GPLv2 and LGPLv2+ and MIT and BSD
URL: https://www.unicorn-engine.org/
Source0: https://github.com/unicorn-engine/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: make
Patch0: unicorn-1.0.3-libunicorn.patch
BuildRequires: make
BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@ -39,13 +40,14 @@ needed for developing applications using unicorn.
%package -n python3-unicorn
Summary: %{summary}
Requires: %{name} = %{version}-%{release}
Requires: python3-setuptools
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-unicorn
The unicorn-python3 package contains python3 bindings for unicorn.
%prep
%autosetup -n %{name}-%{version}
%autosetup -n %{name}-%{version} -p1
%build
%make_build
@ -78,6 +80,10 @@ rm -rf %{buildroot}%{python3_sitelib}/unicorn/lib
%{python3_sitelib}/%{name}/
%changelog
* Sat Jan 08 2022 W. Michael Petullo <mike@flyn.org> - 1.0.3-2
- Patch to use libunicorn.so.1, not libunicorn.so (Red Hat Bugzilla #2004320)
- Require python3-setuptools at runtime (Red Hat Bugzilla #2004320)
* Thu Aug 26 2021 Fabian Affolter <mail@fabian-affolter.ch> - 1.0.3-1
- Update to latest upstream release 1.0.3 (rhbz#1965152)