# 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: %mkrel 5 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 Group: System/Libraries BuildRequires: autoconf BuildRequires: pkgconfig(libpcsclite) BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(nss) Requires: nss Requires: pcsc-lite 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/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 %build autoreconf -vfi %configure2_5x --with-debug --disable-dependency-tracking --enable-pk11install %make_build CFLAGS="$CFLAGS -g -O2 -fno-strict-aliasing $CFLAGS " CXXFLAGS="$CXXFLAGS -g -O2 -fno-strict-aliasing $CFLAGS" %install %make_install ln -s pkcs11/libcoolkeypk11.so $RPM_BUILD_ROOT/%{_libdir} mkdir -p $RPM_BUILD_ROOT/var/cache/coolkey %post isThere=`modutil -rawlist -dbdir %{nssdb} | grep %{coolkey_module} || echo NO` if [ "$isThere" == "NO" ]; then if [ -x %{_bindir}/pk11install ]; then pk11install -p %{nssdb} 'name=%{coolkey_module} library=libcoolkeypk11.so' ||: fi fi %postun if [ $1 -eq 0 ]; then modutil -delete %{coolkey_module} -dbdir %{nssdb} -force || : fi %files %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 * Sun Sep 23 2018 umeabot <umeabot> 1.1.0-5.mga7 (not released yet) + Revision: 1296792 - Mageia 7 Mass Rebuild * Tue Sep 12 2017 cjw <cjw> 1.1.0-4.mga7 + Revision: 1153104 - use configure2_5x instead of configure macro * Mon Apr 10 2017 ovitters <ovitters> 1.1.0-3.mga6 + Revision: 1096299 - fix requires * Mon Apr 10 2017 ovitters <ovitters> 1.1.0-2.mga6 + Revision: 1096291 - fix requires * Mon Apr 10 2017 ovitters <ovitters> 1.1.0-1.mga6 + Revision: 1096273 - clean spec - from fedora * Thu Feb 04 2016 Jack Magne <jmagne@redhat.com> - 1.1.0-30 - Latest coolkey updates. - Fix to allow more key indexes than just 0 - 9. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.1.0-27 - Rebuilt for GCC 5 C++11 ABI change * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed May 22 2013 Ray Strode <rstrode@redhat.com> 1.1.0-23 - Fix token removal issue * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Oct 19 2010 Ville Skyttä <ville.skytta@iki.fi> - 1.1.0-18 - Own the %%{_libdir}/pkcs11 dir. * Wed Sep 8 2010 Robert Relyea <rrelyea@redhat.com> - 1.1.0-17 - pscs-lite removed SCARD_READERSTATE_A definition. revert to the prefered SCARD_READERSTATE * Wed Jun 23 2010 Jack Magne <jmagne@redhat.com> - 1.1.0-16 - fix possible crash when loading cac certs. * Wed Jun 16 2010 Robert Relyea <rrelyea@redhat.com> - 1.1.0-15 - better cac support. * Mon Feb 22 2010 Robert Relyea <rrelyea@redhat.com> - 1.1.0-14 - remove dependency on ifd-egate * Tue Jan 5 2010 Robert Relyea <rrelyea@redhat.com> - 1.1.0-13 - bump the release number to rebuild * Wed Dec 18 2009 Robert Relyea <rrelyea@redhat.com> - 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 <jmagne@redhat.com> - 1.1.0-11 - Misc bug fixes. Resolves: 485032, #250738, #497758. * Fri Sep 11 2009 Jack Magne <jmagne@redhat.com> - 1.1.0-10 - Include latest changes for Gemalto 64K and Safenet 330J. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Sep 14 2008 Matt Domsch <mdomsch@fedoraproject.org> - 1.1.0-7 - BR: nss-devel not mozilla-nss-devel (FTBFS BZ#440753) * Wed Feb 13 2008 Jack magne <jmagne@redhat.com> - 1.1.0-6 - Clean up building with gcc 4.3. * Thu Sep 27 2007 Jack Magne <jmagne@redhat.com> - 1.1.0-5 - Include patch for moving the cache directory to a safe location. - Bug #299481. * Fri Aug 20 2007 Bob Relyea <rrelyea@redhat.com> - 1.1.0-4 - Update License description to the new Fedora standard * Thu Jun 21 2007 Kai Engert <kengert@redhat.com> - 1.1.0-3.1 - rebuild * Tue Jun 5 2007 Bob Relyea <rrelyea@redhat.com> - 1.1.0-3 - add build requires, bump version number for make tag. * Thu May 31 2007 Bob Relyea <rrelyea@redhat.com> - 1.1.0-2 - Back out RHEL-4 version of spec from CVS, add pcsc-lite-lib requires. * Tue Feb 20 2007 Bob Relyea <rrelyea@redhat.com> - 1.1.0-1 - Pick up lates release. * Wed Nov 1 2006 Bob Relyea <rrelyea@redhat.com> - 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 <rrelyea@redhat.com> - 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 <rrelyea@redhat.com> - 1.0.1-13 - fix login hw race failures * Fri Oct 20 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-12 - add the dist flag * Wed Oct 18 2006 Bob Relyea <rrelyea@redhat.com> - 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 <jkeating@redhat.com> - 1.0.1-10 - Only run pk11install if the binary is there (multilib fun) * Mon Oct 09 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-9 - use pk11install which does not require loading the module to install it. * Mon Oct 09 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-8 - pcscd must be running in order to add coolkey. * Thu Oct 4 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-7 - silence modutil warnings * Thu Sep 30 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-5 - install and uninstall coolkey in the system secmod.db * Thu Sep 7 2006 Bob Relyea <rrelyea@redhat.com> - 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 <laroche@redhat.com> - 1.0.1-2 - fix excludearch line * Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.1-1 - Don't require pthread library in coolkey * Mon Jul 10 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.0-2 - remove s390 from the build * Mon Jun 5 2006 Bob Relyea <rrelyea@redhat.com> - 1.0.0-1 - Initial revision for fedora