LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libfprint0.spec of Package libfprint0 (Project home:dgege:fprint)

%define pkg_name libfprint
BuildRequires:  libopenssl-devel libusb-devel glib2-devel ImageMagick-devel pkgconfig
Name:           libfprint0
Url:            http://reactivated.net/fprint/wiki/Libfprint
License:        LGPL-2.1
Packager:       Georges A.K. - <georgesak@gmail.com>
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

%description
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.
Features

* 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.

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

%build
%ifarch x86_64
./configure --prefix=/usr --libdir=/usr/lib64
%else
./configure --prefix=/usr
%endif
make

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

%files
%defattr(-, root, root)
%{_libdir}/libfprint.so.0
%{_libdir}/libfprint.so.0.0.0
/etc/udev/rules.d/55-fprint.rules

%files -n %{pkg_name}-devel
%defattr(-, root, root)
%{_includedir}/libfprint/fprint.h
%{_libdir}/libfprint.so
%{_libdir}/libfprint.a
%{_libdir}/libfprint.la
%{_libdir}/pkgconfig/libfprint.pc

%post
groupadd fprint
ldconfig

%postun
groupdel fprint
ldconfig

%changelog
* Mon Aug 11 2008 georgesak@gmail.com
- initial version