Summary: Software Package CMT
Name: CMT
Version: %{_version}
Release: 1
Source: %{name}%{version}.tar.gz
Buildroot: %{_topdir}/BUILD
URL: http://www.cmtsite.org/
Copyright: LAL
Group: Applications
Packager: CMT
Prefix: /CMT

%description
CMT.

%prep
echo doing prep
%setup -c -n %{name}/%{version}

%build
CMTROOT=`(cd ../; pwd)`; export CMTROOT
cd ${RPM_BUILD_DIR}/%{name}/%{version}/mgr
gmake CMTBIN=Linux

%install
cd ${RPM_BUILD_DIR}/%{name}/%{version}/mgr
./INSTALL

%post
echo doing post at ${RPM_INSTALL_PREFIX}
cd ${RPM_INSTALL_PREFIX}/%{version}/mgr
./INSTALL


%files
%defattr(-,root,root)
%{prefix}/%{version}/fragments/application
%{prefix}/%{version}/fragments/application_header
%{prefix}/%{version}/fragments/application_launcher
%{prefix}/%{version}/fragments/application_launcher_header
%{prefix}/%{version}/fragments/application_launcher_trailer
%{prefix}/%{version}/fragments/buildproto
%{prefix}/%{version}/fragments/c
%{prefix}/%{version}/fragments/c_library
%{prefix}/%{version}/fragments/check_application
%{prefix}/%{version}/fragments/check_application_header
%{prefix}/%{version}/fragments/check_java
%{prefix}/%{version}/fragments/cleanup
%{prefix}/%{version}/fragments/cleanup_application
%{prefix}/%{version}/fragments/cleanup_header
%{prefix}/%{version}/fragments/cleanup_java
%{prefix}/%{version}/fragments/cleanup_library
%{prefix}/%{version}/fragments/cleanup_objects
%{prefix}/%{version}/fragments/cmt_action_runner
%{prefix}/%{version}/fragments/cmt_action_runner_header
%{prefix}/%{version}/fragments/constituent
%{prefix}/%{version}/fragments/constituents_header
%{prefix}/%{version}/fragments/constituents_trailer
%{prefix}/%{version}/fragments/cpp
%{prefix}/%{version}/fragments/cpp_library
%{prefix}/%{version}/fragments/dependencies
%{prefix}/%{version}/fragments/dependencies_and_triggers
%{prefix}/%{version}/fragments/document_header
%{prefix}/%{version}/fragments/dsp_all
%{prefix}/%{version}/fragments/dvi
%{prefix}/%{version}/fragments/dsp_application_header
%{prefix}/%{version}/fragments/dsp_contents
%{prefix}/%{version}/fragments/dsp_library_header
%{prefix}/%{version}/fragments/dsp_shared_library_header
%{prefix}/%{version}/fragments/dsp_trailer
%{prefix}/%{version}/fragments/dsp_windows_header
%{prefix}/%{version}/fragments/dsw_all_project
%{prefix}/%{version}/fragments/dsw_all_project_dependency
%{prefix}/%{version}/fragments/dsw_all_project_header
%{prefix}/%{version}/fragments/dsw_all_project_trailer
%{prefix}/%{version}/fragments/dsw_header
%{prefix}/%{version}/fragments/dsw_project
%{prefix}/%{version}/fragments/dsw_trailer
%{prefix}/%{version}/fragments/fortran
%{prefix}/%{version}/fragments/fortran_library
%{prefix}/%{version}/fragments/generator
%{prefix}/%{version}/fragments/generator_header
%{prefix}/%{version}/fragments/group
%{prefix}/%{version}/fragments/install_includes
%{prefix}/%{version}/fragments/install_includes_header
%{prefix}/%{version}/fragments/installer
%{prefix}/%{version}/fragments/installer_header
%{prefix}/%{version}/fragments/jar
%{prefix}/%{version}/fragments/jar_header
%{prefix}/%{version}/fragments/java
%{prefix}/%{version}/fragments/java_copy
%{prefix}/%{version}/fragments/java_header
%{prefix}/%{version}/fragments/lex
%{prefix}/%{version}/fragments/lex_library
%{prefix}/%{version}/fragments/library
%{prefix}/%{version}/fragments/library_header
%{prefix}/%{version}/fragments/library_no_share
%{prefix}/%{version}/fragments/make_header
%{prefix}/%{version}/fragments/make_setup
%{prefix}/%{version}/fragments/make_setup_header
%{prefix}/%{version}/fragments/make_setup_nmake
%{prefix}/%{version}/fragments/os9
%{prefix}/%{version}/fragments/os9_header
%{prefix}/%{version}/fragments/protos_header
%{prefix}/%{version}/fragments/readme
%{prefix}/%{version}/fragments/readme_header
%{prefix}/%{version}/fragments/readme_trailer
%{prefix}/%{version}/fragments/readme_use
%{prefix}/%{version}/fragments/sln_dependency_header
%{prefix}/%{version}/fragments/sln_dependency_project
%{prefix}/%{version}/fragments/sln_dependency_trailer
%{prefix}/%{version}/fragments/sln_header
%{prefix}/%{version}/fragments/sln_project
%{prefix}/%{version}/fragments/sln_project_config
%{prefix}/%{version}/fragments/sln_trailer
%{prefix}/%{version}/fragments/tex
%{prefix}/%{version}/fragments/tex_header
%{prefix}/%{version}/fragments/vcproj_all
%{prefix}/%{version}/fragments/vcproj_application_header
%{prefix}/%{version}/fragments/vcproj_contents
%{prefix}/%{version}/fragments/vcproj_directory_header
%{prefix}/%{version}/fragments/vcproj_directory_trailer
%{prefix}/%{version}/fragments/vcproj_library_header
%{prefix}/%{version}/fragments/vcproj_trailer
%{prefix}/%{version}/fragments/yacc
%{prefix}/%{version}/fragments/yacc_library
%{prefix}/%{version}/fragments/nmake/application
%{prefix}/%{version}/fragments/nmake/application_header
%{prefix}/%{version}/fragments/nmake/c
%{prefix}/%{version}/fragments/nmake/c_library
%{prefix}/%{version}/fragments/nmake/check_application
%{prefix}/%{version}/fragments/nmake/check_application_header
%{prefix}/%{version}/fragments/nmake/check_java
%{prefix}/%{version}/fragments/nmake/cleanup
%{prefix}/%{version}/fragments/nmake/cleanup_application
%{prefix}/%{version}/fragments/nmake/cleanup_header
%{prefix}/%{version}/fragments/nmake/cleanup_java
%{prefix}/%{version}/fragments/nmake/cleanup_library
%{prefix}/%{version}/fragments/nmake/cleanup_objects
%{prefix}/%{version}/fragments/nmake/cmt_action_runner_header
%{prefix}/%{version}/fragments/nmake/constituent
%{prefix}/%{version}/fragments/nmake/constituents_header
%{prefix}/%{version}/fragments/nmake/constituents_trailer
%{prefix}/%{version}/fragments/nmake/cpp
%{prefix}/%{version}/fragments/nmake/cpp_library
%{prefix}/%{version}/fragments/nmake/dependencies
%{prefix}/%{version}/fragments/nmake/dependencies_and_triggers
%{prefix}/%{version}/fragments/nmake/fortran
%{prefix}/%{version}/fragments/nmake/fortran_library
%{prefix}/%{version}/fragments/nmake/generator_header
%{prefix}/%{version}/fragments/nmake/group
%{prefix}/%{version}/fragments/nmake/install_includes_header
%{prefix}/%{version}/fragments/nmake/installer
%{prefix}/%{version}/fragments/nmake/installer_header
%{prefix}/%{version}/fragments/nmake/jar
%{prefix}/%{version}/fragments/nmake/jar_header
%{prefix}/%{version}/fragments/nmake/java
%{prefix}/%{version}/fragments/nmake/java_copy
%{prefix}/%{version}/fragments/nmake/java_header
%{prefix}/%{version}/fragments/nmake/lex
%{prefix}/%{version}/fragments/nmake/lex_library
%{prefix}/%{version}/fragments/nmake/library
%{prefix}/%{version}/fragments/nmake/library_header
%{prefix}/%{version}/fragments/nmake/library_no_share
%{prefix}/%{version}/fragments/nmake/make_header
%{prefix}/%{version}/fragments/nmake/protos_header
%{prefix}/%{version}/fragments/nmake/yacc
%{prefix}/%{version}/fragments/nmake/yacc_library
%{prefix}/%{version}/mgr/CMT.pacman
%{prefix}/%{version}/mgr/CMT.spec
%{prefix}/%{version}/mgr/ChangeLog.php
%{prefix}/%{version}/mgr/INSTALL
%{prefix}/%{version}/mgr/INSTALL.bat
%{prefix}/%{version}/mgr/Makefile
%{prefix}/%{version}/mgr/NMake
%{prefix}/%{version}/mgr/README
%{prefix}/%{version}/mgr/README.html
%{prefix}/%{version}/mgr/cmt.make
%{prefix}/%{version}/mgr/afs_set_acls.sh
%{prefix}/%{version}/mgr/build_from_rpm.sh
%{prefix}/%{version}/mgr/cmt
%{prefix}/%{version}/mgr/cmt.nmake
%{prefix}/%{version}/mgr/cmt_export.sh
%{prefix}/%{version}/mgr/cmt_CC_version.sh
%{prefix}/%{version}/mgr/cmt_algorithms.cxx
%{prefix}/%{version}/mgr/cmt_build_deps.sh
%{prefix}/%{version}/mgr/cmt_build_release.sh
%{prefix}/%{version}/mgr/cmt_buildcvsinfos.bat
%{prefix}/%{version}/mgr/cmt_buildcvsinfos.py
%{prefix}/%{version}/mgr/cmt_buildcvsinfos.sh
%{prefix}/%{version}/mgr/cmt_buildcvsinfos2.sh
%{prefix}/%{version}/mgr/cmt_cxx_version.sh
%{prefix}/%{version}/mgr/cmt_dcc_version.sh
%{prefix}/%{version}/mgr/cmt_dependencies.make
%{prefix}/%{version}/mgr/cmt_dependencies.nmake
%{prefix}/%{version}/mgr/cmt_filter_version.sh
%{prefix}/%{version}/mgr/cmt_gcc_version.sh
%{prefix}/%{version}/mgr/cmt_genmakeos9.sh
%{prefix}/%{version}/mgr/cmt_install_action.bat
%{prefix}/%{version}/mgr/cmt_install_action.sh
%{prefix}/%{version}/mgr/cmt_installdir_action.bat
%{prefix}/%{version}/mgr/cmt_installdir_excludes.txt
%{prefix}/%{version}/mgr/cmt_linux_version.sh
%{prefix}/%{version}/mgr/cmt_make_cpp_shlib.sh
%{prefix}/%{version}/mgr/cmt_make_shlib.bat
%{prefix}/%{version}/mgr/cmt_make_shlib.sh
%{prefix}/%{version}/mgr/cmt_make_shlib_common.sh
%{prefix}/%{version}/mgr/cmt_mount_filter
%{prefix}/%{version}/mgr/cmt_os9tounix.sh
%{prefix}/%{version}/mgr/cmt_remote
%{prefix}/%{version}/mgr/cmt_system.sh
%{prefix}/%{version}/mgr/cmt_tar_export.sh
%{prefix}/%{version}/mgr/cmt_uninstall_action.bat
%{prefix}/%{version}/mgr/cmt_uninstall_action.sh
%{prefix}/%{version}/mgr/cmt_uninstalldir_action.bat
%{prefix}/%{version}/mgr/cmt_unixtoos9.sh
%{prefix}/%{version}/mgr/cmt_unixtowin.sh
%{prefix}/%{version}/mgr/cmt_which.sh
%{prefix}/%{version}/mgr/cmt_wintounix.sh
%{prefix}/%{version}/mgr/cmtsh.sh
%{prefix}/%{version}/mgr/install.mak
%{prefix}/%{version}/mgr/install_from_rpm.sh
%{prefix}/%{version}/mgr/package.nmake
%{prefix}/%{version}/mgr/requirements
%{prefix}/%{version}/mgr/srt2cmt.sh
%{prefix}/%{version}/mgr/tag.nmake
%{prefix}/%{version}/mgr/setup.csh
%{prefix}/%{version}/mgr/setup.sh
%{prefix}/%{version}/mgr/cleanup.csh
%{prefix}/%{version}/mgr/cleanup.sh
%{prefix}/%{version}/mgr/cmt_path.make
%{prefix}/%{version}/mgr/VisualC_cmt.nmake
%{prefix}/%{version}/mgr/cmt_filter3_version.sh
%{prefix}/%{version}/src/Makefile
%{prefix}/%{version}/src/Makefile.core
%{prefix}/%{version}/src/Makefile.header
%{prefix}/%{version}/src/NMake
%{prefix}/%{version}/src/NMakefile.core
%{prefix}/%{version}/src/NMakefile.header
%{prefix}/%{version}/src/cleanup.csh
%{prefix}/%{version}/src/cleanup.sh
%{prefix}/%{version}/src/demo/demo1.cmt
%{prefix}/%{version}/src/demo/scenario.awk
%{prefix}/%{version}/src/demo/tprivate.cmt
%{prefix}/%{version}/src/demo/tprivate.out
%{prefix}/%{version}/src/demo/tproject.cmt
%{prefix}/%{version}/src/demo/demoA/A.java
%{prefix}/%{version}/src/demo/demoA/demoA.cxx
%{prefix}/%{version}/src/demo/demoA/demoA.h
%{prefix}/%{version}/src/demo/demoA/init.bat
%{prefix}/%{version}/src/demo/demoA/init.csh
%{prefix}/%{version}/src/demo/demoA/init.sh
%{prefix}/%{version}/src/demo/demoA/requirements
%{prefix}/%{version}/src/demo/demoA/fragments/rename
%{prefix}/%{version}/src/demo/demoA/fragments/rename_header
%{prefix}/%{version}/src/demo/demoA/fragments/nmake/rename
%{prefix}/%{version}/src/demo/demoA/fragments/nmake/rename_header
%{prefix}/%{version}/src/demo/demoB/B.java
%{prefix}/%{version}/src/demo/demoB/demoB.cxx
%{prefix}/%{version}/src/demo/demoB/init.bat
%{prefix}/%{version}/src/demo/demoB/init.csh
%{prefix}/%{version}/src/demo/demoB/init.sh
%{prefix}/%{version}/src/demo/demoB/requirements
%{prefix}/%{version}/src/demo/demoC/C1.cxx
%{prefix}/%{version}/src/demo/demoC/C2.cxx
%{prefix}/%{version}/src/demo/demoC/C3.cxx
%{prefix}/%{version}/src/demo/demoC/demoC.cxx
%{prefix}/%{version}/src/demo/demoC/requirements
%{prefix}/%{version}/src/constituents.make
%{prefix}/%{version}/src/constituents.nmake
%{prefix}/%{version}/src/lex.make
%{prefix}/%{version}/src/os9make.header
%{prefix}/%{version}/src/setup.bat
%{prefix}/%{version}/src/setup.csh
%{prefix}/%{version}/src/setup.sh
%{prefix}/%{version}/src/setup.tcsh
%{prefix}/%{version}/src/setup.zsh
%{prefix}/%{version}/src/yacc.make
%{prefix}/%{version}/Linux/cmt
%{prefix}/%{version}/Linux/cmt.exe

