diff --git a/libx86emu-1.11-ldflags.patch b/libx86emu-1.11-ldflags.patch deleted file mode 100644 index 20e320f08cd9cdd33fdcabcea7abf39d3d1b7b89..0000000000000000000000000000000000000000 --- a/libx86emu-1.11-ldflags.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 diff --git a/libx86emu-1.11.tar.gz b/libx86emu-1.11.tar.gz deleted file mode 100644 index eef1c98676f7597e39b33c186c78dd5e0e1e09fd..0000000000000000000000000000000000000000 Binary files a/libx86emu-1.11.tar.gz and /dev/null differ diff --git a/libx86emu-3.1.tar.gz b/libx86emu-3.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0a90bf2c5151b122ae0172f355501adccd42a611 Binary files /dev/null and b/libx86emu-3.1.tar.gz differ diff --git a/libx86emu.spec b/libx86emu.spec index 51fda9e2a3006b0549905dfd56d53066683ac55c..ecd2c6ae409ecb4a520ca55476f560e1c092d211 100644 --- a/libx86emu.spec +++ b/libx86emu.spec @@ -7,14 +7,14 @@ LDFLAGS="-fPIC %{__global_ldflags}" Name: libx86emu -Version: 1.11 -Release: 4 +Version: 3.1 +Release: 1 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 +BuildRequires: libx86emu %description libx86emu is a small library to emulate x86 instructions. @@ -38,18 +38,25 @@ The %{name}-devel package contains development files for %{name}. %install %make_install %{make_flags} +cp %{_libdir}/libx86emu.so.1* %{buildroot}%{_libdir}/ %files %defattr(-,root,root) %doc README.md %license LICENSE -%{_libdir}/*.so.* +%{_libdir}/libx86emu.so.* %files devel %defattr(-,root,root) -%{_includedir}/*.h -%{_libdir}/*.so +%{_includedir}/x86emu.h +%{_libdir}/libx86emu.so %changelog +* Wed Aug 19 2020 zhanzhimin - 3.1-1 +- Type:enhancement +- ID:NA +- SUG:NA +- DESC:upgrade to version 3.1 + * Mon Sep 2 2019 openEuler Buildteam - 1.11-4 - Package init