]> git.pld-linux.org Git - packages/bluez.git/blame - bluez.spec
- missing patch
[packages/bluez.git] / bluez.spec
CommitLineData
8e2aef6c
AM
1Summary: Bluetooth utilities
2Summary(pl.UTF-8): Narzędzia Bluetooth
3Name: bluez
31ae8b61 4Version: 4.40
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
31ae8b61 10# Source0-md5: a25fa37c97c309338649f6a5fd4cea76
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
26BuildRequires: libsndfile-devel
27BuildRequires: libtool
8743dbe7 28BuildRequires: libusb-compat-devel
8e2aef6c
AM
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
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
8e2aef6c
AM
217
218install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
219install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
220install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
221install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
1094cbf6
AM
222rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
223rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
224rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
8e2aef6c
AM
225
226%clean
227rm -rf $RPM_BUILD_ROOT
228
229%post
230/sbin/chkconfig --add bluetooth
231%service bluetooth restart
232
233%preun
234if [ "$1" = "0" ]; then
235 %service bluetooth stop
236 /sbin/chkconfig --del bluetooth
237fi
238
d8eef2ef 239%post libs -p /sbin/ldconfig
8e2aef6c
AM
240%postun libs -p /sbin/ldconfig
241
242%files
243%defattr(644,root,root,755)
f7f17420 244%doc AUTHORS ChangeLog README
8e2aef6c
AM
245%attr(755,root,root) %{_bindir}/*
246%attr(755,root,root) %{_sbindir}/*
247%dir %{_libdir}/bluetooth
248%dir %{_libdir}/bluetooth/plugins
249%attr(755,root,root) %{_libdir}/bluetooth/plugins/*.so
250%dir %{_sysconfdir}/bluetooth
56b2eeb4 251%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/audio.conf
8e2aef6c
AM
252%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/main.conf
253%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/rfcomm.conf
254%attr(754,root,root) /etc/rc.d/init.d/bluetooth
255%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
256%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/bluetooth.conf
257%attr(755,root,root) %{udevdir}/bluetooth.sh
258%attr(755,root,root) %{udevdir}/bluetooth_serial
259%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
31ae8b61
PZ
260%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-hid2hci.rules
261%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/bluetooth-serial.rules
8e2aef6c
AM
262%{_mandir}/man[18]/*
263
264%files -n alsa-plugins-bluetooth
265%defattr(644,root,root,755)
31ae8b61 266%{_sysconfdir}/alsa/bluetooth.conf
8e2aef6c
AM
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
8e2aef6c
AM
288%{_pkgconfigdir}/bluez.pc
289
290%files libs-static
291%defattr(644,root,root,755)
292%{_libdir}/libbluetooth.a
This page took 0.093756 seconds and 4 git commands to generate.