📄 comedi.spec
字号:
Summary: Data Acquisition driver for several DAQ boardsName: comediVersion: 0.7.63Release: 2Copyright: GPLGroup: System Environment/KernelSource: http://www.comedi.org/comedi/download/comedi-0.7.63.tgzPatch: comedi.patchBuildRoot: /var/tmp/%{name}-buildrootrequires: kernel = 2.4.7, kernel-source = 2.4.7provides: comedi%descriptionComedi is a data acquisition driver for Linux. Togetherwith Comedilib, it allows Linux processes to acquire data fromsupported DAQ cards, such as those from National Instruments.%prep%setup -q%patch -p1 -b .buildroot%buildcp /usr/src/linux-2.4/configs/kernel-2.4.7-i686.config /usr/src/linux-2.4/.config#make dep in the kernelcd /usr/src/linux-2.4make dep#is there a better way to get back to the build directory?cd /usr/src/redhat/BUILD/comedi-0.7.63make%install#install also gets called while compiling the RPMrm -rf $RPM_BUILD_ROOTmkdir -p $RPM_BUILD_ROOT/lib/modules/2.4.7-10/comedi/comedi/driversmkdir -p $RPM_BUILD_ROOT/lib/modules/2.4.7-10/comedi/comedi/kcomedilibmkdir -p $RPM_BUILD_ROOT/usr/include#comedi runs depmod which isn't in the path by default#depmod actually needs to be run during the install process.export PATH=$PATH:/sbinmake install#apparently rpm requires all the files it archives to be located#in $RPM_BUILD_ROOT, so we copy over the files we need to savecp /lib/modules/2.4.7-10/comedi $RPM_BUILD_ROOT/lib/modules/2.4.7-10 -rcp /usr/src/redhat/BUILD/comedi-0.7.63/include/linux/comedi.h$RPM_BUILD_ROOT/usr/include/cp /usr/src/redhat/BUILD/comedi-0.7.63/include/linux/comedilib.h$RPM_BUILD_ROOT/usr/include/%post#post gets called on the user's system after the files have been copied over#"make install" does:/sbin/depmod -a#"make dev" does:mknod -m 666 /dev/comedi0 c 98 0mknod -m 666 /dev/comedi1 c 98 1mknod -m 666 /dev/comedi2 c 98 2mknod -m 666 /dev/comedi3 c 98 3%postun#postun is called after the files have been uninstalledrm -f /dev/comedi0rm -f /dev/comedi1rm -f /dev/comedi2rm -f /dev/comedi3%clean#clean can be called after building the package%files%defattr(-,root,root)/lib/modules/2.4.7-10/comedi#/usr/include/comedi.h#/usr/include/comedilib.h%changelog* Wed Feb 20 2002 Tim Ousley <tim.ousley@ni.com>- initial build of comedi RPM
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -