| |
@@ -0,0 +1,79 @@
|
| |
+ %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: 1.11
|
| |
+ Release: 5%{?dist}
|
| |
+ Summary: x86 emulation library
|
| |
+
|
| |
+ License: BSD
|
| |
+ URL: https://github.com/wfeldt/libx86emu
|
| |
+ Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
|
| |
+
|
| |
+ Patch0: libx86emu-1.11-ldflags.patch
|
| |
+
|
| |
+ BuildRequires: gcc
|
| |
+
|
| |
+ %description
|
| |
+ Small x86 emulation library with focus of easy usage and extended execution
|
| |
+ logging functions. The library features an API to create emulation objects
|
| |
+ for x86 architecture.
|
| |
+
|
| |
+
|
| |
+ %package devel
|
| |
+ Summary: Development files for libx86emu
|
| |
+ Requires: %{name}%{?_isa} = %{version}-%{release}
|
| |
+
|
| |
+
|
| |
+ %description devel
|
| |
+ Header files and libraries for developing with libx86emu, a x86 emulation
|
| |
+ library.
|
| |
+
|
| |
+
|
| |
+ %prep
|
| |
+ %autosetup
|
| |
+
|
| |
+
|
| |
+ %build
|
| |
+ %make_build %{make_flags} shared
|
| |
+
|
| |
+
|
| |
+ %post -p /sbin/ldconfig
|
| |
+ %postun -p /sbin/ldconfig
|
| |
+
|
| |
+
|
| |
+ %install
|
| |
+ %make_install %{make_flags}
|
| |
+
|
| |
+
|
| |
+ %files
|
| |
+ %{_libdir}/libx86emu.so.*
|
| |
+ %doc README.md
|
| |
+ %license LICENSE
|
| |
+
|
| |
+
|
| |
+ %files devel
|
| |
+ %{_includedir}/x86emu.h
|
| |
+ %{_libdir}/libx86emu.so
|
| |
+
|
| |
+
|
| |
+ %changelog
|
| |
+ * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-5
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
| |
+
|
| |
+ * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-4
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
| |
+
|
| |
+ * Thu Nov 16 2017 Björn Esser <besser82@fedoraproject.org> - 1.11-3
|
| |
+ - Properly apply build flags
|
| |
+
|
| |
+ * Fri Aug 25 2017 Lubomir Rintel <lkundrak@v3.sk> - 1.11-2
|
| |
+ - Better align with packaging guidelines (thanks Robert-André Mauchin)
|
| |
+
|
| |
+ * Tue Aug 01 2017 Lubomir Rintel <lkundrak@v3.sk> - 1.11-1
|
| |
+ - Initial packaging
|
| |
We need it in EPEL7 for hwinfo and hw-probe packages.
Build: https://koji.fedoraproject.org/koji/taskinfo?taskID=31517920