%define pkgver %(echo %version | tr _ -) #there is no tag in git repo %define commit 97efd293491ad7ec96a655665339908f2478b3d1 %define shortcommit 97efd29 %define gitdate 20161212 %define git_ver -git%{gitdate}.%{shortcommit} %define git_rel .git%{gitdate}.%{shortcommit} Name: bluez-tools Version: 0.2.0 Release: 1mamba Summary: A set of tools to manage bluetooth devices for linux Group: Applications/Communication Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://code.google.com/p/bluez-tools/ Source: https://github.com/khvzak/%{name}/archive/%{commit}.tar.gz #/%{name}-%{version}%{?git_ver}.tar.gz #Source: https://bluez-tools.googlecode.com/files/bluez-tools-%{pkgver}.tar.gz Patch0: bluez-tools-0.1.38_662e-pin-option-and-ps3.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libdbus-devel BuildRequires: libdbus-glib-devel BuildRequires: libglib-devel BuildRequires: libreadline-devel ## AUTOBUILDREQ-END Requires: obexd Requires: obex-client BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A set of tools to manage bluetooth devices for linux. %debug_package %prep %setup -q -n %{name}-%{commit} #%patch0 -p1 %build ./autogen.sh %configure %make LIBREADLINE="-lreadline -ltermcap" %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/bt-adapter %{_bindir}/bt-agent #%{_bindir}/bt-audio %{_bindir}/bt-device #%{_bindir}/bt-input #%{_bindir}/bt-monitor %{_bindir}/bt-network %{_bindir}/bt-obex #%{_bindir}/bt-serial %{_mandir}/man1/bt-adapter.1* %{_mandir}/man1/bt-agent.1* #%{_mandir}/man1/bt-audio.1* %{_mandir}/man1/bt-device.1* #%{_mandir}/man1/bt-input.1* #%{_mandir}/man1/bt-monitor.1* %{_mandir}/man1/bt-network.1* %{_mandir}/man1/bt-obex.1* #%{_mandir}/man1/bt-serial.1* %doc AUTHORS COPYING %changelog * Sun Apr 09 2017 Ercole 'ercolinux' Carpanetto 0.2.0~20140808-1mamba - update to 0.2.0~20140808 * Thu Dec 15 2016 Silvan Calarco 0.1.38_662e-4mamba - rebuilt with fix: bt-obex: symbol lookup error: /usr/lib/libreadline.so.6: undefined symbol: UP * Tue Nov 19 2013 Silvan Calarco 0.1.38_662e-3mamba - require obex-client * Wed Nov 06 2013 Silvan Calarco 0.1.38_662e-2mamba - added patch from openelec to add bt-device -p option to pass pin from cmdline (patch also adds some ps3 support) (http://openelec.tv/forum/104-bluetooth-remotes/24473-ps3-remote-controller-in-openelec-alternate-solutions) - require obexd - fixed group * Thu Oct 31 2013 Silvan Calarco 0.1.38_662e-1mamba - package created by silvan using the webbuild interface