1 Summary: Microsoft PE executable type detector
2 Summary(pl): Detector typu plików wykonywalnych PE Microsoftu
8 Source0: http://team.pld-linux.org/~wolf/%{name}.tar.gz
9 # Source0-md5: 11623bddbeb536e88c47c8a1aedc9189
11 Conflicts: wine <= 1:0.9.12-1
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 This utility determines the Microsoft PE executable file's type
16 (Native, .NET CLR) and runs it using the appropriate runtime (Wine,
19 It is inteded to be used in a Linux binfmt configuration, since binfmt
20 itself is incapable of reliably distinguishing between various PE file
21 types (since they have no different "magic string") and runtimes
22 refuse to run files which they don't support (CLR runtimes refuse to
23 run Native images and vice versa).
26 To narzêdzie okre¶la typ pliku wykonywalnego PE Microsoftu (natywny,
27 .NET CLR) i uruchamia odpowiednie ¶rodowisko wykonawcze (Wine, Mono).
29 Jest u¿ywane w po³±czeniu z Linuksowym binfmt, poniewa¿ samo binfmt
30 nie jest w stanie odró¿niæ ró¿nych typów plików PE (nie zawieraj± one
31 ró¿nych "magicznych ci±gów"), a ¶rodowiska uruchomieniowe nie
32 pozwalaj± uruchomiæ nieobs³ugiwanych przez siebie plików (CLR nie
33 uruchamia natywnych obrazów i vice versa).
39 %{__cc} %{rpmcflags} binfmt-detector-cli.c -o binfmt-detector-cli
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/rc.d/init.d}
45 install binfmt-detector-cli $RPM_BUILD_ROOT%{_bindir}
46 install binfmt-detector.sh $RPM_BUILD_ROOT%{_bindir}
48 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/binfmt-detector
51 rm -rf $RPM_BUILD_ROOT
54 /sbin/chkconfig --add binfmt-detector
55 if [ ! -f /var/lock/subsys/binfmt-detector ]; then
56 echo "Run \"/etc/rc.d/init.d/binfmt-detector start\" to start binfmt-detector service." >&2
60 if [ "$1" = "0" ]; then
61 if [ -f /var/lock/subsys/binfmt-detector ]; then
62 /etc/rc.d/init.d/binfmt-detector stop >&2
64 /sbin/chkconfig --del binfmt-detector
68 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_bindir}/*
71 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/binfmt-detector