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 BuildRequires: rpmbuild(macros) >= 1.268
13 Conflicts: wine <= 1:0.9.12-1
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 This utility determines the Microsoft PE executable file's type
18 (Native, .NET CLR) and runs it using the appropriate runtime (Wine,
21 It is inteded to be used in a Linux binfmt configuration, since binfmt
22 itself is incapable of reliably distinguishing between various PE file
23 types (since they have no different "magic string") and runtimes
24 refuse to run files which they don't support (CLR runtimes refuse to
25 run Native images and vice versa).
28 To narzêdzie okre¶la typ pliku wykonywalnego PE Microsoftu (natywny,
29 .NET CLR) i uruchamia odpowiednie ¶rodowisko wykonawcze (Wine, Mono).
31 Jest u¿ywane w po³±czeniu z linuksowym binfmt, poniewa¿ samo binfmt
32 nie jest w stanie odró¿niæ ró¿nych typów plików PE (nie zawieraj± one
33 ró¿nych "magicznych ci±gów"), a ¶rodowiska uruchomieniowe nie
34 pozwalaj± uruchomiæ nieobs³ugiwanych przez siebie plików (CLR nie
35 uruchamia natywnych obrazów i vice versa).
41 %{__cc} %{rpmcflags} binfmt-detector-cli.c -o binfmt-detector-cli
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_bindir},/etc/rc.d/init.d}
47 install binfmt-detector-cli $RPM_BUILD_ROOT%{_bindir}
48 install binfmt-detector.sh $RPM_BUILD_ROOT%{_bindir}
50 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/binfmt-detector
53 rm -rf $RPM_BUILD_ROOT
56 /sbin/chkconfig --add binfmt-detector
57 %service binfmt-detector restart
60 if [ "$1" = "0" ]; then
61 %service binfmt-detector stop
62 /sbin/chkconfig --del binfmt-detector
66 %defattr(644,root,root,755)
68 %attr(755,root,root) %{_bindir}/*
69 %attr(754,root,root) /etc/rc.d/init.d/binfmt-detector