]> git.pld-linux.org Git - packages/binfmt-detector.git/blame - binfmt-detector.spec
- drop upstart support
[packages/binfmt-detector.git] / binfmt-detector.spec
CommitLineData
e7a7f6cd 1Summary: Microsoft PE executable type detector
c2bba55c 2Summary(pl.UTF-8): Detector typu plików wykonywalnych PE Microsoftu
e7a7f6cd 3Name: binfmt-detector
7d24ca10 4Version: 0.2
d226ac7f 5Release: 6
e7a7f6cd 6License: GPL
7Group: Base
8Source0: http://team.pld-linux.org/~wolf/%{name}.tar.gz
7d24ca10 9# Source0-md5: d6e9d6d8888b58c97eb65875853fd778
e7a7f6cd 10Source1: %{name}.init
200160f5
ER
11Patch0: spelling.patch
12Patch1: libdir.patch
3a143baa 13BuildRequires: rpmbuild(macros) >= 1.268
200160f5 14BuildRequires: sed >= 4.0
f4b97792 15Requires(post,preun): /sbin/chkconfig
b95029ac 16Requires: rc-scripts >= 0.4.3.0
f358f553 17Conflicts: wine < 1:0.9.12-2
e7a7f6cd 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21This utility determines the Microsoft PE executable file's type
22(Native, .NET CLR) and runs it using the appropriate runtime (Wine,
23Mono).
24
25It is inteded to be used in a Linux binfmt configuration, since binfmt
26itself is incapable of reliably distinguishing between various PE file
27types (since they have no different "magic string") and runtimes
28refuse to run files which they don't support (CLR runtimes refuse to
29run Native images and vice versa).
30
71290a77
JR
31%description -l pl.UTF-8
32To narzędzie określa typ pliku wykonywalnego PE Microsoftu (natywny,
33.NET CLR) i uruchamia odpowiednie środowisko wykonawcze (Wine, Mono).
e7a7f6cd 34
71290a77
JR
35Jest używane w połączeniu z linuksowym binfmt, ponieważ samo binfmt
36nie jest w stanie odróżnić różnych typów plików PE (nie zawierają one
37różnych "magicznych ciągów"), a środowiska uruchomieniowe nie
38pozwalają uruchomić nieobsługiwanych przez siebie plików (CLR nie
39uruchamia natywnych obrazów i vice versa).
e7a7f6cd 40
41%prep
42%setup -q -n %{name}
200160f5
ER
43%patch0 -p1
44%patch1 -p1
e7a7f6cd 45
46%build
200160f5 47%{__cc} %{rpmldflags} %{rpmcflags} binfmt-detector-cli.c -o binfmt-detector
e7a7f6cd 48
49%install
50rm -rf $RPM_BUILD_ROOT
d226ac7f 51install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/etc/rc.d/init.d}
e7a7f6cd 52
200160f5
ER
53install -p binfmt-detector $RPM_BUILD_ROOT%{_libdir}
54install -p binfmt-detector.sh $RPM_BUILD_ROOT%{_bindir}/binfmt-detector
55sed -i -e 's,/usr/lib,%{_libdir},' $RPM_BUILD_ROOT%{_bindir}/binfmt-detector
56install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/binfmt-detector
e7a7f6cd 57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%post
62/sbin/chkconfig --add binfmt-detector
3a143baa 63%service binfmt-detector restart
e7a7f6cd 64
65%preun
66if [ "$1" = "0" ]; then
3a143baa 67 %service binfmt-detector stop
e7a7f6cd 68 /sbin/chkconfig --del binfmt-detector
69fi
70
71%files
72%defattr(644,root,root,755)
73%doc README
77510524 74%attr(754,root,root) /etc/rc.d/init.d/%{name}
77510524
ER
75%attr(755,root,root) %{_bindir}/%{name}
76%attr(755,root,root) %{_libdir}/%{name}
This page took 0.070189 seconds and 4 git commands to generate.