⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mkrpm.sh

📁 FreeWRLduneInputDevice和FreeWRL一起可以让用户用带有6DoF的输入设备检索3D VRML/X3D数据。它基于FreeWRL的"/tmp/inpdev"扩展传感器输入接口和w
💻 SH
字号:
#!/bin/sh#set -xRPM_SRC_LIST="rpm RPM redhat"unset MKRPM_SRCfor i in $RPM_SRC_LIST ; do    if test -d /usr/src/$i/SOURCES ; then      MKRPM_SRC=/usr/src/$i/SOURCES   fidoneif test "$MKRPM_SRC" = "" ; then   echo -n non of typical rpm source directories 1>&2   for i in $RPM_SRC_LIST ; do        echo -n " " /usr/src/$i/SOURCES 1>&2    done   echo " " found 1>&2    echo extend variable RPM_SRC_LIST in $0 for your system 1>&2   exit 1fiVERSION=`sh ../../batch/getversion.sh`(cd ../../.. && cp -r FreeWRLduneInputDevice-$VERSION /tmp && \cd /tmp/FreeWRLduneInputDevice-$VERSION && make realclean) && \(cd /tmp && tar -cpf - FreeWRLduneInputDevice-$VERSION) | \gzip -c > $MKRPM_SRC/FreeWRLduneInputDevice-$VERSION.tar.gzRPM_BUILD_ROOT='$RPM_BUILD_ROOT'RPM_OPT_FLAGS='$RPM_OPT_FLAGS'rm -f /tmp/FreeWRLduneInputDevice-$VERSION.speccat > /tmp/FreeWRLduneInputDevice-$VERSION.spec << EOT Summary: A graphical VRML97 editor and animation tool in developmentName: FreeWRLduneInputDeviceVersion: $VERSIONRelease: 1Copyright: GPLGroup: Applications/MultimediaSource: http://www.csv.ica.uni-stuttgart.de/vrml/dune/FreeWRLduneInputDevice-$VERSION.tar.gzBuildRoot: /var/tmp/%{name}-buildroot%descriptionThe FreeWRLduneInputDevice program is a inputdevice driver for the FreeWRL vrml97/X3D browser.It is based on FreeWRL's "/tmp/inpdev" joystick input interface and white_dune's inputdevice mechanism.Currently supported devices are:6D joystick devices (e.g. Logitech Wingman Rumblepad)        supported by the Linux joystick interfaceLabTec Spaceball         supported by libsball (libsball is software developed by John E. Stone)Ascension Flock of Birds magnetic headtracker        supported by a driver based on sourcecode from Kevin Meinert/VRJugglerAny device supported by the X11 Xinput protocol        supported by the Xi library%prep%setup -q%build./configure make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"%installrm -rf $RPM_BUILD_ROOTmkdir -p $RPM_BUILD_ROOT/usr/X11R6/binmkdir -p $RPM_BUILD_ROOT/usr/share/man/man1install -s -m 755 FreeWRLduneInputDevice $RPM_BUILD_ROOT/usr/X11R6/bin/FreeWRLduneInputDeviceinstall -m 644 FreeWRLduneInputDevice.1 $RPM_BUILD_ROOT/usr/share/man/man1/FreeWRLduneInputDevice.1%cleanrm -rf $RPM_BUILD_ROOT%files%defattr(-,root,root)%doc README COPYING commandline_examples/usr/X11R6/bin/FreeWRLduneInputDevice/usr/share/man/man1/FreeWRLduneInputDevice.1*EOTrpm -ba /tmp/FreeWRLduneInputDevice-$VERSION.spec

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -