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