1 Summary: Microsoft PE executable type detector
2 Summary(pl.UTF-8): 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
12 Requires(post,preun): /sbin/chkconfig
14 Conflicts: wine <= 1:0.9.12-1
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 This utility determines the Microsoft PE executable file's type
19 (Native, .NET CLR) and runs it using the appropriate runtime (Wine,
22 It is inteded to be used in a Linux binfmt configuration, since binfmt
23 itself is incapable of reliably distinguishing between various PE file
24 types (since they have no different "magic string") and runtimes
25 refuse to run files which they don't support (CLR runtimes refuse to
26 run Native images and vice versa).
28 %description -l pl.UTF-8
29 To narzędzie określa typ pliku wykonywalnego PE Microsoftu (natywny,
30 .NET CLR) i uruchamia odpowiednie środowisko wykonawcze (Wine, Mono).
32 Jest używane w połączeniu z linuksowym binfmt, ponieważ samo binfmt
33 nie jest w stanie odróżnić różnych typów plików PE (nie zawierają one
34 różnych "magicznych ciągów"), a środowiska uruchomieniowe nie
35 pozwalają uruchomić nieobsługiwanych przez siebie plików (CLR nie
36 uruchamia natywnych obrazów i vice versa).
42 %{__cc} %{rpmcflags} binfmt-detector-cli.c -o binfmt-detector-cli
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_bindir},/etc/rc.d/init.d}
48 install binfmt-detector-cli $RPM_BUILD_ROOT%{_bindir}
49 install binfmt-detector.sh $RPM_BUILD_ROOT%{_bindir}
51 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/binfmt-detector
54 rm -rf $RPM_BUILD_ROOT
57 /sbin/chkconfig --add binfmt-detector
58 %service binfmt-detector restart
61 if [ "$1" = "0" ]; then
62 %service binfmt-detector stop
63 /sbin/chkconfig --del binfmt-detector
67 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_bindir}/*
70 %attr(754,root,root) /etc/rc.d/init.d/binfmt-detector