]> git.pld-linux.org Git - packages/bluez-utils.git/blob - bluez-utils.spec
- ups
[packages/bluez-utils.git] / bluez-utils.spec
1 Summary:        Bluetooth utilities
2 Summary(pl):    Narzêdzia Bluetooth
3 Name:           bluez-utils
4 Version:        2.25
5 Release:        3
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:  ae3729ab5592be06ed01b973d4b3e9fe
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://bluez.sourceforge.net/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  bison
20 BuildRequires:  bluez-libs-devel >= 2.25
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 >= 2.21
27 Requires:       rc-scripts
28 Obsoletes:      bluez-pan
29 Obsoletes:      bluez-sdp
30 Conflicts:      bluez-bluefw
31 ExcludeArch:    s390 s390x
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 # currently lib, not %{_lib} (see cups.spec)
35 %define         cupsdir         /usr/lib/cups/backend
36
37 %description
38 Bluetooth utilities:
39  - hcitool
40  - hciattach
41  - hciconfig
42  - hcid
43  - l2ping
44  - start scripts (PLD)
45  - PCMCIA configuration files
46
47 The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.
48
49 %description -l pl
50 Narzêdzia Bluetooth:
51  - hcitool
52  - hciattach
53  - hciconfig
54  - hcid
55  - l2ping
56  - skrypty startowe (PLD)
57  - pliki konfiguracji PCMCIA
58
59 %package -n cups-backend-bluetooth
60 Summary:        Bluetooth backend for CUPS
61 Summary(pl):    Backend Bluetooth dla CUPS-a
62 Group:          Applications/Printing
63 Requires:       bluez-libs >= 2.21
64 Requires:       cups
65
66 %description -n cups-backend-bluetooth
67 Bluetooth backend for CUPS.
68
69 %description -n cups-backend-bluetooth -l pl
70 Backend Bluetooth dla CUPS-a.
71
72 %package init
73 Summary:        Init script for Bluetooth subsystem
74 Summary(pl):    Skrypt init dla podsystemu Bluetooth
75 Group:          Applications/System
76 Requires(post,preun):   /sbin/chkconfig
77 Requires:       %{name} = %{epoch}:%{version}-%{release}
78
79 %description init
80 Init script for Bluetooth subsystem.
81
82 %description init -l pl
83 Skrypt init dla podsystemu Bluetooth.
84
85 %prep
86 %setup -q
87 %patch0 -p1
88
89 %build
90 %{__libtoolize}
91 %{__aclocal}
92 %{__autoconf}
93 %{__automake}
94 %configure \
95         --enable-bcm203x \
96         --enable-cups \
97         --enable-pcmcia \
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
111 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/bluetooth
112 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/bluetooth
113 install %{SOURCE3} $RPM_BUILD_ROOT/etc/udev/rules.d/70-bluetooth.rules
114 install %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/bluetooth.sh
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post init
120 /sbin/chkconfig --add bluetooth
121 %service bluetooth restart
122
123 %preun init
124 if [ "$1" = "0" ]; then
125         %service bluetooth stop
126         /sbin/chkconfig --del bluetooth
127 fi
128
129 %files
130 %defattr(644,root,root,755)
131 %doc AUTHORS ChangeLog README
132 %attr(755,root,root) %{_bindir}/*
133 %attr(755,root,root) %{_sbindir}/*
134 %{_mandir}/man*/*
135 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bluetooth
136 %dir %{_sysconfdir}/bluetooth
137 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bluetooth/*
138 %attr(755,root,root) %{_sysconfdir}/hotplug/usb/bcm203x
139 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hotplug/usb/bcm203x.usermap
140 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth.conf
141 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pcmcia/bluetooth
142
143 %files -n cups-backend-bluetooth
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_prefix}/lib/cups/backend/bluetooth
146
147 %files init
148 %defattr(644,root,root,755)
149 %attr(754,root,root) /etc/rc.d/init.d/bluetooth
150 %attr(755,root,root) /lib/udev/bluetooth.sh
151 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/70-bluetooth.rules
This page took 0.061668 seconds and 3 git commands to generate.