]> git.pld-linux.org Git - packages/bluemote.git/blob - bluemote.spec
- BR: libX11-devel,libXtst-devel, drop /usr/X11R6/lib from flags
[packages/bluemote.git] / bluemote.spec
1 Summary:        Bluemote - a remote controller for your PC via Bluetooth
2 Summary(pl):    Bluemote - pilot dla komputera przez Bluetooth
3 Name:           bluemote
4 Version:        2.0
5 Release:        1
6 License:        GPL
7 Group:          Applications
8 Source0:        http://www.geocities.com/saravkrish/progs/bluemote/%{name}.%{version}.tar.gz
9 # Source0-md5:  69ab4eafb839a3f22fca2832fbba60f6
10 URL:            http://www.geocities.com/saravkrish/progs/bluemote/
11 BuildRequires:  xorg-lib-libX11-devel
12 BuildRequires:  xorg-lib-libXtst-devel
13 Requires:       bluez-utils
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Bluemote is a program meant to extend your Bluetooth enabled T610 (and
18 most other Sony Ericsson) as a remote for your PC.
19
20 %description -l pl
21 Bluemote to program, który zamieni wyposa¿ony w Bluetooth telefon T610
22 (i wiêkszo¶æ innych telefonów Sony Ericsson) w pilota dla komputera.
23
24 %prep
25 %setup -q -n %{name}
26
27 %build
28 %{__make} \
29         CC="%{__cc}" \
30         CFLAGS="%{rpmcflags}" \
31         X11FLAGS="-lX11 -lXtst"
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
36 install bluemote $RPM_BUILD_ROOT%{_bindir}/bluemoteapp
37 install bluemote-example.cfg $RPM_BUILD_ROOT%{_datadir}/%{name}/bluemote.cfg
38
39 cat > $RPM_BUILD_ROOT%{_bindir}/bluemote <<EOF
40 #!/bin/sh
41 [ -e ~/.bluemote.cfg ] || \
42         /bin/cp -a %{_datadir}/%{name}/bluemote.cfg ~/.bluemote.cfg
43
44 exec %{_bindir}/bluemoteapp
45
46 EOF
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc AUTHOR README config.txt
54 %attr(755,root,root) %{_bindir}/bluemoteapp
55 %attr(755,root,root) %{_bindir}/bluemote
56 %dir %{_datadir}/%{name}
57 %{_datadir}/%{name}/bluemote.cfg
This page took 0.038455 seconds and 3 git commands to generate.