%define name bluez-pin %define version 0.30 %define release %mkrel 13 Summary: Bluetooth PIN GUI Name: %name Version: %version Release: %release Url: http://www.bluez.org/ License: GPLv2+ Group: Communications/Bluetooth Source0: ftp://gpe.handhelds.org/projects/gpe/source/%{name}-%{version}.tar.bz2 BuildRequires: imagemagick gtk2-devel libglade2.0-devel libGConf2-devel BuildRequires: libbluez-devel BuildRequires: dbus-glib-devel >= 0.50 BuildRequires: perl-XML-Parser %description A GTK+ helper app for entering a Bluetooth PIN. %prep %setup -q %build %configure2_5x make %install %makeinstall_std %find_lang %name %post update-alternatives --install /bin/bluepin bluepin /usr/bin/bluez-pin 10 %postun [ $1 != 0 ] && exit 0 update-alternatives --remove bluepin /usr/bin/bluez-pin %files -f %name.lang %doc ChangeLog %_bindir/%name %config %_sysconfdir/dbus*/* %_datadir/pixmaps/* %_datadir/%name %changelog * Fri Jan 11 2013 umeabot <umeabot> 0.30-13.mga3 + Revision: 346931 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Oct 20 2012 malo <malo> 0.30-12.mga3 + Revision: 308476 - spec clean-up - update RPM group * Sat Jan 22 2011 pterjan <pterjan> 0.30-11.mga1 + Revision: 32629 - imported package bluez-pin