File libfprint0.spec of Package libfprint0

%define pkg_name libfprint
BuildRequires:  libopenssl-devel libusb-devel glib2-devel ImageMagick-devel pkgconfig
Name:           libfprint0
License:        LGPL-2.1
Packager:       Georges A.K. - <>
Group:          Hardware/Other
PreReq:         %fillup_prereq
Version:        0.0.6
Release:        1
Summary:        Allows application developers to add support for consumer fingerprint readers
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64 ppc ppc64 ia64
#Requires:	libusb glib2 ImageMagick
Source0:        %{pkg_name}-%{version}.tar.bz2
Source1:        55-fprint.rules

libfprint is an open source software library designed to make it easy for application developers to add support for consumer fingerprint readers to their software.

* Written in C
* Licensed as LGPL-2.1
* Depends on libusb for USB communication and glib
* Primarily developed for linux, but should be fairly portable
* Offers a single API to application developers to access the entire range of supported devices
* Supports imaging - downloading live fingerprint scans from the device
* Includes image processing/matching code
* Supports enrollment/verification - enrolling a print from a known user, and then later comparing a live scan to the enrolled print

%package -n %{pkg_name}-devel
Summary:        Header files, libraries and development documentation for libfprint
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description -n %{pkg_name}-devel
This package contains the header files, static libraries and
development documentation for libfprint. If you like to develop
programs using libfprint, you will need to install this package.

%setup -q -n %{pkg_name}-%{version}

%ifarch x86_64
./configure --prefix=/usr --libdir=/usr/lib64
./configure --prefix=/usr

mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/udev/rules.d

%defattr(-, root, root)

%files -n %{pkg_name}-devel
%defattr(-, root, root)

groupadd fprint

groupdel fprint

* Mon Aug 11 2008
- initial version