]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- udpated to 2.10, removed obsolete opt,cups patches
[packages/bluez-utils.git] / bluez-utils.spec
1 # TODO:
2 # - check init script, add support for rfcomm bind on startup
3 #
4 Summary:        Bluetooth utilities
5 Summary(pl):    Narzêdzia Bluetooth
6 Name:           bluez-utils
7 Version:        2.10
8 Release:        1
9 License:        GPL v2
10 Group:          Applications/System
11 Source0:        http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
12 # Source0-md5:  4f936b90e32eb24904dea70bd0a464f0
13 Source1:        %{name}.init
14 Source2:        %{name}.sysconfig
15 Patch0:         %{name}-etc_dir.patch
16 URL:            http://bluez.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  bison
20 BuildRequires:  bluez-libs-devel >= 2.10
21 BuildRequires:  dbus-devel
22 BuildRequires:  libtool
23 BuildRequires:  libusb-devel
24 PreReq:         rc-scripts
25 Requires:       bluez-libs >= 2.10
26 Obsoletes:      blues-pan
27 Obsoletes:      bluez-sdp
28 ExcludeArch:    s390 s390x
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 # currently lib, not %{_lib} (see cups.spec)
32 %define         cupsdir         /usr/lib/cups/backend
33
34 %description
35 Bluetooth utilities:
36  - hcitool
37  - hciattach
38  - hciconfig
39  - hcid
40  - l2ping
41  - start scripts (PLD)
42  - PCMCIA configuration files
43
44 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
45
46 %description -l pl
47 Narzêdzia Bluetooth:
48  - hcitool
49  - hciattach
50  - hciconfig
51  - hcid
52  - l2ping
53  - skrypty startowe (PLD)
54  - pliki konfiguracji PCMCIA
55
56 %package -n cups-backend-bluetooth
57 Summary:        Bluetooth backend for CUPS
58 Summary(pl):    Backend Bluetooth dla CUPS-a
59 Group:          Applications/Printing
60 Requires:       bluez-libs >= 2.10
61 Requires:       cups
62
63 %description -n cups-backend-bluetooth
64 Bluetooth backend for CUPS.
65
66 %description -n cups-backend-bluetooth -l pl
67 Backend Bluetooth dla CUPS-a.
68
69 %package init
70 Summary:        Init script for Bluetooth subsystem
71 Summary(pl):    Skrypt init dla podsystemu Bluetooth
72 Group:          Applications/System
73 Requires:       %{name} = %{epoch}:%{version}-%{release}
74 Requires(post,preun):   /sbin/chkconfig
75
76 %description init
77 Init script for Bluetooth subsystem.
78
79 %description init -l pl
80 Skrypt init dla podsystemu Bluetooth.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__automake}
91 %configure \
92         --enable-bcm203x \
93         --enable-cups \
94         --enable-pcmcia \
95         --with-cups=/usr
96 %{__make} \
97         cupsdir=%{cupsdir}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT \
105         cupsdir=%{cupsdir}
106
107 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
108 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post init
114 /sbin/chkconfig --add bluetooth
115 if [ -f /var/lock/subsys/bluetooth ]; then
116         /etc/rc.d/init.d/bluetooth restart >&2
117 else
118         echo "Run \"/etc/rc.d/init.d/bluetooth\" to start bluetooth." >&2
119 fi
120
121 %postun init
122 if [ "$1" = "0" ]; then
123         if [ -f /var/lock/subsys/bluetooth ]; then
124                 /etc/rc.d/init.d/bluetooth stop 1>&2
125         fi
126         /sbin/chkconfig --del bluetooth
127 fi
128
129 %files
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog README
132 %attr(755,root,root) %{_bindir}/*
133 %attr(755,root,root) %{_sbindir}/*
134 %{_mandir}/man*/*
135 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/bluetooth
136 %dir %{_sysconfdir}/bluetooth
137 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bluetooth/*
138 %attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x
139 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/hotplug/usb/bcm203x.usermap
140 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth.conf
141 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/pcmcia/bluetooth
142
143 %files -n cups-backend-bluetooth
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
146
147 %files init
148 %defattr(644,root,root,755)
149 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
This page took 0.065265 seconds and 3 git commands to generate.