# BEGIN COPYRIGHT BLOCK # Copyright (C) 2005 Red Hat, Inc. # All rights reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation version # 2.1 of the License. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # END COPYRIGHT BLOCK %define coolkey_module "CoolKey PKCS #11 Module" %define nssdb %{_sysconfdir}/pki/nssdb Name: coolkey Version: 1.1.0 Release: 35%{?dist} Summary: CoolKey PKCS #11 module License: LGPLv2 URL: http://directory.fedora.redhat.com/wiki/CoolKey Source: coolkey-%{version}.tar.gz Patch1: coolkey-cache-dir-move.patch Patch2: coolkey-gcc43.patch Patch3: coolkey-latest.patch Patch4: coolkey-simple-bugs.patch Patch5: coolkey-thread-fix.patch Patch6: coolkey-cac.patch Patch7: coolkey-cac-1.patch Patch8: coolkey-pcsc-lite-fix.patch Patch9: coolkey-fix-token-removal-failure.patch Patch10: coolkey-update.patch Patch11: coolkey-more-keys.patch Patch12: coolkey-1.1.0-max-cpu-bug.patch Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf BuildRequires: pcsc-lite-devel BuildRequires: zlib-devel BuildRequires: nss-devel Recommends: opensc Requires: nss-tools Requires: pcsc-lite Requires: pcsc-lite-libs Requires: ccid Provides: CoolKey Openkey Obsoletes: CoolKey Openkey # 390 does not have libusb or smartCards ExcludeArch: s390 s390x %description Linux Driver support for the CoolKey and CAC products. %package devel Summary: CoolKey Applet libraries Group: System Environment/Libraries %description devel Linux Driver support to access the CoolKey applet. %prep %setup -q %patch1 -b .cache.dir.move %patch2 -b .coolkey-gcc43 %patch3 -b .coolkey-latest %patch4 -b .coolkey-simple-bugs %patch5 -b .coolkey-thread-fix %patch6 -b .cac %patch7 -b .cac-1 %patch8 -b .reader-state-fix %patch9 -p1 -b .fix-token-removal-failure %patch10 -p1 -b .coolkey-update %patch11 -p1 -b .coolkey-more-keys %patch12 -p1 -b .max-cpu %build autoconf %configure --with-debug --disable-dependency-tracking --enable-pk11install make %{?_smp_mflags} CFLAGS="$CFLAGS -g -O2 -fno-strict-aliasing $CFLAGS " CXXFLAGS="$CXXFLAGS -g -O2 -fno-strict-aliasing $CFLAGS" %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT ln -s pkcs11/libcoolkeypk11.so $RPM_BUILD_ROOT/%{_libdir} mkdir -p $RPM_BUILD_ROOT/var/cache/coolkey %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig if [ "$1" == "2" ]; then # not for new installs isThere=`modutil -rawlist -dbdir %{nssdb} | grep %{coolkey_module} || echo NO` if [ "$isThere" != "NO" ]; then # Remove from NSS DB in Fedora 26 if [ -x %{_bindir}/modutil ]; then modutil -delete %{coolkey_module} -dbdir %{nssdb} -force || : fi fi fi %files %defattr(-,root,root,-) %doc ChangeLog LICENSE %{_bindir}/pk11install %{_libdir}/libcoolkeypk11.so %{_libdir}/pkcs11 %{_libdir}/libckyapplet.so.1 %{_libdir}/libckyapplet.so.1.0.0 %files devel %{_libdir}/libckyapplet.so %{_libdir}/pkgconfig/libckyapplet.pc %{_includedir}/*.h %changelog * Wed Aug 02 2017 Fedora Release Engineering - 1.1.0-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.1.0-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Mar 09 2017 Jakub Jelen - 1.1.0-33 - Prevent busy loop when removing token (#1430268) * Tue Feb 28 2017 Jakub Jelen - 1.1.0-32 - Remove PKCS#11 library from the NSS DB after update and for new installs (#1421692) * Fri Feb 10 2017 Fedora Release Engineering - 1.1.0-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Jack Magne - 1.1.0-30 - Latest coolkey updates. - Fix to allow more key indexes than just 0 - 9. * Wed Feb 03 2016 Fedora Release Engineering - 1.1.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.1.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 1.1.0-27 - Rebuilt for GCC 5 C++11 ABI change * Sat Aug 16 2014 Fedora Release Engineering - 1.1.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.1.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.1.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed May 22 2013 Ray Strode 1.1.0-23 - Fix token removal issue * Wed Feb 13 2013 Fedora Release Engineering - 1.1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 1.1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering - 1.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 1.1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Oct 19 2010 Ville Skyttä - 1.1.0-18 - Own the %%{_libdir}/pkcs11 dir. * Wed Sep 8 2010 Robert Relyea - 1.1.0-17 - pscs-lite removed SCARD_READERSTATE_A definition. revert to the prefered SCARD_READERSTATE * Wed Jun 23 2010 Jack Magne - 1.1.0-16 - fix possible crash when loading cac certs. * Wed Jun 16 2010 Robert Relyea - 1.1.0-15 - better cac support. * Mon Feb 22 2010 Robert Relyea - 1.1.0-14 - remove dependency on ifd-egate * Tue Jan 5 2010 Robert Relyea - 1.1.0-13 - bump the release number to rebuild * Wed Dec 18 2009 Robert Relyea - 1.1.0-12 - Fix threading issue. Coolkey will now work with non-threaded applications - that don't link with libpthread. * Wed Sep 16 2009 Jack magne - 1.1.0-11 - Misc bug fixes. Resolves: 485032, #250738, #497758. * Fri Sep 11 2009 Jack Magne - 1.1.0-10 - Include latest changes for Gemalto 64K and Safenet 330J. * Fri Jul 24 2009 Fedora Release Engineering - 1.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 1.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Sep 14 2008 Matt Domsch - 1.1.0-7 - BR: nss-devel not mozilla-nss-devel (FTBFS BZ#440753) * Wed Feb 13 2008 Jack magne - 1.1.0-6 - Clean up building with gcc 4.3. * Thu Sep 27 2007 Jack Magne - 1.1.0-5 - Include patch for moving the cache directory to a safe location. - Bug #299481. * Fri Aug 20 2007 Bob Relyea - 1.1.0-4 - Update License description to the new Fedora standard * Thu Jun 21 2007 Kai Engert - 1.1.0-3.1 - rebuild * Tue Jun 5 2007 Bob Relyea - 1.1.0-3 - add build requires, bump version number for make tag. * Thu May 31 2007 Bob Relyea - 1.1.0-2 - Back out RHEL-4 version of spec from CVS, add pcsc-lite-lib requires. * Tue Feb 20 2007 Bob Relyea - 1.1.0-1 - Pick up lates release. * Wed Nov 1 2006 Bob Relyea - 1.0.1-15 - Don't grab the CUID on cac's. Resting the card causes it to - logout of other applications. * Wed Nov 1 2006 Bob Relyea - 1.0.1-14 - Shared memory directory needs to be writeable by all so - coolkey can create caches for any user. (lack of caches - show up in screen savers reactly slowly). * Fri Oct 20 2006 Bob Relyea - 1.0.1-13 - fix login hw race failures * Fri Oct 20 2006 Bob Relyea - 1.0.1-12 - add the dist flag * Wed Oct 18 2006 Bob Relyea - 1.0.1-11 - CAC cards sometimes need to reset before they can get their - initial transaction (problem is noticed on insertion an removal) * Tue Oct 17 2006 Jesse Keating - 1.0.1-10 - Only run pk11install if the binary is there (multilib fun) * Mon Oct 09 2006 Bob Relyea - 1.0.1-9 - use pk11install which does not require loading the module to install it. * Mon Oct 09 2006 Bob Relyea - 1.0.1-8 - pcscd must be running in order to add coolkey. * Thu Oct 4 2006 Bob Relyea - 1.0.1-7 - silence modutil warnings * Thu Sep 30 2006 Bob Relyea - 1.0.1-5 - install and uninstall coolkey in the system secmod.db * Thu Sep 7 2006 Bob Relyea - 1.0.1-4 - make the coolkey token caches persist over application calls. - make a separate cache for each user. * Sun Jul 16 2006 Florian La Roche - 1.0.1-2 - fix excludearch line * Mon Jul 10 2006 Bob Relyea - 1.0.1-1 - Don't require pthread library in coolkey * Mon Jul 10 2006 Bob Relyea - 1.0.0-2 - remove s390 from the build * Mon Jun 5 2006 Bob Relyea - 1.0.0-1 - Initial revision for fedora