# # spec file for package libx86emu # # Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2008 Steffen Winterfeldt # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # ExclusiveArch: %ix86 x86_64 Name: libx86emu BuildRequires: xz Summary: A small x86 emulation library. License: BSD-3-Clause Group: System/Libraries Version: 1.6 Release: 0 PreReq: /sbin/ldconfig Source: %{name}-%{version}.tar.xz Url: https://github.com/wfeldt/libx86emu BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Small x86 emulation library with focus of easy usage and extended execution logging functions. Authors: -------- Steffen Winterfeldt %package -n libx86emu1 Summary: A small x86 emulation library. Group: System/Libraries %description -n libx86emu1 Small x86 emulation library with focus of easy usage and extended execution logging functions. Authors: -------- Steffen Winterfeldt %package -n libx86emu-devel Summary: A small x86 emulation library. Group: System/Libraries Requires: libx86emu1 = %version %description -n libx86emu-devel Small x86 emulation library with focus of easy usage and extended execution logging functions. Authors: -------- Steffen Winterfeldt %prep %setup -n libx86emu-%{version} %build make LIBDIR=%{_libdir} %install install -d -m 755 %{buildroot}%{_libdir} make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} %post -n libx86emu1 -p /sbin/ldconfig %postun -n libx86emu1 -p /sbin/ldconfig %files -n libx86emu1 %defattr(-,root,root) %{_libdir}/*.so.* %doc README LICENSE %files -n libx86emu-devel %defattr(-,root,root) %{_libdir}/*.so %{_includedir}/x86emu.h %changelog