3 %bcond_with x86emu # x86emu instead of LRMI/vm86
4 %bcond_with initrd # build klibc based helper for initrd/initramfs
9 Summary: uvesafb userspace helper that runs x86 code in an emulated environment
10 Summary(pl.UTF-8): Program pomocniczy uvesafb uruchamiający kod x86 w emulowanym środowisku
15 Group: Applications/System
16 Source0: http://dev.gentoo.org/~spock/projects/uvesafb/archive/%{name}-%{version}.tar.bz2
17 # Source0-md5: 51c792ba7b874ad8c43f0d3da4cfabe0
18 Source1: %{name}-uvesafb.conf
19 Patch0: %{name}-system-klibc.patch
20 Patch1: %{name}-system-libs.patch
21 Patch2: %{name}-klibc-ldflags.patch
22 URL: http://dev.gentoo.org/~spock/projects/uvesafb/
23 BuildRequires: linux-libc-headers >= 7:2.6.24
25 BuildRequires: klibc-static >= 1.5.8-1
27 BuildRequires: x86emu-klibc-devel
29 BuildRequires: lrmi-klibc-devel >= 0.10-6
33 BuildRequires: x86emu-devel
35 BuildRequires: lrmi-devel >= 0.10-4
36 Requires: lrmi >= 0.10-4
38 ExclusiveArch: %{ix86} %{x8664}
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _sbindir /sbin
44 v86d is the userspace helper that runs x86 code in an emulated
45 environment, used by uvesafb Linux kernel driver. Currently it
46 supports the x86 and x86-64 architectures.
48 %description -l pl.UTF-8
49 v86d to działający w przestrzeni użytkownika program pomocniczy
50 uruchamiający kod x86. Jest wykorzystywany przez sterownik jądra
51 Linuksa uvesafb. Obecnie obsługuje architektury x86 i x86-64.
54 Summary: uvesafb userspace helper that runs x86 code in an emulated environment - initrd version
55 Summary(pl.UTF-8): Program pomocniczy uvesafb uruchamiający kod x86 w emulowanym środowisku - wersja dla initrd
57 Requires: %{name} = %{version}-%{release}
60 uvesafb userspace helper that runs x86 code in an emulated environment
63 %description initrd -l pl.UTF-8
64 Program pomocniczy uvesafb uruchamiający kod x86 w emulowanym
65 środowisku - wersja dla initrd.
71 sed -i 's:-g -O2:$(OPTFLAGS):' Makefile
79 --with%{!?with_x86emu:out}-x86emu
83 CFLAGS="%{rpmcflags} -Os %{!?with_x86emu:-I/usr/include/klibc/lrmi}"
93 --with%{!?with_x86emu:out}-x86emu
97 OPTFLAGS="%{rpmcflags} %{!?with_x86emu:-I/usr/include/lrmi}"
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/modprobe.d}
103 install %{name} $RPM_BUILD_ROOT%{_sbindir}/%{name}
104 install %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/uvesafb.conf
107 install -d $RPM_BUILD_ROOT%{_libdir}/initrd
108 install initrd/%{name} $RPM_BUILD_ROOT%{_libdir}/initrd
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc AUTHORS ChangeLog README TODO
117 %attr(755,root,root) %{_sbindir}/v86d
118 %config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/uvesafb.conf
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/initrd/v86d