]>
Commit | Line | Data |
---|---|---|
1bc8a976 | 1 | Summary: Bluemote - a remote controller for your PC via Bluetooth |
3942cdcc ER |
2 | Summary(de.UTF-8): Bluemote - Bluetooth Fernbedienung für den PC |
3 | Summary(pl.UTF-8): Bluemote - pilot dla komputera przez Bluetooth | |
a1ca68cc AM |
4 | Name: bluemote |
5 | Version: 2.0 | |
6 | Release: 1 | |
7 | License: GPL | |
8 | Group: Applications | |
9 | Source0: http://www.geocities.com/saravkrish/progs/bluemote/%{name}.%{version}.tar.gz | |
10 | # Source0-md5: 69ab4eafb839a3f22fca2832fbba60f6 | |
11 | URL: http://www.geocities.com/saravkrish/progs/bluemote/ | |
1bc8a976 JB |
12 | BuildRequires: xorg-lib-libX11-devel |
13 | BuildRequires: xorg-lib-libXtst-devel | |
a1ca68cc AM |
14 | Requires: bluez-utils |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Bluemote is a program meant to extend your Bluetooth enabled T610 (and | |
19 | most other Sony Ericsson) as a remote for your PC. | |
20 | ||
fa6471ec | 21 | %description -l de.UTF-8 |
493e166f | 22 | Bluemote ist ein Programm, dass dein T610 Bluetooth Handy (und andere |
23 | Sony Ericsson Modelle) in eine Komputerfernbedienung verwandelt. | |
24 | ||
fa6471ec JR |
25 | %description -l pl.UTF-8 |
26 | Bluemote to program, który zamieni wyposażony w Bluetooth telefon T610 | |
27 | (i większość innych telefonów Sony Ericsson) w pilota dla komputera. | |
a1ca68cc AM |
28 | |
29 | %prep | |
30 | %setup -q -n %{name} | |
31 | ||
32 | %build | |
87851b88 | 33 | %{__make} \ |
34 | CC="%{__cc}" \ | |
1bc8a976 JB |
35 | CFLAGS="%{rpmcflags}" \ |
36 | X11FLAGS="-lX11 -lXtst" | |
a1ca68cc AM |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}} | |
41 | install bluemote $RPM_BUILD_ROOT%{_bindir}/bluemoteapp | |
42 | install bluemote-example.cfg $RPM_BUILD_ROOT%{_datadir}/%{name}/bluemote.cfg | |
43 | ||
44 | cat > $RPM_BUILD_ROOT%{_bindir}/bluemote <<EOF | |
45 | #!/bin/sh | |
e968aeb6 | 46 | [ -e ~/.bluemote.cfg ] || \ |
47 | /bin/cp -a %{_datadir}/%{name}/bluemote.cfg ~/.bluemote.cfg | |
a1ca68cc AM |
48 | |
49 | exec %{_bindir}/bluemoteapp | |
50 | ||
51 | EOF | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc AUTHOR README config.txt | |
59 | %attr(755,root,root) %{_bindir}/bluemoteapp | |
60 | %attr(755,root,root) %{_bindir}/bluemote | |
b94e6df3 | 61 | %dir %{_datadir}/%{name} |
a1ca68cc | 62 | %{_datadir}/%{name}/bluemote.cfg |