[packages/libx86emu] Up to 3.7
arekm
arekm at pld-linux.org
Fri Nov 27 21:35:51 CET 2026
commit 3e5c27d7266e9eefdb3c9bfcc9eb6ee1e12fdf0d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 15:01:52 2026 +0100
Up to 3.7
libx86emu.spec | 44 ++++++++++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 14 deletions(-)
---
diff --git a/libx86emu.spec b/libx86emu.spec
index d071db7..f967aee 100644
--- a/libx86emu.spec
+++ b/libx86emu.spec
@@ -1,16 +1,18 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+#
Summary: x86 CPU real mode emulator
Summary(pl.UTF-8): Emulator trybu rzeczywistego procesorów Intel x86
Name: libx86emu
-Version: 1.4
-Release: 4
+Version: 3.7
+Release: 1
License: MIT
Group: Libraries
-# also https://gitorious.org/x86emu/libx86emu/archive/%{version}.tar.gz
-Source0: http://www.liwjatan.at/files/src/hwinfo/%{name}-%{version}.tar.xz
-# Source0-md5: 4b46be2b22cf977defc1732d4472103f
-URL: https://gitorious.org/x86emu/libx86emu
-BuildRequires: tar >= 1:1.22
-BuildRequires: xz
+Source0: https://github.com/wfeldt/libx86emu/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: d06e7e79e9042aedfb71aaaae7fcccf6
+URL: https://github.com/wfeldt/libx86emu
+%{?with_tests:BuildRequires: nasm}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -52,18 +54,32 @@ Statyczna biblioteka x86emu.
%build
%{__make} \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags} -fPIC -fomit-frame-pointer -Wall -fcommon" \
+ CFLAGS="%{rpmcflags} -fPIC -fvisibility=hidden -fomit-frame-pointer -Wall" \
+ LDFLAGS="%{rpmldflags}" \
GIT2LOG=true \
- GITDEPS=
+ GITDEPS= \
+ VERSION=%{version} \
+ MAJOR_VERSION=%(echo %{version} | cut -d. -f1)
ar crs libx86emu.a *.o
+%if %{with tests}
+%{__make} -j1 -C test \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags}"
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
- LIBDIR=%{_libdir}
+ LIBDIR=%{_libdir} \
+ GIT2LOG=true \
+ GITDEPS= \
+ VERSION=%{version} \
+ MAJOR_VERSION=%(echo %{version} | cut -d. -f1)
install libx86emu.a $RPM_BUILD_ROOT%{_libdir}
@@ -75,13 +91,13 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README
+%doc LICENSE README.md
%attr(755,root,root) %{_libdir}/libx86emu.so.*.*
-%attr(755,root,root) %ghost %{_libdir}/libx86emu.so.1
+%ghost %{_libdir}/libx86emu.so.3
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libx86emu.so
+%{_libdir}/libx86emu.so
%{_includedir}/x86emu.h
%files static
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libx86emu.git/commitdiff/3e5c27d7266e9eefdb3c9bfcc9eb6ee1e12fdf0d
More information about the pld-cvs-commit
mailing list