libx86emu/libx86emu.spec
zppzhangpan 78ef1ca33c enable make check
(cherry picked from commit deb4397fdb1e9c48986a2ad17a8bfa8e613ec31e)
2023-12-11 15:36:04 +08:00

72 lines
1.7 KiB
RPMSpec

%global make_flags \\\
LIBDIR=%{_libdir} \\\
GIT2LOG=: \\\
VERSION=%%{version} \\\
MAJOR_VERSION=%%(echo %{version} |cut -d. -f1) \\\
CFLAGS="-fPIC %{optflags}" \\\
LDFLAGS="-fPIC %{__global_ldflags}"
Name: libx86emu
Version: 3.1
Release: 3
Summary: x86 emulation library
License: BSD
URL: https://github.com/wfeldt/libx86emu
Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc nasm perl
%description
libx86emu is a small library to emulate x86 instructions.
The focus here is not a complete emulation (go for qemu for this)
but to cover enough for typical firmware blobs.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains development files for %{name}.
%prep
%autosetup -n %{name}-%{version}
%build
%make_build %{make_flags} shared
%ldconfig_scriptlets
%install
%make_install %{make_flags}
%check
%ifarch x86_64
make -C test
%endif
%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%{_libdir}/libx86emu.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/x86emu.h
%{_libdir}/libx86emu.so
%changelog
* Fri Nov 17 2023 zhangpan <zhangpan103@h-partners.com> 3.1-3
- enable make check
* Sat Jun 11 2022 hanhui <hanhui15@h-partners.com> 3.1-2
- DESC:remove libx86emu.so.1*
* Wed Aug 19 2020 zhanzhimin <zhanzhimin@huawei.com> - 3.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrade to version 3.1
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.11-4
- Package init