]> git.pld-linux.org Git - packages/bluez.git/blob - bluez.spec
- 4.13
[packages/bluez.git] / bluez.spec
1 Summary:        Bluetooth utilities
2 Summary(pl.UTF-8):      Narzędzia Bluetooth
3 Name:           bluez
4 Version:        4.13
5 Release:        1
6 Epoch:          0
7 License:        GPL v2+
8 Group:          Applications/System
9 #Source0Download: http://www.bluez.org/download.html
10 Source0:        http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.gz
11 # Source0-md5:  7ce8ed3a586782aa48251f9a547e287f
12 Source1:        %{name}.init
13 Source2:        %{name}.sysconfig
14 Source3:        %{name}-udev.rules
15 Source4:        %{name}-udev.script
16 Patch0:         %{name}-etc_dir.patch
17 URL:            http://www.bluez.org/
18 BuildRequires:  alsa-lib-devel >= 1.0.10-1
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 BuildRequires:  bison
22 BuildRequires:  dbus-glib-devel >= 0.60
23 BuildRequires:  glib2-devel >= 2.0
24 BuildRequires:  gstreamer-devel >= 0.10
25 BuildRequires:  gstreamer-plugins-base-devel >= 0.10
26 BuildRequires:  libsndfile-devel
27 BuildRequires:  libtool
28 BuildRequires:  libusb-devel
29 BuildRequires:  openobex-devel >= 1.1
30 BuildRequires:  pkgconfig >= 1:0.9.0
31 BuildRequires:  rpmbuild(macros) >= 1.268
32 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
33 Requires:       rc-scripts
34 Obsoletes:      bluez-hciemu
35 Obsoletes:      bluez-pan
36 Obsoletes:      bluez-sdp
37 Obsoletes:      bluez-utils
38 Obsoletes:      bluez-utils-init
39 Conflicts:      bluez-bluefw
40 Provides:       bluez-utils = %{epoch}:%{version}-%{release}
41 ExcludeArch:    s390 s390x
42 BuildRoot:      %{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
49 Bluetooth 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
61 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
62
63 %description -l pl.UTF-8
64 Narzę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
76 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
77
78 %package -n alsa-plugins-bluetooth
79 Summary:        ALSA plugins for Bluetooth audio devices
80 Summary(pl.UTF-8):      Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth
81 Group:          Libraries
82 # bluetoothd + audio service
83 Requires:       %{name} = %{epoch}:%{version}-%{release}
84 Requires:       alsa-lib >= 1.0.10-1
85
86 %description -n alsa-plugins-bluetooth
87 ALSA plugins for Bluetooth audio devices.
88
89 %description -n alsa-plugins-bluetooth -l pl.UTF-8
90 Wtyczki systemu ALSA dla urządzeń dźwiękowych Bluetooth.
91
92 %package -n cups-backend-bluetooth
93 Summary:        Bluetooth backend for CUPS
94 Summary(pl.UTF-8):      Backend Bluetooth dla CUPS-a
95 Group:          Applications/Printing
96 Requires:       bluez-libs >= %{epoch}:%{version}-%{release}
97 Requires:       cups
98
99 %description -n cups-backend-bluetooth
100 Bluetooth backend for CUPS.
101
102 %description -n cups-backend-bluetooth -l pl.UTF-8
103 Backend Bluetooth dla CUPS-a.
104
105 %package -n gstreamer-bluetooth
106 Summary:        Bluetooth support for gstreamer
107 Summary(pl.UTF-8):      Obsługa Bluetooth dla gstreamera
108 Group:          Libraries
109 Requires:       bluez-libs >= %{epoch}:%{version}-%{release}
110 Requires:       gstreamer >= 0.10
111 Requires:       gstreamer-plugins-base >= 0.10
112
113 %description -n gstreamer-bluetooth
114 Bluetooth support for gstreamer.
115
116 %description -n gstreamer-bluetooth -l pl.UTF-8
117 Obsługa Bluetooth dla gstreamera.
118
119 %package libs
120 Summary:        Bluetooth libraries
121 Summary(pl.UTF-8):      Biblioteki Bluetooth
122 Group:          Development/Libraries
123 Obsoletes:      bluez-sdp
124
125 %description libs
126 Libraries for use in Bluetooth applications.
127
128 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
129
130 %description libs -l pl.UTF-8
131 Biblioteki do używania w aplikacjach Bluetooth.
132
133 Znaki towarowe BLUETOOTH są własnością Bluetooth SIG, Inc. z USA.
134
135 %package libs-devel
136 Summary:        Header files for Bluetooth applications
137 Summary(pl.UTF-8):      Pliki nagłówkowe dla aplikacji Bluetooth
138 Group:          Development/Libraries
139 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
140 Obsoletes:      bluez-sdp-devel
141
142 %description libs-devel
143 bluez-libs-devel contains header files for use in Bluetooth
144 applications.
145
146 %description libs-devel -l pl.UTF-8
147 Ten pakiet zawiera pliki nagłówkowe do używania w aplikacjach
148 Bluetooth.
149
150 %package libs-static
151 Summary:        Static Bluetooth libraries
152 Summary(pl.UTF-8):      Biblioteki statyczne Bluetooth
153 Group:          Development/Libraries
154 Requires:       %{name}-libs-devel = %{epoch}:%{version}-%{release}
155 Obsoletes:      bluez-sdp-static
156
157 %description libs-static
158 bluez-libs-static contains development static libraries for use in
159 Bluetooth applications.
160
161 %description libs-static -l pl.UTF-8
162 Ten pakiet zawiera biblioteki statyczne, których można używać do
163 aplikacji 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
205 rm -rf $RPM_BUILD_ROOT
206 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
207 install -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
217 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
218 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
219 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
220 install %{SOURCE4} $RPM_BUILD_ROOT%{udevdir}/bluetooth.sh
221 mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
222         $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
223
224 rm -f $RPM_BUILD_ROOT%{_libdir}/alsa-lib/*.{,l}a
225 rm -f $RPM_BUILD_ROOT%{_libdir}/bluetooth/plugins/*.{,l}a
226 rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer*/libgstbluetooth.{,l}a
227
228 %clean
229 rm -rf $RPM_BUILD_ROOT
230
231 %post
232 /sbin/chkconfig --add bluetooth
233 %service bluetooth restart
234
235 %preun
236 if [ "$1" = "0" ]; then
237         %service bluetooth stop
238         /sbin/chkconfig --del bluetooth
239 fi
240
241 %post libs   -p /sbin/ldconfig
242 %postun libs -p /sbin/ldconfig
243
244 %files
245 %defattr(644,root,root,755)
246 %doc AUTHORS ChangeLog README
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
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
287 %{_pkgconfigdir}/bluez.pc
288
289 %files libs-static
290 %defattr(644,root,root,755)
291 %{_libdir}/libbluetooth.a
This page took 0.061324 seconds and 4 git commands to generate.