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