]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
Update to 4.45-1. wacom patches added. (all by Przemysław Firszt).
[packages/bluez.git] / bluez.spec
CommitLineData
8e2aef6c
AM
1Summary: Bluetooth utilities
2Summary(pl.UTF-8): Narzędzia Bluetooth
3Name: bluez
5be4f75f 4Version: 4.45
13d86792 5Release: 1
8e2aef6c
AM
6License: GPL v2+
7Group: Applications/System
8#Source0Download: http://www.bluez.org/download.html
9Source0: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
5be4f75f 10# Source0-md5: fb1a02a8008326eabe383dc6fb01b05d
8e2aef6c
AM
11Source1: %{name}.init
12Source2: %{name}.sysconfig
13Source3: %{name}-udev.rules
14Source4: %{name}-udev.script
15Patch0: %{name}-etc_dir.patch
5be4f75f 16Patch2: %{name}-wacom-mode-2.patch
8e2aef6c
AM
17URL: http://www.bluez.org/
18BuildRequires: alsa-lib-devel >= 1.0.10-1
19BuildRequires: autoconf >= 2.50
20BuildRequires: automake
21BuildRequires: bison
22BuildRequires: dbus-glib-devel >= 0.60
23BuildRequires: glib2-devel >= 2.0
24BuildRequires: gstreamer-devel >= 0.10
25BuildRequires: gstreamer-plugins-base-devel >= 0.10
2dbefe61 26BuildRequires: libnl-devel
8e2aef6c
AM
27BuildRequires: libsndfile-devel
28BuildRequires: libtool
8743dbe7 29BuildRequires: libusb-compat-devel
8e2aef6c 30BuildRequires: pkgconfig >= 1:0.9.0
5be4f75f 31BuildRequires: udev-devel
8e2aef6c
AM
32BuildRequires: rpmbuild(macros) >= 1.268
33Requires: %{name}-libs = %{epoch}:%{version}-%{release}
34Requires: rc-scripts
35Obsoletes: bluez-hciemu
36Obsoletes: bluez-pan
37Obsoletes: bluez-sdp
5e8dfcdf 38Obsoletes: bluez-utils
8e2aef6c
AM
39Obsoletes: bluez-utils-init
40Conflicts: bluez-bluefw
890b2714 41Provides: bluez-utils = %{epoch}:%{version}-%{release}
8e2aef6c
AM
42ExcludeArch: s390 s390x
43BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45# currently lib, not %{_lib} (see cups.spec)
46%define cupsdir /usr/lib/cups/backend
d80dfd39 47%define udevdir /lib/udev
8e2aef6c
AM
48
49%description
50Bluetooth utilities:
d8eef2ef
TP
51 - bluetoothd
52 - dund
8e2aef6c
AM
53 - hcitool
54 - hciattach
55 - hciconfig
8e2aef6c
AM
56 - hciemu
57 - hidd
58 - l2ping
59 - pand
60 - start scripts (PLD)
61 - PCMCIA configuration files
62
63The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
64
65%description -l pl.UTF-8
66Narzędzia Bluetooth:
d8eef2ef
TP
67 - bluetoothd
68 - dund
8e2aef6c
AM
69 - hcitool
70 - hciattach
71 - hciconfig
8e2aef6c
AM
72 - hciemu
73 - hidd
74 - l2ping
75 - pand
76 - skrypty startowe (PLD)
77 - pliki konfiguracji PCMCIA
78
79Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
80
81%package -n alsa-plugins-bluetooth
82Summary: ALSA plugins for Bluetooth audio devices
83Summary(pl.UTF-8): Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
84Group: Libraries
85# bluetoothd + audio service
86Requires: %{name} = %{epoch}:%{version}-%{release}
87Requires: alsa-lib >= 1.0.10-1
88
89%description -n alsa-plugins-bluetooth
90ALSA plugins for Bluetooth audio devices.
91
92%description -n alsa-plugins-bluetooth -l pl.UTF-8
93Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
94
95%package -n cups-backend-bluetooth
96Summary: Bluetooth backend for CUPS
97Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
98Group: Applications/Printing
99Requires: bluez-libs >= %{epoch}:%{version}-%{release}
100Requires: cups
101
102%description -n cups-backend-bluetooth
103Bluetooth backend for CUPS.
104
105%description -n cups-backend-bluetooth -l pl.UTF-8
106Backend Bluetooth dla CUPS-a.
107
108%package -n gstreamer-bluetooth
109Summary: Bluetooth support for gstreamer
110Summary(pl.UTF-8): Obsługa Bluetooth dla gstreamera
111Group: Libraries
112Requires: bluez-libs >= %{epoch}:%{version}-%{release}
113Requires: gstreamer >= 0.10
114Requires: gstreamer-plugins-base >= 0.10
115
116%description -n gstreamer-bluetooth
117Bluetooth support for gstreamer.
118
119%description -n gstreamer-bluetooth -l pl.UTF-8
120Obsługa Bluetooth dla gstreamera.
121
122%package libs
123Summary: Bluetooth libraries
124Summary(pl.UTF-8): Biblioteki Bluetooth
125Group: Development/Libraries
126Obsoletes: bluez-sdp
127
128%description libs
129Libraries for use in Bluetooth applications.
130
131The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
132
133%description libs -l pl.UTF-8
134Biblioteki do używania w aplikacjach Bluetooth.
135
136Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
137
138%package libs-devel
139Summary: Header files for Bluetooth applications
140Summary(pl.UTF-8): Pliki nagłówkowe dla aplikacji Bluetooth
141Group: Development/Libraries
142Requires: %{name}-libs = %{epoch}:%{version}-%{release}
143Obsoletes: bluez-sdp-devel
144
145%description libs-devel
146bluez-libs-devel contains header files for use in Bluetooth
147applications.
148
149%description libs-devel -l pl.UTF-8
150Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
151Bluetooth.
152
153%package libs-static
154Summary: Static Bluetooth libraries
155Summary(pl.UTF-8): Biblioteki statyczne Bluetooth
156Group: Development/Libraries
157Requires: %{name}-libs-devel = %{epoch}:%{version}-%{release}
158Obsoletes: bluez-sdp-static
159
160%description libs-static
161bluez-libs-static contains development static libraries for use in
162Bluetooth applications.
163
164%description libs-static -l pl.UTF-8
165Ten pakiet zawiera biblioteki statyczne, których można używać do
166aplikacji Bluetooth.
167
168%prep
169%setup -q
170%patch0 -p1
5be4f75f 171%patch2 -p1
8e2aef6c
AM
172
173%build
174%{__libtoolize}
175%{__aclocal}
176%{__autoconf}
177%{__autoheader}
178%{__automake}
179%configure \
180 --enable-shared \
181 --enable-static \
182 --enable-alsa \
8e2aef6c
AM
183 --enable-audio \
184 --enable-bccmd \
ebcc455c 185 --enable-configfiles \
8e2aef6c
AM
186 --enable-cups \
187 --enable-dfutool \
188 --enable-dund \
189 --enable-gstreamer \
190 --enable-hid2hci \
191 --enable-hidd \
192 --enable-input \
193 --enable-manpages \
ebcc455c 194 --enable-netlink \
8e2aef6c
AM
195 --enable-network \
196 --enable-pand \
5be4f75f 197 --enable-pcmcia \
8e2aef6c
AM
198 --enable-serial \
199 --enable-tools \
5be4f75f
MK
200 --enable-usb \
201 --enable-udevrules
8e2aef6c
AM
202
203%{__make} \
204 cupsdir=%{cupsdir} \
205 udevdir=%{udevdir}
206
207%install
208rm -rf $RPM_BUILD_ROOT
209install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
210install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,%{udevdir}}
211
212%{__make} install \
213 DESTDIR=$RPM_BUILD_ROOT \
214 cupsdir=%{cupsdir} \
215 udevdir=%{udevdir}
216
217# noinst
56b2eeb4 218install audio/audio.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
2dbefe61
KK
219install input/input.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
220install network/network.conf $RPM_BUILD_ROOT%{_sysconfdir}/bluetooth
8e2aef6c
AM
221
222install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
223install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
5be4f75f 224install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/bluetooth.rules
8e2aef6c 225install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
1094cbf6
AM
226rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
227rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
228rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
8e2aef6c
AM
229
230%clean
231rm -rf $RPM_BUILD_ROOT
232
233%post
234/sbin/chkconfig --add bluetooth
235%service bluetooth restart
236
237%preun
238if [ "$1" = "0" ]; then
239 %service bluetooth stop
240 /sbin/chkconfig --del bluetooth
241fi
242
d8eef2ef 243%post libs -p /sbin/ldconfig
8e2aef6c
AM
244%postun libs -p /sbin/ldconfig
245
246%files
247%defattr(644,root,root,755)
f7f17420 248%doc AUTHORS ChangeLog README
8e2aef6c
AM
249%attr(755,root,root) %{_bindir}/*
250%attr(755,root,root) %{_sbindir}/*
251%dir %{_libdir}/bluetooth
252%dir %{_libdir}/bluetooth/plugins
253%attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
254%dir %{_sysconfdir}/bluetooth
56b2eeb4 255%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/audio.conf
2dbefe61 256%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/input.conf
8e2aef6c 257%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
2dbefe61 258%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/network.conf
8e2aef6c
AM
259%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
260%attr(754,root,root) /etc/rc.d/init.d/bluetooth
261%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
262%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
263%attr(755,root,root) %{udevdir}/bluetooth.sh
264%attr(755,root,root) %{udevdir}/bluetooth_serial
5be4f75f
MK
265%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth.rules
266%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/97-bluetooth.rules
267%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/97-bluetooth-hid2hci.rules
268%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/97-bluetooth-serial.rules
8e2aef6c
AM
269%{_mandir}/man[18]/*
270
271%files -n alsa-plugins-bluetooth
272%defattr(644,root,root,755)
3031dd13 273%dir %{_sysconfdir}/alsa
31ae8b61 274%{_sysconfdir}/alsa/bluetooth.conf
8e2aef6c
AM
275%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_ctl_bluetooth.so
276%attr(755,root,root) %{_libdir}/alsa-lib/libasound_module_pcm_bluetooth.so
277
278%files -n cups-backend-bluetooth
279%defattr(644,root,root,755)
280%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
281
282%files -n gstreamer-bluetooth
283%defattr(644,root,root,755)
284%attr(755,root,root) %{_libdir}/gstreamer*/libgstbluetooth.so
285
286%files libs
287%defattr(644,root,root,755)
288%attr(755,root,root) %{_libdir}/libbluetooth.so.*.*.*
289%attr(755,root,root) %ghost %{_libdir}/libbluetooth.so.[0-9]
290
291%files libs-devel
292%defattr(644,root,root,755)
293%attr(755,root,root) %{_libdir}/libbluetooth.so
294%{_libdir}/libbluetooth.la
295%{_includedir}/bluetooth
8e2aef6c
AM
296%{_pkgconfigdir}/bluez.pc
297
298%files libs-static
299%defattr(644,root,root,755)
300%{_libdir}/libbluetooth.a
This page took 0.093277 seconds and 4 git commands to generate.