]> git.pld-linux.org Git - packages/bluez-utils.git/blame_incremental - bluez-utils.spec
- ver. 3.9
[packages/bluez-utils.git] / bluez-utils.spec
... / ...
CommitLineData
1Summary: Bluetooth utilities
2Summary(pl.UTF-8): Narzędzia Bluetooth
3Name: bluez-utils
4Version: 3.9
5Release: 1
6Epoch: 0
7License: GPL v2
8Group: Applications/System
9#Source0Download: http://www.bluez.org/download.html
10Source0: http://bluez.sourceforge.net/download/%{name}-%{version}.tar.gz
11# Source0-md5: 023a5e6a436f86a28baeec91e4c62736
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: autoconf
19BuildRequires: automake
20BuildRequires: bison
21BuildRequires: bluez-libs-devel >= 3.7
22BuildRequires: dbus-glib-devel >= 0.35
23BuildRequires: libtool
24BuildRequires: libusb-devel
25BuildRequires: pkgconfig
26BuildRequires: rpmbuild(macros) >= 1.268
27# for future use (ALSA plugins not finished)
28#BuildRequires: alsa-lib-devel >= 0.9
29# for future use (fuse module is just testing stub now)
30#BuildRequires: libfuse-devel
31#BuildRequires: openobex-devel >= 1.1
32Requires: bluez-libs >= 3.7
33Requires: rc-scripts
34Obsoletes: bluez-pan
35Obsoletes: bluez-sdp
36Obsoletes: bluez-utils-init
37Conflicts: bluez-bluefw
38ExcludeArch: s390 s390x
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41# currently lib, not %{_lib} (see cups.spec)
42%define cupsdir /usr/lib/cups/backend
43
44%description
45Bluetooth utilities:
46 - hcitool
47 - hciattach
48 - hciconfig
49 - hcid
50 - l2ping
51 - start scripts (PLD)
52 - PCMCIA configuration files
53
54The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
55
56%description -l pl.UTF-8
57Narzędzia Bluetooth:
58 - hcitool
59 - hciattach
60 - hciconfig
61 - hcid
62 - l2ping
63 - skrypty startowe (PLD)
64 - pliki konfiguracji PCMCIA
65
66%package -n cups-backend-bluetooth
67Summary: Bluetooth backend for CUPS
68Summary(pl.UTF-8): Backend Bluetooth dla CUPS-a
69Group: Applications/Printing
70Requires: bluez-libs >= 3.7
71Requires: cups
72
73%description -n cups-backend-bluetooth
74Bluetooth backend for CUPS.
75
76%description -n cups-backend-bluetooth -l pl.UTF-8
77Backend Bluetooth dla CUPS-a.
78
79%package init
80Summary: Init script for Bluetooth subsystem
81Summary(pl.UTF-8): Skrypt init dla podsystemu Bluetooth
82Group: Applications/System
83Requires(post,preun): /sbin/chkconfig
84Requires: %{name} = %{epoch}:%{version}-%{release}
85
86%description init
87Init script for Bluetooth subsystem.
88
89%description init -l pl.UTF-8
90Skrypt init dla podsystemu Bluetooth.
91
92%prep
93%setup -q
94%patch0 -p1
95
96%build
97%{__libtoolize}
98%{__aclocal}
99%{__autoconf}
100%{__automake}
101%configure \
102 --enable-avctrl \
103 --enable-bccmd \
104 --enable-cups \
105 --enable-dfutool \
106 --enable-pcmciarules \
107 --with-cups=/usr
108%{__make} \
109 cupsdir=%{cupsdir}
110
111%install
112rm -rf $RPM_BUILD_ROOT
113install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
114install -d $RPM_BUILD_ROOT{/etc/udev/rules.d,/lib/udev}
115
116%{__make} install \
117 DESTDIR=$RPM_BUILD_ROOT \
118 cupsdir=%{cupsdir} \
119 udevdir=/lib/udev
120
121install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
122install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
123install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
124install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
125install daemon/passkey-agent $RPM_BUILD_ROOT/%{_bindir}
126mv $RPM_BUILD_ROOT/etc/udev/bluetooth.rules \
127 $RPM_BUILD_ROOT/etc/udev/rules.d/71-bluetooth.rules
128
129%clean
130rm -rf $RPM_BUILD_ROOT
131
132%post init
133/sbin/chkconfig --add bluetooth
134%service bluetooth restart
135
136%preun init
137if [ "$1" = "0" ]; then
138 %service bluetooth stop
139 /sbin/chkconfig --del bluetooth
140fi
141
142%files
143%defattr(644,root,root,755)
144%doc AUTHORS ChangeLog README
145%attr(755,root,root) %{_bindir}/*
146%attr(755,root,root) %{_sbindir}/*
147%{_mandir}/man*/*
148
149%attr(754,root,root) /etc/rc.d/init.d/bluetooth
150%attr(755,root,root) /lib/udev/bluetooth.sh
151%attr(755,root,root) /lib/udev/bluetooth_serial
152%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
153%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/71-bluetooth.rules
154
155%dir /etc/bluetooth
156%dir /etc/sysconfig/bluetooth
157%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
158%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*
159%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
160
161%files -n cups-backend-bluetooth
162%defattr(644,root,root,755)
163%attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
This page took 0.160511 seconds and 4 git commands to generate.