Package init
This commit is contained in:
commit
c4d4e187c6
11
libx86emu-1.11-ldflags.patch
Normal file
11
libx86emu-1.11-ldflags.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- Makefile.orig 2017-11-16 15:00:14.579051907 +0100
|
||||||
|
+++ Makefile 2017-11-16 15:00:31.728134481 +0100
|
||||||
|
@@ -45,7 +45,7 @@
|
||||||
|
install -m 644 -D include/x86emu.h $(DESTDIR)/usr/include/x86emu.h
|
||||||
|
|
||||||
|
$(LIB_NAME): .depend $(OBJS)
|
||||||
|
- $(CC) -shared -Wl,-soname,$(LIB_SONAME) $(OBJS) -o $(LIB_NAME)
|
||||||
|
+ $(CC) -shared -Wl,-soname,$(LIB_SONAME) $(LDFLAGS) $(OBJS) -o $(LIB_NAME)
|
||||||
|
|
||||||
|
test:
|
||||||
|
make -C test
|
||||||
BIN
libx86emu-1.11.tar.gz
Normal file
BIN
libx86emu-1.11.tar.gz
Normal file
Binary file not shown.
55
libx86emu.spec
Normal file
55
libx86emu.spec
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
%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: 4
|
||||||
|
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
|
||||||
|
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}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_includedir}/*.h
|
||||||
|
%{_libdir}/*.so
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 2 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.11-4
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user