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