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