Blob Blame Raw
Name:           unicorn
Version:        1.0.1
Release:        8%{?dist}
Summary:        A lightweight multi-platform, multi-architecture CPU emulator framework

# GPLv2:        Most of unicorn is licensed under the GPLv2, with exception
#               being the code which followed the project's fork of QEMU.
# LGPLv2:       Portions of code from QEMU
# MIT:          Portions of code from QEMU
# BSD:          Portions of code from QEMU
License:        GPLv2 and LGPLv2+ and MIT and BSD

# Warning: there is no python2 subpkg, but we still supply --python=python2 to configure, or we get:
# ERROR: Cannot use 'python3', Python 2.4 or later is required.
#       Note that Python 3 or later is not yet supported.
#       Use --python=/path/to/python to specify a supported Python.
Patch0:         unicorn-1.0.1-python2.patch
BuildRequires:  %{__python2}

BuildRequires:  gcc
BuildRequires:  python3-devel

# Much of Unicorn follows from QEMU, which the Unicorn project forked in
# 2015. Since then, the Unicorn team has applied a number of bugfixes to
# the forked QEMU code along with the modifications necessary for Unicorn.
# QEMU 2.2.1 formed the basis of this work. The Unicorn project documents
# the relationship between Unicorn and QEMU at
Provides: bundled(qemu) = 2.2.1

Unicorn is a lightweight multi-platform, multi-architecture CPU emulator

%package devel
Summary:        Files needed to develop applications using unicorn
Requires:       %{name} = %{version}-%{release}

%description devel
This package provides the libraries, include files, and other resources
needed for developing applications using unicorn.

%package -n python3-unicorn
Summary:        %{summary}
Requires:       %{name} = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}}

%description -n python3-unicorn
The unicorn-python3 package contains python3 bindings for unicorn.

%autosetup -n %{name}-%{version}

pushd bindings/python

%make_install LIBDIRARCH=%{_lib} UNICORN_STATIC=no
pushd bindings/python
rm -rf %{buildroot}%{python3_sitelib}/unicorn/include
rm -rf %{buildroot}%{python3_sitelib}/unicorn/lib


%license COPYING

%files devel

%files -n python3-unicorn

* Fri Jan 31 2020 Fedora Release Engineering <> - 1.0.1-8
- Rebuilt for

* Thu Sep 05 2019 Miro Hrončok <> - 1.0.1-7
- Subpackage python2-unicorn has been removed

* Mon Aug 19 2019 Miro Hrončok <> - 1.0.1-6
- Rebuilt for Python 3.8

* Sat Jul 27 2019 Fedora Release Engineering <> - 1.0.1-5
- Rebuilt for

* Sun Feb 03 2019 Fedora Release Engineering <> - 1.0.1-4
- Rebuilt for

* Sun Jul 22 2018 W. Michael Petullo <> - 1.0.1-3
- Add patch to use python2 rather than python when building

* Sat Jul 14 2018 Fedora Release Engineering <> - 1.0.1-2
- Rebuilt for

* Sat Jun 16 2018 W. Michael Petullo <> - 1.0.1-1
- Initial package