source: projects/specs/trunk/b/bluez/bluez-vl.spec @ 12506

Revision 12506, 15.2 KB checked in by tomop, 3 years ago (diff)

updated 16 packages

bluez-5.55-1

firefox-78.4.0-1

llvm-11.0.0-2

libdrm-2.4.102-1

libmodsecurity-3.0.4-2

mesa-20.2.1-1

nginx-1.18.0-8

nspr-4.29-1

nss-3.58-1

oniguruma-6.9.5.rev1-3

python-mako-1.1.3-1

python-markupsafe-1.1.1-2

rust-1.47.0-1

thunderbird-78.4.0-1

tigervnc-1.11.0-1

xorg-x11-server-1.20.9-2

Line 
1%bcond_with systemd
2
3%define _unpackaged_files_terminate_build 1
4%if "0%{?_udevrulesdir}" == "0"
5%global _udevrulesdir /lib/udev/rules.d
6%endif
7
8Summary: Bluetooth utilities
9Summary(ja): Bluetooth ユーティリティ
10Name: bluez
11Version: 5.55
12Release: 1%{?_dist_release}%{?with_systemd:.systemd}
13Group: system,admin-tools
14Vendor: Project Vine
15Distribution: Vine Linux
16Packager: daisuke
17
18License: GPLv2+
19URL: http://www.bluez.org/
20
21#----------------------------------------------------------------------------
22
23Source: http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
24Source1: bluetooth.init.vine
25Source3: bluez-uinput.modules
26
27Source11: trusts.txt
28Source20: main.conf
29
30# Scripts for automatically btattach-ing serial ports connected to Broadcom HCIs
31Source22: 69-btattach-bcm.rules
32Source23: btattach-bcm@.service
33Source24: btattach-bcm-service.sh
34
35# from http://www.linuxfromscratch.org/patches/downloads/bluez/
36Patch0: 0001-bluez-5.54-obexd_without_systemd-1.patch
37
38# https://github.com/hadess/bluez/commits/obex-5.46
39Patch1: 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
40
41# https://github.com/hadess/bluez/commits/systemd-hardening
42Patch10: 0001-build-Always-define-confdir-and-statedir.patch
43Patch11: 0002-systemd-Add-PrivateTmp-and-NoNewPrivileges-options.patch
44Patch12: 0003-systemd-Add-more-filesystem-lockdown.patch
45Patch13: 0004-systemd-More-lockdown.patch
46
47# Patch for Vine
48Patch100: 0002-bluez-5.54-daemon.patch
49Patch101: 0003-bluez-5.54-config-vine.patch
50
51#----------------------------------------------------------------------------
52BuildRoot:      %{_tmppath}/%{name}-%{version}-root
53
54BuildRequires:  flex
55BuildRequires:  bison
56BuildRequires:  dbus-devel
57BuildRequires:  glib2-devel
58BuildRequires:  readline-devel
59BuildRequires:  libical-devel
60BuildRequires:  json-c-devel
61%if %{with systemd}
62BuildRequires: systemd-devel
63%{?systemd_requires}
64%else
65BuildRequires:  eudev-libudev-devel
66Requires(post): /sbin/chkconfig, /sbin/service
67Requires(preun): /sbin/chkconfig, /sbin/service
68Requires(postun): /sbin/service
69%endif
70
71ExcludeArch: s390 s390x
72
73Obsoletes: bluez-pan < 4.0, bluez-sdp < 4.0
74Requires: initscripts, bluez-libs = %{version}
75Requires: dbus >= 0.60
76# Requires: fuse
77## Requires: hwdata >= 0.215
78Requires: hwdata >= 0.146
79#----------------------------------------------------------------------------
80
81Obsoletes: bluez-utils < 4.5-2
82Provides: bluez-utils = %{version}-%{release}
83Obsoletes: bluez-gstreamer < 5.0
84Obsoletes: bluez-alsa < 5.0
85
86#----------------------------------------------------------------------------
87%description
88Utilities for use in Bluetooth applications:
89        - hcitool
90        - hciattach
91        - hciconfig
92        - bluetoothd
93        - l2ping
94        - start scripts VineLinux (RedHat base)
95        - pcmcia configuration files
96
97 Please, read %{_defaultdocdir}/%{name}-%{version}/trusts.txt
98
99The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
100
101%description -l ja
102Bluetooth ユーティリティ (bluez-utils):
103        - hcitool
104        - hciattach
105        - hciconfig
106        - l2ping
107        - 起動スクリプト (Red Hat用をVineLinuxに合わせました)
108        - pcmcia コンフィグレーション ファイル
109※付属の%{_defaultdocdir}/%{name}-%{version}/trusts.txtもご覧下さい。
110
111(BLUETOOTH は Bluetooth SIG, Inc.(USA)のトレードマークです)
112
113#----------------------------------------------------------------------------
114%package libs
115Summary: Libraries for use in Bluetooth applications
116Summary(ja): BlueTooth アプリケーションの使用するライブラリ(BlueZ)
117Group: system
118
119%description libs
120Libraries for use in Bluetooth applications.
121
122%description libs -l ja
123Bluetooth アプリケーションのためのライブラリです。
124※BlueZ のユーティリティのためにも必要です
125
126#----------------------------------------------------------------------------
127%package libs-devel
128Summary: Development libraries for Bluetooth applications
129Summary(ja): Bluetooth アプリケーション開発のためのdevelパッケージ
130Group: programming
131Requires: bluez-libs = %{version}
132Requires: pkgconfig
133Obsoletes: bluez-sdp-devel < 4.0
134
135%description libs-devel
136bluez-libs-devel contains development libraries and headers for
137use in Bluetooth applications.
138
139%description libs-devel -l ja
140bluez-libs-devel パッケージは Bluetooth アプリケーション開発のための
141ライブラリやヘッダーファイルを提供します。
142
143#----------------------------------------------------------------------------
144%package cups
145Summary: CUPS printer backend for Bluetooth printers
146Summary(ja): Bluetooth 経由の CUPS プリンタシステム用
147Group: servers
148Obsoletes: bluez-utils-cups < 4.5-2
149Provides: bluez-utils-cups = %{version}-%{release}
150Requires: bluez-libs = %{version}
151Requires: cups
152
153%description cups
154This package contains the CUPS backend
155
156%description cups -l ja
157Bluetooth対応 プリンターを CUPS印刷システムから利用する
158ためのバックエンドです。
159
160#----------------------------------------------------------------------------
161
162%prep
163rm -rf $RPM_BUILD_ROOT
164
165%setup -q
166%if !%{with systemd}
167%patch0 -p1
168%patch1 -p1
169%else
170%patch1 -p1
171%patch10 -p1
172%patch11 -p1
173%patch12 -p1
174%patch13 -p1
175%endif
176%patch100 -p1
177%patch101 -p1
178
179%build
180%configure \
181%if %{with systemd}
182        --with-systemdsystemunitdir=%{_unitdir} \
183        --with-systemduserunitdir=%{_userunitdir} \
184        --enable-mesh \
185%else
186        --disable-systemd \
187%endif
188        --enable-library \
189    --enable-cups \
190    --enable-tools \
191    --enable-sixaxis \
192    --enable-nfc \
193        --enable-hid2hci \
194        --disable-android
195
196make %{?_smp_mflags}
197
198#----------------------------------------------------------------------------
199%install
200rm -rf %{buildroot}
201make install DESTDIR=%{buildroot}
202
203# Remove autocrap and libtool droppings
204find %{buildroot} -name '*.la' -exec rm -f {} \;
205
206mkdir -p %{buildroot}%{_sysconfdir}/bluetooth/
207mkdir -p %{buildroot}%{_libdir}/bluetooth/
208mkdir -p %{buildroot}%{_sbindir}
209
210install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth
211%if %{with systemd}
212install -d -m0755 $RPM_BUILD_ROOT/%{_localstatedir}/lib/bluetooth/mesh
213#serial port connected Broadcom HCIs scripts
214install -D -p -m0644 %{SOURCE22} %{buildroot}/%{_udevrulesdir}/
215install -D -p -m0644 %{SOURCE23} %{buildroot}/%{_unitdir}/
216install -D -p -m0755 %{SOURCE24} %{buildroot}/%{_libexecdir}/bluetooth/
217%else
218install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/bluetooth
219ln -s ../libexec/bluetooth/bluetoothd %{buildroot}%{_sbindir}/bluetoothd
220%endif
221
222#copy bluetooth config file and setup auto enable
223install -D -p -m0644 src/main.conf %{buildroot}/etc/bluetooth/main.conf
224install -D -p -m0644 mesh/mesh-main.conf %{buildroot}/etc/bluetooth/mesh-main.conf
225sed -i 's/#\[Policy\]$/\[Policy\]/; s/#AutoEnable=false/AutoEnable=true/' %{buildroot}/%{_sysconfdir}/bluetooth/main.conf
226
227install -D -m0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/modules/bluez-uinput.modules
228
229#----------------------------------------------------------------------------
230%clean
231rm -rf %{buildroot}
232
233#----------------------------------------------------------------------------
234%post
235%if %{with systemd}
236%systemd_post bluetooth.service
237%systemd_user_post bluetooth-mesh.service
238%systemd_user_post obex.service
239/bin/udevadm trigger --subsystem-match=usb
240%else
241/sbin/chkconfig --add bluetooth
242/sbin/udevadm trigger --subsystem-match=usb
243%endif
244exit 0
245
246%preun
247%if %{with systemd}
248%systemd_preun bluetooth.service
249%systemd_user_preun bluetooth-mesh.service
250%systemd_user_preun obex.service
251%else
252if [ "$1" = "0" -o -x /bin/systemctl ]; then
253        /sbin/service bluetooth stop >/dev/null 2>&1 || :
254        /sbin/chkconfig --del bluetooth
255fi
256exit 0
257%endif
258
259%postun
260%if %{with systemd}
261%systemd_postun_with_restart bluetooth.service
262%else
263if [ "$1" -ge "0" ]; then
264        /sbin/service bluetooth condrestart >/dev/null 2>&1 || :
265fi
266%endif
267
268%post libs -p /sbin/ldconfig
269%postun libs -p /sbin/ldconfig
270
271#----------------------------------------------------------------------------
272%files
273%defattr(-, root, root)
274%license COPYING
275%doc AUTHORS INSTALL ChangeLog NEWS README
276%dir %{_sysconfdir}/bluetooth/
277%config(noreplace) %{_sysconfdir}/bluetooth/*
278%{_sysconfdir}/dbus-1/system.d/bluetooth.conf
279%{_sysconfdir}/sysconfig/modules/bluez-uinput.modules
280%{_bindir}/*
281%{_libexecdir}/bluetooth/bluetoothd
282%{_libexecdir}/bluetooth/obexd
283%dir %{_libdir}/bluetooth
284%dir %{_libdir}/bluetooth/plugins
285%{_libdir}/bluetooth/plugins/sixaxis.so
286%{_mandir}/man1/*
287%{_mandir}/man8/*
288/lib/udev/hid2hci
289%{_udevrulesdir}/97-hid2hci.rules
290%dir %{_datadir}/zsh
291%dir %{_datadir}/zsh/site-functions
292%{_datadir}/zsh/site-functions/_bluetoothctl
293%dir %{_localstatedir}/lib/bluetooth
294%if %{with systemd}
295%{_unitdir}/bluetooth.service
296%{_unitdir}/btattach-bcm@.service
297%{_libexecdir}/bluetooth/btattach-bcm-service.sh
298%{_udevrulesdir}/69-btattach-bcm.rules
299%{_userunitdir}/obex.service
300%{_datadir}/dbus-1/system-services/org.bluez.service
301%{_datadir}/dbus-1/services/org.bluez.obex.service
302# mesh files
303%doc tools/mesh-gatt/*.json
304%config %{_sysconfdir}/dbus-1/system.d/bluetooth-mesh.conf
305%{_datadir}/dbus-1/system-services/org.bluez.mesh.service
306%{_libexecdir}/bluetooth/bluetooth-meshd
307%{_unitdir}/bluetooth-mesh.service
308%dir %{_localstatedir}/lib/bluetooth/mesh
309%else
310%{_sysconfdir}/rc.d/init.d/bluetooth
311%{_sbindir}/bluetoothd
312%endif
313
314%files libs
315%defattr(-, root, root)
316%{_libdir}/libbluetooth.so.*
317
318%files libs-devel
319%defattr(-, root, root)
320%{_libdir}/libbluetooth.so
321%dir %{_includedir}/bluetooth
322%{_includedir}/bluetooth/*
323%{_libdir}/pkgconfig/bluez.pc
324
325%files cups
326%defattr(-, root, root)
327%{_libdir}/cups/backend/bluetooth
328
329
330%changelog
331* Thu Oct 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.55-1
332- updated to 5.55.
333- added systemd support (disabled as default).
334
335* Sun Mar 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.54-1
336- updated to 5.54.
337- updated all patches.
338
339* Sun Sep 01 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.50-1
340- updated to 5.50.
341
342* Fri Jan 26 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.48-1
343- updated to 5.48.
344
345* Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.35-1
346- update to 5.35
347- remove %%{name}-gstreamer, %%{name}-alsa subpackages
348- add Patch0 (bluez-5.35-obexd_without_systemd-1.patch)
349- add Patch100 (bluez-5.35-daemon.patch)
350- add Patch101 (bluez-5.35-config-vine.patch)
351
352* Sat Jul 18 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-5
353- rebuild with readline-6.3
354
355* Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-4
356- change BuildRequires: eudev-libudev-devel instead of libudev-devel
357
358* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-3
359- rebuild with VineSeed environment
360
361* Thu Jul 11 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 4.101-2
362- build with sbc
363  - add BR: sbc-devel
364
365* Sun Jun 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.101-1
366- new upstream release
367
368* Sun Mar 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.99-1
369- new upstream release
370
371* Thu Feb 23 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.98-1
372- new upstream release
373
374* Sun Dec 25 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.97-1
375- new upstream release
376- add BuildRequires: check-devel, readline-devel
377
378* Sun Aug 28 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.96-1
379- new upstream release
380- add BuildRequires: libudev-devel
381
382* Thu Feb 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.89-1
383- new upstream release
384
385* Sat Feb 05 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.87-1
386- new upstream release
387
388* Thu Dec 30 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.84-1
389- new upstream release
390
391* Sun Dec 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.82-1
392- new upstream release
393
394* Fri Dec 10 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.81-1
395- new upstream release
396
397* Tue Nov 16 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.79-1
398- new upstream release
399- drop Patch2
400
401* Wed Nov 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.77-1
402- new upstream release
403- fix %files (change path of alsa/bluetooth.conf)
404
405* Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-2
406- rebuild with rpm-4.8.1 for pkg-config file
407
408* Mon Jul 19 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.69-1
409- new upstream release
410
411* Mon Jun 21 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.66-1
412- new upstream release
413
414* Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.64-1
415- new upstream release
416- drop Patch1, Patch5, Patch6
417
418* Sun Jul 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-2
419- add bluetooth.init again.
420  - on-demand startup on bootup process will fail, because
421    D-BUS service is not started yet.
422
423* Sun Jun 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.42-1
424- new upstream release
425
426* Mon Jun 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-2
427- remove bluetooth.init
428  - on-demand start/stop bluetoothd using udev
429  - run hid2hci using udev
430- add missing files to %%files
431
432* Fri Jun 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.41-1
433- new upstream release
434- add udev rule
435- add upstream Patch[2-6]
436
437* Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.37-1
438- new upstream release
439
440* Fri Oct 24 2008 Seiichirou Babasaki 4.15-1
441- Update to 4.15
442- added # Maintainers:  comments.
443- FedoraCore - LOGS
444-- 4.14-2
445-- Add script to autoload uinput on startup, so the PS3 remote
446   works out-of-the-box
447-- 4.14-1 - Update to 4.14
448-- 4.13-3
449-- Update udev rules (#246840)
450-- 4.13-2
451-- Fix PS3 BD remote input event generation
452-- 4.13-1 - Update to 4.13
453-- 4.12-1 - Update to 4.12
454-- 4.11-1 - Update to 4.11
455-- 4.10-1 - Update to 4.10
456-- 4.9-1 - Update to 4.9
457-- 4.8-1 - Update to 4.8
458-- 4.7-1 - Update to 4.7
459-- 4.6-4
460-- Fix patch application
461-- 4.6-3
462-- Add fuzz
463-- 4.6-2
464-- Fix possible crasher on resume from suspend
465-- 4.6-1 - Update to 4.6
466-- 4.5-4
467-- SDP browse fixes
468-- 4.5-3
469-- Bluez-alsa needs to provide/obsolete bluez-utils-alsa
470-- Use versioned Obsoletes:
471-- 4.5-2
472-- Change main utils package name to 'bluez'; likewise its subpackages
473-- Remove references to obsolete initscripts (hidd,pand,dund)
474-- 4.5-1
475-- Update to 4.5
476-- Fix initscript to actually start bluetoothd by hand
477-- Add chkconfig information to the initscript
478-- 4.4-2
479-- Fix rpmlint problems
480-- Fix input device handling
481-- 4.4-1
482-- Update to 4.4
483-- Update source address, and remove unneeded deps (thanks Marcel)
484-- 4.1-1
485-- Initial build
486- updated specfile
487- VineLinux-4.2 logfile
488-- *Thu Oct 2 2008 Seiichirou Babasaki 3.24-4
489-- update bleuz-gnome, rebuild bluez-utils
490-- Requires: fuse
491-- updated specfile
492-- *Tue Sep 30 2008 Seiichirou Babasaki 3.24-3
493-- trusts.txt update (added audio profile)
494-- updated specfile
495
496#----------------------------------------------------------------------------
497* Fri Sep 26 2008 Seiichirou Babasaki 3.32-2
498- *.conf update
499- updated specfile
500
501* Fri Jun 13 2008 Seiichirou Babasaki 3.32-1
502- Updated 3.32
503- Updated specfile
504- ** LOGS 3.31-2
505- ** Add a .service file, starting up hcid only when used (#446918)
506- ** Fix descriptions in the initscript headers (#433647)
507- ** LOGS 3.30-2
508- ** Add support for Dell HID/HCI switch
509- ** LOGS 3.27-1
510- ** Ship audio.conf (#278831)
511- ** Ship network service
512
513* Sat Jan 26 2008 Seiichirou Babasaki 3.24-2
514- Updated specfile
515-   marge bluez-utils-3.24-conf-vl.patch
516-      << bluez-utils-2.3-conf.patch
517- add trusts.txt(ja)
518- Updated specfile
519
520* Mon Jan 21 2008 Seiichirou Babasaki 3.24-1vl2
521- Updated specfile for (dbus-devel >= 0.90)
522
523* Wed Jan 16 2008 Seiichirou Babasaki 3.24-1vl1
524- Import bluez-utils - Packager: Babasaki
525- Updated specfile for (dbus-devel >= 0.60)
526- Update to 3.24
Note: See TracBrowser for help on using the repository browser.