rpms/thinkfinger/FC-6 thinkfinger-0.2.2-bufover.patch, NONE, 1.1 thinkfinger.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Julian Sikorski (belegdol) fedora-extras-commits at redhat.com
Tue Feb 20 19:22:37 UTC 2007


Author: belegdol

Update of /cvs/extras/rpms/thinkfinger/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11455

Modified Files:
	.cvsignore sources 
Added Files:
	thinkfinger-0.2.2-bufover.patch thinkfinger.spec 
Log Message:
Initial import

thinkfinger-0.2.2-bufover.patch:

--- NEW FILE thinkfinger-0.2.2-bufover.patch ---
--- thinkfinger-0.2.2/libthinkfinger/libthinkfinger.c.bufover	2007-02-19 21:33:11.000000000 +0000
+++ thinkfinger-0.2.2/libthinkfinger/libthinkfinger.c	2007-02-19 21:35:23.000000000 +0000
@@ -464,7 +464,7 @@
 		goto out;
 	}
 
-	filesize = read (tf->fd, ctrlbuf+header, 10240);
+	filesize = read (tf->fd, ctrlbuf+header, sizeof(ctrlbuf)-header);
 	filesize -= 2; // HACK!
 	*((short *) (ctrlbuf+8)) = filesize + 28;
 	ctrlbuf[5] = (filesize+20511) >> 8;


--- NEW FILE thinkfinger.spec ---
Name:           thinkfinger
Version:        0.2.2
Release:        4%{?dist}
Summary:        A driver for the UPEK/SGS Thomson Microelectronics fingerprint reader
Group:          System Environment/Base
License:        GPL
URL:            http://thinkfinger.sourceforge.net
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:         thinkfinger-0.2.2-bufover.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  libusb-devel
BuildRequires:  pam-devel
BuildRequires:  doxygen

%description
ThinkFinger is a driver for the UPEK/SGS Thomson Microelectronics fingerprint
reader (USB ID 0483:2016). The device is being found either as a standalone USB
device, built into USB keyboards or built into laptops.  The following laptop
vendors are using the device:

- Dell
- IBM/Lenovo
- Toshiba

Toshiba is shipping their laptops either with the UPEK/SGS Thomson
Microelectronics fingerprint reader or with a fingerprint reader built by
AuthenTec. The AuthenTec fingerprint reader is *not* supported by ThinkFinger.

SONY laptops with the UPEK/SGS Thomson Microelectronics fingerprint reader are
not supported.

%package        devel
Summary:        Development package for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}
Requires:       libusb-devel
Requires:       pkgconfig

%description    devel
ThinkFinger is a driver for the UPEK/SGS Thomson Microelectronics fingerprint
reader (USB ID 0483:2016). The device is being found either as a standalone USB
device, built into USB keyboards or built into laptops.  The following laptop
vendors are using the device:

- Dell
- IBM/Lenovo
- Toshiba

Toshiba is shipping their laptops either with the UPEK/SGS Thomson
Microelectronics fingerprint reader or with a fingerprint reader built by
AuthenTec. The AuthenTec fingerprint reader is *not* supported by ThinkFinger.

SONY laptops with the UPEK/SGS Thomson Microelectronics fingerprint reader are
not supported. This package contains development files for %{name}.

%prep
%setup -q
%patch0 -p1


%build
%configure --disable-static\
           --with-securedir=/%{_lib}/security
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

#kill libtool archives
rm -f $RPM_BUILD_ROOT%{_libdir}/libthinkfinger.la

#create folder where fingerprints will be stored
%{__mkdir} -p $RPM_BUILD_ROOT%{_sysconfdir}/pam_thinkfinger

#fix permissions on pam_thinkfinger.so
chmod +x $RPM_BUILD_ROOT/%{_lib}/security/pam_thinkfinger.so


%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/libthinkfinger.so.*
/%{_lib}/security/pam_thinkfinger.so
%{_sbindir}/tf-tool
%{_mandir}/man1/tf-tool.1.gz
%{_mandir}/man8/pam_thinkfinger.8.gz
%{_sysconfdir}/pam_thinkfinger

%files devel
%defattr(-,root,root,-)
%doc docs/autodocs/html/*
%{_includedir}/libthinkfinger.h
%{_libdir}/libthinkfinger.so
%{_libdir}/pkgconfig/libthinkfinger.pc



%changelog
* Tue Feb 20 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.2.2-4
- Fixed Source0 URL

* Mon Feb 19 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.2.2-3
- Added libusb-devel to -devel subpackage Requires

* Mon Feb 19 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.2.2-2
- Fixed stripping problem properly

* Mon Feb 19 2007 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.2.2-1
- Initial RPM release

Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/thinkfinger/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	20 Feb 2007 18:18:07 -0000	1.1
+++ .cvsignore	20 Feb 2007 19:22:05 -0000	1.2
@@ -0,0 +1 @@
+thinkfinger-0.2.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/thinkfinger/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	20 Feb 2007 18:18:07 -0000	1.1
+++ sources	20 Feb 2007 19:22:05 -0000	1.2
@@ -0,0 +1 @@
+82c3b74c369fc231379d48af9e8ff851  thinkfinger-0.2.2.tar.gz




More information about the fedora-extras-commits mailing list