%description -n tms-gui
The BEAM and Alpha Data TMS System implements the trajectory measurement system for the
CERN Proton Synchrotron. The TMS GUI applications are GUI test and control
applications for the TMS system.
%prep
%setup -q -n tms
%build
make DEST_DIR=%{buildroot} PREFIX=/usr/tms all
%install
make DEST_DIR=%{buildroot} PREFIX=/usr/tms install
%clean
rm -rf $RPM_BUILD_ROOT
%post
# Update tmsPuServer.conf configuration files
#for ((n=1; n <= 4; n++ )); do
# if [ -x /usr/tms/rootfs-$n ]; then
# d="/usr/tms/rootfs-$n";
# mv $d/etc/tmsPuServer.conf $d/etc/tmsPuServer.conf.bak
# sed -e "s/^ModuleControllerNumber:.*$/ModuleControllerNumber:\t\t${n}/" /etc/tmsPuServer.conf > $d/etc/tmsPuServer.conf
# fi
#done
%files
%defattr(-,root,root,-)
%attr(0755,root,root)
/usr/tms/Makefile
/usr/tms/Makefile.config
/usr/tms/include
/usr/tms/lib
/usr/tms/config
%attr(0755,root,root) /usr/tms/config/tmsSetup
%attr(0755,root,root) /usr/tms/config/tmsSetupModuleController
/usr/tms/bin/bidl
/usr/tms/bin/boapns
/usr/tms/bin/boapnsc
/usr/tms/bin/tmsControl
/usr/tms/bin/tmsPuServer
/usr/tms/bin/tmsServer
/usr/tms/bin/tmsSigGen
/usr/tms/bin/tmsStateGen
/usr/tms/bin/tmsWeb
/usr/tms/bin/tmsRestart
/usr/tms/bin/tmsBackup
/usr/tms/bin/tmsTestData
/usr/tms/bin/tmsWatchdog
/usr/tms/stateTables
/usr/tms/data
/usr/tms/tmsExamples
/usr/tms/html
%config /etc/tmsPuServer.conf