]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
- use newer systemd macros
[packages/bluez.git] / bluez.spec
CommitLineData
8e2aef6c
AM
1Summary: Bluetooth utilities
2Summary(pl.UTF-8): Narzędzia Bluetooth
3Name: bluez
68f03ff6 4Version: 4.96
ef6d37ba 5Release: 4
8e2aef6c
AM
6License: GPL v2+
7Group: Applications/System
8#Source0Download: http://www.bluez.org/download.html
68f03ff6
JB
9Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.bz2
10# Source0-md5: 255c3dda8b93210ab0dcf8d04ddaf69f
8e2aef6c
AM
11Source1: %{name}.init
12Source2: %{name}.sysconfig
829382b7
AM
13Source3: dund.init
14Source4: pand.init
15Source5: rfcomm.init
8e2aef6c 16Patch0: %{name}-etc_dir.patch
16869a45 17Patch1: %{name}-wacom-mode-2.patch
7fec19c2 18Patch2: %{name}-systemd.patch
8e2aef6c
AM
19URL: http://www.bluez.org/
20BuildRequires: alsa-lib-devel >= 1.0.10-1
b0a62422 21BuildRequires: autoconf >= 2.60
8e2aef6c
AM
22BuildRequires: automake
23BuildRequires: bison
b0a62422 24BuildRequires: dbus-devel >= 1.0
c150cb86
JB
25BuildRequires: glib2-devel >= 1:2.16
26BuildRequires: gstreamer-devel >= 0.10.30
8e2aef6c 27BuildRequires: gstreamer-plugins-base-devel >= 0.10
2b38a1f3 28BuildRequires: libcap-ng-devel
8e2aef6c
AM
29BuildRequires: libsndfile-devel
30BuildRequires: libtool
8743dbe7 31BuildRequires: libusb-compat-devel
8e2aef6c 32BuildRequires: pkgconfig >= 1:0.9.0
9980fdad 33BuildRequires: readline-devel
ef6d37ba 34BuildRequires: rpmbuild(macros) >= 1.626
9b3fd779 35BuildRequires: udev-devel
8e2aef6c 36Requires: %{name}-libs = %{epoch}:%{version}-%{release}
c150cb86 37Requires: glib2 >= 1:2.16
0416a3b3 38Requires: hwdata >= 0.225
9b3fd779 39Requires: rc-scripts
40Provides: bluez-utils = %{epoch}:%{version}-%{release}
8e2aef6c
AM
41Obsoletes: bluez-hciemu
42Obsoletes: bluez-pan
43Obsoletes: bluez-sdp
5e8dfcdf 44Obsoletes: bluez-utils
8e2aef6c
AM
45Obsoletes: bluez-utils-init
46Conflicts: bluez-bluefw
47ExcludeArch: s390 s390x
48BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49
50# currently lib, not %{_lib} (see cups.spec)
51%define cupsdir /usr/lib/cups/backend
d80dfd39 52%define udevdir /lib/udev
8e2aef6c
AM
53
54%description
55Bluetooth utilities:
d8eef2ef
TP
56 - bluetoothd
57 - dund
8e2aef6c
AM
58 - hcitool
59 - hciattach
60 - hciconfig
8e2aef6c
AM
61 - hciemu
62 - hidd
63 - l2ping
64 - pand
65 - start scripts (PLD)
66 - PCMCIA configuration files
67
68The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
69
70%description -l pl.UTF-8
71Narzędzia Bluetooth:
d8eef2ef
TP
72 - bluetoothd
73 - dund
8e2aef6c
AM
74 - hcitool
75 - hciattach
76 - hciconfig
8e2aef6c
AM
77 - hciemu
78 - hidd
79 - l2ping
80 - pand
81 - skrypty startowe (PLD)
82 - pliki konfiguracji PCMCIA
83
84Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
85
86%package -n alsa-plugins-bluetooth
87Summary: ALSA plugins for Bluetooth audio devices
88Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
89Group: Libraries
90# bluetoothd + audio service
91Requires: %{name} = %{epoch}:%{version}-%{release}
92Requires: alsa-lib >= 1.0.10-1
93
94%description -n alsa-plugins-bluetooth
95ALSA plugins for Bluetooth audio devices.
96
97%description -n alsa-plugins-bluetooth -l pl.UTF-8
98Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
99
100%package -n cups-backend-bluetooth
101Summary: Bluetooth backend for CUPS
102Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
103Group: Applications/Printing
104Requires: bluez-libs >= %{epoch}:%{version}-%{release}
105Requires: cups
106
107%description -n cups-backend-bluetooth
108Bluetooth backend for CUPS.
109
110%description -n cups-backend-bluetooth -l pl.UTF-8
111Backend Bluetooth dla CUPS-a.
112
113%package -n gstreamer-bluetooth
114Summary: Bluetooth support for gstreamer
115Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
116Group: Libraries
117Requires: bluez-libs >= %{epoch}:%{version}-%{release}
c150cb86 118Requires: gstreamer >= 0.10.30
8e2aef6c
AM
119Requires: gstreamer-plugins-base >= 0.10
120
121%description -n gstreamer-bluetooth
122Bluetooth support for gstreamer.
123
124%description -n gstreamer-bluetooth -l pl.UTF-8
125Obsługa Bluetooth dla gstreamera.
126
127%package libs
128Summary: Bluetooth libraries
129Summary(pl.UTF-8): Biblioteki Bluetooth
130Group: Development/Libraries
131Obsoletes: bluez-sdp
132
133%description libs
134Libraries for use in Bluetooth applications.
135
136The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
137
138%description libs -l pl.UTF-8
139Biblioteki do używania w aplikacjach Bluetooth.
140
141Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
142
143%package libs-devel
144Summary: Header files for Bluetooth applications
145Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
146Group: Development/Libraries
147Requires: %{name}-libs = %{epoch}:%{version}-%{release}
148Obsoletes: bluez-sdp-devel
149
150%description libs-devel
151bluez-libs-devel contains header files for use in Bluetooth
152applications.
153
154%description libs-devel -l pl.UTF-8
155Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
156Bluetooth.
157
158%package libs-static
159Summary: Static Bluetooth libraries
160Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
161Group: Development/Libraries
162Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
163Obsoletes: bluez-sdp-static
164
165%description libs-static
166bluez-libs-static contains development static libraries for use in
167Bluetooth applications.
168
169%description libs-static -l pl.UTF-8
170Ten pakiet zawiera biblioteki statyczne, których można używać do
171aplikacji Bluetooth.
172
7fec19c2
BZ
173%package systemd
174Summary: systemd units for bluez
175Group: Base
176Requires: %{name} = %{epoch}:%{version}-%{release}
ef6d37ba 177Requires: systemd-units >= 37-0.10
7fec19c2
BZ
178
179%description systemd
180systemd units for bluez.
181
8e2aef6c
AM
182%prep
183%setup -q
184%patch0 -p1
0416a3b3 185%patch1 -p1
7fec19c2 186%patch2 -p1
8e2aef6c
AM
187
188%build
189%{__libtoolize}
190%{__aclocal}
191%{__autoconf}
192%{__autoheader}
193%{__automake}
194%configure \
16869a45 195 --with-ouifile=%{_datadir}/hwdata/oui.txt \
c7fd41e3 196 --with-systemdsystemunitdir=%{systemdunitdir} \
b0a62422 197 --disable-silent-rules \
8e2aef6c
AM
198 --enable-shared \
199 --enable-static \
200 --enable-alsa \
8e2aef6c
AM
201 --enable-audio \
202 --enable-bccmd \
b0a62422 203 --enable-capng \
ebcc455c 204 --enable-configfiles \
8e2aef6c 205 --enable-cups \
c150cb86 206 --enable-dbusoob \
8e2aef6c
AM
207 --enable-dfutool \
208 --enable-dund \
209 --enable-gstreamer \
c150cb86 210 --enable-health \
8e2aef6c
AM
211 --enable-hid2hci \
212 --enable-hidd \
213 --enable-input \
8e2aef6c
AM
214 --enable-network \
215 --enable-pand \
5be4f75f 216 --enable-pcmcia \
c150cb86 217 --enable-pnat \
8e2aef6c
AM
218 --enable-serial \
219 --enable-tools \
5be4f75f 220 --enable-usb \
68f03ff6
JB
221 --enable-udevrules \
222 --enable-wiimote
8e2aef6c 223
284a9eb9 224%{__make} \
8e2aef6c 225 cupsdir=%{cupsdir} \
2b38a1f3 226 rulesdir=%{udevdir}/rules.d \
b0a62422 227 udevdir=%{udevdir}
8e2aef6c
AM
228
229%install
230rm -rf $RPM_BUILD_ROOT
231install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
8e2aef6c
AM
232
233%{__make} install \
234 DESTDIR=$RPM_BUILD_ROOT \
235 cupsdir=%{cupsdir} \
2b38a1f3 236 rulesdir=%{udevdir}/rules.d \
b0a62422 237 udevdir=%{udevdir}
8e2aef6c 238
8e2aef6c
AM
239install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
240install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
829382b7
AM
241install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/dund
242install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/pand
243install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/rfcomm
9a71d017
BZ
244
245install audio/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
246install input/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
247install network/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
248install serial/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
249
16869a45 250mv -fT $RPM_BUILD_ROOT{%{_datadir},%{_sysconfdir}}/alsa
251
0859c749 252%{__rm} $RPM_BUILD_ROOT%{_libdir}/{alsa-lib/*.{la,a},gstreamer*/libgstbluetooth.{la,a},libbluetooth.la}
8e2aef6c
AM
253
254%clean
255rm -rf $RPM_BUILD_ROOT
256
257%post
258/sbin/chkconfig --add bluetooth
829382b7
AM
259/sbin/chkconfig --add dund
260/sbin/chkconfig --add pand
261/sbin/chkconfig --add rfcomm
8e2aef6c 262%service bluetooth restart
829382b7
AM
263%service dund restart
264%service pand restart
265%service rfcomm restart
8e2aef6c
AM
266
267%preun
268if [ "$1" = "0" ]; then
269 %service bluetooth stop
829382b7
AM
270 %service dund stop
271 %service pand stop
272 %service rfcomm stop
8e2aef6c 273 /sbin/chkconfig --del bluetooth
829382b7
AM
274 /sbin/chkconfig --del dund
275 /sbin/chkconfig --del pand
276 /sbin/chkconfig --del rfcomm
8e2aef6c
AM
277fi
278
d8eef2ef 279%post libs -p /sbin/ldconfig
8e2aef6c
AM
280%postun libs -p /sbin/ldconfig
281
c7fd41e3 282%post systemd
ef6d37ba 283%systemd_post bluetooth.service
c7fd41e3
BZ
284
285%preun systemd
286%systemd_preun bluetooth.service
287
288%postun systemd
ef6d37ba 289%systemd_reload
c7fd41e3 290
8e2aef6c
AM
291%files
292%defattr(644,root,root,755)
f7f17420 293%doc AUTHORS ChangeLog README
3aca1cde
JB
294%attr(755,root,root) %{_bindir}/ciptool
295%attr(755,root,root) %{_bindir}/dfutool
296%attr(755,root,root) %{_bindir}/dund
c150cb86 297%attr(755,root,root) %{_bindir}/gatttool
3aca1cde
JB
298%attr(755,root,root) %{_bindir}/hcitool
299%attr(755,root,root) %{_bindir}/hidd
300%attr(755,root,root) %{_bindir}/l2ping
301%attr(755,root,root) %{_bindir}/pand
302%attr(755,root,root) %{_bindir}/rfcomm
303%attr(755,root,root) %{_bindir}/sdptool
304%attr(755,root,root) %{_sbindir}/bccmd
305%attr(755,root,root) %{_sbindir}/bluetoothd
306%attr(755,root,root) %{_sbindir}/hciattach
307%attr(755,root,root) %{_sbindir}/hciconfig
8e2aef6c
AM
308%dir %{_libdir}/bluetooth
309%dir %{_libdir}/bluetooth/plugins
8e2aef6c 310%dir %{_sysconfdir}/bluetooth
9a71d017 311%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*.conf
8e2aef6c 312%attr(754,root,root) /etc/rc.d/init.d/bluetooth
829382b7
AM
313%attr(754,root,root) /etc/rc.d/init.d/dund
314%attr(754,root,root) /etc/rc.d/init.d/pand
315%attr(754,root,root) /etc/rc.d/init.d/rfcomm
8e2aef6c
AM
316%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
317%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
8e2aef6c 318%attr(755,root,root) %{udevdir}/bluetooth_serial
9b2d7208 319%attr(755,root,root) %{udevdir}/hid2hci
8240ea13
ER
320%{udevdir}/rules.d/97-bluetooth.rules
321%{udevdir}/rules.d/97-bluetooth-hid2hci.rules
322%{udevdir}/rules.d/97-bluetooth-serial.rules
3aca1cde
JB
323%{_mandir}/man1/ciptool.1*
324%{_mandir}/man1/dfutool.1*
325%{_mandir}/man1/dund.1*
326%{_mandir}/man1/hcitool.1*
327%{_mandir}/man1/hidd.1*
328%{_mandir}/man1/pand.1*
329%{_mandir}/man1/rfcomm.1*
330%{_mandir}/man1/sdptool.1*
331%{_mandir}/man8/bccmd.8*
332%{_mandir}/man8/bluetoothd.8*
333%{_mandir}/man8/hciattach.8*
334%{_mandir}/man8/hciconfig.8*
335%{_mandir}/man8/hid2hci.8*
336%{_mandir}/man8/l2ping.8*
8e2aef6c
AM
337
338%files -n alsa-plugins-bluetooth
339%defattr(644,root,root,755)
31ae8b61 340%{_sysconfdir}/alsa/bluetooth.conf
8e2aef6c
AM
341%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
342%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
343
344%files -n cups-backend-bluetooth
345%defattr(644,root,root,755)
346%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
347
348%files -n gstreamer-bluetooth
349%defattr(644,root,root,755)
350%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
351
352%files libs
353%defattr(644,root,root,755)
354%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
3aca1cde 355%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.3
8e2aef6c
AM
356
357%files libs-devel
358%defattr(644,root,root,755)
359%attr(755,root,root) %{_libdir}/libbluetooth.so
8e2aef6c 360%{_includedir}/bluetooth
8e2aef6c
AM
361%{_pkgconfigdir}/bluez.pc
362
363%files libs-static
364%defattr(644,root,root,755)
365%{_libdir}/libbluetooth.a
7fec19c2
BZ
366
367%files systemd
368%defattr(644,root,root,755)
c7fd41e3 369%{systemdunitdir}/bluetooth.service
7fec19c2 370%{_datadir}/dbus-1/system-services/org.bluez.service
This page took 0.110797 seconds and 4 git commands to generate.