Name: cm2020 Version: 2.4.0beta1.svn20080426 Release: 13mamba Summary: Driver for the Omnikey Cardman 2020 USB smart card reader Group: System/Kernel and Hardware/Drivers Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://svn.gula.es/cm2020 # svn co http://svn.gula.es/cm2020 Source: http://svn.gula.es/cm2020/cm2020-%{version}.tar.bz2 Patch0: %{name}-2.4.0beta1.svn20080426-kernel-2.6.37.patch Patch1: %{name}-2.4.0beta1.svn20080426-kernel-2.6.39.patch License: GPL Obsoletes: kernel-mamba-64GB-cm2020 Obsoletes: kernel-mamba-64GB-rt-cm2020 Obsoletes: kernel-mamba-cm2020 ## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-END Requires(post): dkms BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Driver for the Omnikey Cardman 2020 USB smart card reader. %prep %setup -q -n %{name} %patch0 -p1 %patch1 -p1 cd src/cm2020 mv makefile.26 Makefile %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" # dkms install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version} cp -a src/* %{buildroot}%{_prefix}/src/%{name}-%{version} rm -rf %{buildroot}%{_prefix}/src/%{name}-%{version}/cm2020/.svn cat > %{buildroot}%{_prefix}/src/%{name}-%{version}/dkms.conf << _EOF PACKAGE_NAME=%{name} PACKAGE_VERSION=%{version} MAKE="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build/cm2020" CLEAN="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build/cm2020 clean" BUILT_MODULE_NAME=cardman BUILT_MODULE_LOCATION=cm2020/ DEST_MODULE_LOCATION=/extra/drivers/misc/ REMAKE_INITRD=no AUTOINSTALL=yes _EOF %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %preun dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade : %posttrans if [ $1 -ge 1 ]; then # clean any legacy alternatives symlink dkms remove -q -m %{name} -v %{version} --all --rpm_safe_upgrade dkms add -q -m %{name} -v %{version} dkms install -q -m %{name} -v %{version} fi : %files %defattr(-,root,root) %dir %{_prefix}/src/%{name}-%{version} %{_prefix}/src/%{name}-%{version}/cardman.h %{_prefix}/src/%{name}-%{version}/dkms.conf %dir %{_prefix}/src/%{name}-%{version}/cm2020 %{_prefix}/src/%{name}-%{version}/cm2020/* %doc COPYING README %changelog * Tue Jul 01 2014 Silvan Calarco 2.4.0beta1.svn20080426-13mamba - switched to dkms * Sun Sep 15 2013 Silvan Calarco 2.4.0beta1.svn20080426-12mamba - kernel 3.10 rebuild * Fri Jan 04 2013 Silvan Calarco 2.4.0beta1.svn20080426-11mamba - kernel 3.4 rebuild * Mon Nov 05 2012 Silvan Calarco 2.4.0beta1.svn20080426-10mamba - bump release up for milestone2 update * Sat Oct 27 2012 Silvan Calarco 2.4.0beta1.svn20080426-9mamba - kernel 3.6 rebuild * Sat Jun 30 2012 Silvan Calarco 2.4.0beta1.svn20080426-8mamba - automatic update by autodist * Sun Feb 12 2012 Silvan Calarco 2.4.0beta1.svn20080426-7mamba - automatic update by autodist * Wed Jan 25 2012 Silvan Calarco 2.4.0beta1.svn20080426-6mamba - automatic update by autodist * Sun Sep 04 2011 Silvan Calarco 2.4.0beta1.svn20080426-5mamba - automatic update by autodist * Fri Aug 19 2011 Silvan Calarco 2.4.0beta1.svn20080426-4mamba - automatic update by autodist * Wed Apr 20 2011 Silvan Calarco 2.4.0beta1.svn20080426-3mamba - kernel 2.6.38 rebuild * Mon Feb 07 2011 Silvan Calarco 2.4.0beta1.svn20080426-2mamba - automatic update by autodist * Fri Dec 17 2010 Silvan Calarco 2.4.0beta1.svn20080426-1mamba - package created out of kernel-extramodules