2006-06-26 22:51:41 +00:00
|
|
|
%define dropdir %(pkg-config libpcsclite --variable usbdropdir 2>/dev/null)
|
2006-07-10 22:03:11 +00:00
|
|
|
%define libusb_ver 0.1.7
|
2007-02-06 18:45:25 +00:00
|
|
|
%define pcsc_lite_ver 1.3.3
|
2006-06-26 22:51:41 +00:00
|
|
|
|
|
|
|
Name: ccid
|
2008-08-28 00:39:07 +00:00
|
|
|
Version: 1.3.8
|
|
|
|
Release: 1%{dist}
|
2006-06-26 22:51:41 +00:00
|
|
|
Summary: Generic USB CCID smart card reader driver
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
2007-08-21 01:54:40 +00:00
|
|
|
License: LGPLv2+
|
2006-06-26 22:51:41 +00:00
|
|
|
URL: http://pcsclite.alioth.debian.org/ccid.html
|
2008-08-28 00:39:07 +00:00
|
|
|
Source0: http://alioth.debian.org/download.php/1563/%{name}-%{version}.tar.bz2
|
2006-06-26 22:51:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2006-07-10 22:03:11 +00:00
|
|
|
BuildRequires: libusb-devel >= %{libusb_ver}
|
2007-04-30 20:40:29 +00:00
|
|
|
BuildRequires: pcsc-lite-devel >= %{pcsc_lite_ver}
|
2006-07-19 22:27:17 +00:00
|
|
|
Requires(post): initscripts
|
|
|
|
Requires(postun): initscripts
|
2006-07-10 22:03:11 +00:00
|
|
|
Requires: libusb >= %{libusb_ver}
|
2006-11-06 19:46:56 +00:00
|
|
|
Requires: pcsc-lite >= %{pcsc_lite_ver}
|
2006-06-26 22:51:41 +00:00
|
|
|
Provides: pcsc-ifd-handler
|
2006-07-16 18:37:51 +00:00
|
|
|
# 390 does not have libusb or smartCards
|
|
|
|
ExcludeArch: s390 s390x
|
2006-07-10 22:03:11 +00:00
|
|
|
|
2006-06-26 22:51:41 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Generic USB CCID (Chip/Smart Card Interface Devices) driver.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
for f in ChangeLog README ; do
|
|
|
|
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2007-02-07 02:22:01 +00:00
|
|
|
%configure --disable-dependency-tracking --disable-static --enable-twinserial --enable-udev
|
2006-06-26 22:51:41 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2006-11-02 00:37:05 +00:00
|
|
|
#make install_ccidtwin -C src DESTDIR=$RPM_BUILD_ROOT
|
2006-06-26 22:51:41 +00:00
|
|
|
mv $RPM_BUILD_ROOT%{_sysconfdir}/reader.conf ./GemPCTwin.reader.conf
|
2008-08-28 00:39:07 +00:00
|
|
|
mv $RPM_BUILD_ROOT/usr/share/doc/ccid/README_Kobil_mIDentity_switch.txt ./
|
2007-02-07 02:22:01 +00:00
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
|
|
|
|
%{__install} -m 644 src/pcscd_ccid.rules $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/85-pcscd_ccid.rules
|
2006-06-26 22:51:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
2007-02-06 18:45:25 +00:00
|
|
|
[ -x %{_initrddir}/pcscd ] && %{_initrddir}/pcscd status >> /dev/null 2>&1 && %{_sbindir}/pcscd -H > /dev/null 2>&1
|
2006-07-19 22:27:17 +00:00
|
|
|
exit 0
|
2006-06-26 22:51:41 +00:00
|
|
|
|
|
|
|
%postun
|
2007-02-06 18:45:25 +00:00
|
|
|
[ -x %{_initrddir}/pcscd ] && %{_initrddir}/pcscd status >> /dev/null 2>&1 && %{_sbindir}/pcscd -H > /dev/null 2>&1
|
2006-07-19 22:27:17 +00:00
|
|
|
exit 0
|
2006-06-26 22:51:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2008-08-28 00:39:07 +00:00
|
|
|
%doc AUTHORS ChangeLog COPYING README GemPCTwin.reader.conf README_Kobil_mIDentity_switch.txt
|
2006-06-26 22:51:41 +00:00
|
|
|
%{dropdir}/ifd-ccid.bundle/
|
|
|
|
%{dropdir}/serial/
|
2007-02-07 02:22:01 +00:00
|
|
|
%config %{_sysconfdir}/udev/rules.d/85-pcscd_ccid.rules
|
2008-08-28 00:39:07 +00:00
|
|
|
%{_bindir}/RSA_SecurID_getpasswd
|
|
|
|
%{_mandir}/man1/RSA_SecurID_getpasswd.1.gz
|
|
|
|
%{_mandir}/man8/Kobil_mIDentity_switch.8.gz
|
|
|
|
%{_sbindir}/Kobil_mIDentity_switch
|
|
|
|
#%doc /doc/ccid/
|
2006-06-26 22:51:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-08-28 00:39:07 +00:00
|
|
|
* Tue Aug 26 2008 Bob Relyea <rrelyea@redhat.com> - 1.3.8-1
|
|
|
|
- update to ccid 1.3.8
|
|
|
|
|
2008-02-19 22:30:26 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-4
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-08-21 01:54:40 +00:00
|
|
|
* Fri Aug 20 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-3
|
|
|
|
- Update License description to the new Fedora standard
|
|
|
|
|
2007-04-30 20:40:29 +00:00
|
|
|
* Mon Apr 30 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-2
|
|
|
|
- Fix the missed use of the version macro
|
|
|
|
|
2007-02-06 18:45:25 +00:00
|
|
|
* Tue Feb 06 2007 Bob Relyea <rrelyea@redhat.com> - 1.2.1-1
|
|
|
|
- Pick up ccid 1.2.1
|
|
|
|
- use pcscd 'hotplug' feature instead of restarting the daemon
|
2007-02-07 02:22:01 +00:00
|
|
|
- add enable_udev
|
2007-02-06 18:45:25 +00:00
|
|
|
|
2006-11-06 19:46:56 +00:00
|
|
|
* Mon Nov 06 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-2
|
|
|
|
- Fix version macro to remove '-'
|
|
|
|
|
2006-11-02 00:37:05 +00:00
|
|
|
* Thu Nov 02 2006 Bob Relyea <rrelyea@redhat.com> - 1.1.0-1
|
|
|
|
- Pickup ccid 1.1.0
|
|
|
|
|
|
|
|
* Sun Jul 20 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-5
|
|
|
|
- require initscripts for post/postun
|
|
|
|
|
2006-07-16 18:37:51 +00:00
|
|
|
* Sun Jul 16 2006 Florian La Roche <laroche@redhat.com> - 1.0.1-4
|
|
|
|
- fix excludearch line
|
|
|
|
|
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.1-3.1
|
2006-07-12 04:45:27 +00:00
|
|
|
- rebuild
|
|
|
|
|
2006-07-10 22:03:11 +00:00
|
|
|
* Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-3
|
|
|
|
- remove s390 from the build
|
|
|
|
|
2006-06-26 22:51:41 +00:00
|
|
|
* Mon Jun 5 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-2
|
|
|
|
- Move to Fedora Core, removed %%{_dist}.
|
|
|
|
|
|
|
|
* Sat Apr 22 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.1-1
|
|
|
|
- 1.0.1.
|
|
|
|
|
|
|
|
* Mon Mar 6 2006 Ville Skyttä <ville.skytta at iki.fi> - 1.0.0-1
|
|
|
|
- 1.0.0, license changed to LGPL.
|
|
|
|
|
|
|
|
* Wed Feb 15 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-7
|
|
|
|
- Rebuild.
|
|
|
|
|
|
|
|
* Thu Nov 3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-6
|
|
|
|
- Clean up build dependencies.
|
|
|
|
- Convert docs to UTF-8.
|
|
|
|
|
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.4.1-5
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Feb 25 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.4.1-4
|
|
|
|
- Drop Epoch: 0.
|
|
|
|
- Improve summary.
|
|
|
|
- Build with dependency tracking disabled.
|
|
|
|
|
|
|
|
* Thu Jul 1 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.3
|
|
|
|
- Restart pcscd in post(un)install phase if it's available and running.
|
|
|
|
|
|
|
|
* Thu May 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.2
|
|
|
|
- Provide pcsc-ifd-handler (idea from Debian).
|
|
|
|
|
|
|
|
* Sat Feb 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.1-0.fdr.1
|
|
|
|
- Update to 0.4.1.
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.4.0-0.fdr.1
|
|
|
|
- Update to 0.4.0.
|
|
|
|
|
|
|
|
* Wed Nov 5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.2-0.fdr.1
|
|
|
|
- Update to 0.3.2.
|
|
|
|
- Update URL.
|
|
|
|
|
|
|
|
* Thu Oct 16 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.1-0.fdr.1
|
|
|
|
- Update to 0.3.1.
|
|
|
|
|
|
|
|
* Wed Sep 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.3.0-0.fdr.1
|
|
|
|
- Update to 0.3.0.
|
|
|
|
|
|
|
|
* Wed Aug 27 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.2.0-0.fdr.1
|
|
|
|
- Update to 0.2.0.
|
|
|
|
|
|
|
|
* Tue Aug 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.1.0-0.fdr.1
|
|
|
|
- First build.
|