File libfprint.spec of Package libfprint

#
# spec file for package libfprint (Version 0.0.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


BuildRequires:  ImageMagick-devel glib2-devel libopenssl-devel libusb-devel pkgconfig

Name:           libfprint
Url:            http://reactivated.net/fprint
License:        LGPL v2.1 only
Group:          Development/Libraries/C and C++
PreReq:         %fillup_prereq
Version:        0.0.6
Release:        2
Summary:        Library for fingerprint reader support
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       glib2 ImageMagick
Recommends:	pam_fp
Source0:        %{name}-%{version}.tar.bz2
Patch0:		libfprint-gcc-g++-thoenig-01.patch
Supplements:    modalias(usb:v08ffp1600d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v08ffp2580d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v08ffp5501d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v1162p0300d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v0483p2015d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v0483p2016d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045ep00bbd*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045ep00bcd*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045ep00bdd*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v045ep00cad*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v05bap0007d*dc*dsc*dp*ic*isc*ip*)
Supplements:    modalias(usb:v05bap000ad*dc*dsc*dp*ic*isc*ip*)

%description
The fprint project aims to plug a gap in the Linux desktop: support for
consumer fingerprint reader devices. The fprint project aims to plug a
gap in the Linux desktop: support for consumer fingerprint reader
devices.

%package -n libfprint0
License:        LGPL v2.1 only
Summary:        Library for fingerprint reader support
Group:          Development/Libraries/C and C++
Provides:       %{name} = %{version}

%description -n libfprint0
The fprint project aims to plug a gap in the Linux desktop: support for
consumer fingerprint reader devices. The fprint project aims to plug a
gap in the Linux desktop: support for consumer fingerprint reader
devices.

%package devel
License:        LGPL v2.1 only
Summary:        Library for fingerprint reader support (developer files)
Requires:       libfprint = %{version} libfprint0 = %{version} glibc-devel libusb-devel glib2-devel ImageMagick-devel libopenssl-devel zlib-devel
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description 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
%patch -p0

%build
./configure CFLAGS="$RPM_OPT_FLAGS"                             \
            --enable-static=no                                  \
            --prefix=%{_prefix}                                 \
            --libdir=%{_libdir}                                 \
            --mandir=%{_mandir}                                 \
            --includedir=%{_includedir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%post -n libfprint0 -p /sbin/ldconfig

%postun -n libfprint0 -p /sbin/ldconfig

%files -n libfprint0
%defattr(-, root, root)
%{_libdir}/%{name}.so.*

%files devel
%defattr(-, root, root)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/fprint.h
%{_libdir}/%{name}.la
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Fri Sep 05 2008 thoenig@suse.de
- initial check-in
openSUSE Build Service is sponsored by