# # spec file for package ESO-MIDAS (Version 07FEBpl1.1) # # Copyright (c) 2007 Matwey V. Kornilov # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # norootforbuild # neededforbuild binutils bzip2 gcc gcc-fortran ncurses-devel openmotif-devel tar xorg-x11-devel Name: eso-midas BuildRequires: ncurses-devel openmotif-devel xorg-x11-proto-devel License: GPL Group: Productivity/Scientific/Astronomy Version: 07FEBpl1.1 Release: 3.1.el5.uson Summary: ESO-MIDAS(tm) (European Southern Observatory Munich Image Data Analysis System) Group: Applications/Scientific Packager: Fernando Avila Castro Source0: %{version}.tar.bz2 Source1: calib_src.tar.bz2 #Source2: demo_data.tar.bz2 Source3: agldoc.tar.bz2 Source4: daophot.ps.bz2 Source5: env.ps.bz2 Source6: ididoc.ps.bz2 Source7: installunix.ps.bz2 Source8: installvms.ps.bz2 Source9: midas-faq.doc.bz2 Source10: README.doc Source11: volume_a.html.tar.bz2 Source12: volume_a.ps.bz2 Source13: volume_b.html.tar.bz2 Source14: volume_b.ps.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Autoreqprov: on %description The ESO-MIDAS(tm) system provides general tools for image processing and data reduction with emphasis on astronomical applications including imaging and special reduction packages for ESO instrumentation at La Silla and the VLT at Paranal. In addition it contains applications packages for stellar and surface photometry, image sharpening and decomposition, statistics and various others. %package -n eso-midas-doc Summary: Documentation for ESO-MIDAS(tm) Group: Documentation/Other Autoreqprov: on %description -n eso-midas-doc This package containts the documentation for ESO-MIDAS(tm): * ASTRONET Graphics library * DAOPHOT II * MIDAS Environment * Image Display Interface * Installation of MIDAS on UNIX Systems * Installation of MIDAS on VMS Systems * MIDAS FAQ * MIDAS User Guide Volume A * MIDAS User Guide Volume B %package -n eso-midas-calib Summary: Calibration data for ESO-MIDAS(tm) Group: Productivity/Scientific/Astronomy Requires: eso-midas = %{version} Autoreqprov: on %description -n eso-midas-calib This package containts the calibration data for ESO-MIDAS(tm). %define prefix /opt/eso-midas %define _prefix %{prefix} %prep %setup -c -n midas -a 1 %build ## ## MIDAS ## # Installation of MIDAS on UNIX Systems # 2.4 The Config Script export MIDVERS=%{version} export MIDASHOME=`pwd` pushd %{version}/install/unix # 2.5 Preinstallation of MIDAS ./preinstall -a # 2.6 Selection of optional packages ./select all # 2.7 Installation of MIDAS ./install1 -a # 2.9 Setup of MIDAS ./setup -a # 2.10 Running MIDAS for the first time mkdir tmp pushd tmp cat < $F.t chmod 0755 $F.t mv $F.t ../../system/unix/$F done popd ## ## Documentation ## mkdir agldoc tar -jxf %{S:3} -C agldoc # ASTRONET Graphics library bunzip2 -c %{S:4} > daophot.ps # DAOPHOT II bunzip2 -c %{S:5} > env.ps # MIDAS Environment bunzip2 -c %{S:6} > ididoc.ps # Image Display Interface bunzip2 -c %{S:7} > installunix.ps # Installation of MIDAS on UNIX Systems bunzip2 -c %{S:8} > installvms.ps # Installation of MIDAS on VMS Systems bunzip2 -c %{S:9} > midas-faq.doc # MIDAS FAQ cp %{S:10} README.doc tar -jxf %{S:11} # MIDAS User Guide Volume A bunzip2 -c %{S:12} > volume_a.ps # tar -jxf %{S:13} # MIDAS User Guide Volume B bunzip2 -c %{S:14} > volume_b.ps # # Black magic find volb -name '*.html.bak' -exec rm '{}' \; mv $RPM_BUILD_DIR/midas/calib/README.calib . %install # Install MIDAS mkdir -p $RPM_BUILD_ROOT/%{prefix} cp -pr $RPM_BUILD_DIR/midas/%{version} $RPM_BUILD_ROOT/%{prefix} # Install calib mkdir -p $RPM_BUILD_ROOT/%{prefix} cp -pr $RPM_BUILD_DIR/midas/calib $RPM_BUILD_ROOT/%{prefix} # Install binaries mkdir -p $RPM_BUILD_ROOT/usr/bin ln -s %{prefix}/%{version}/system/unix/inmidas $RPM_BUILD_ROOT/usr/bin/inmidas ln -s %{prefix}/%{version}/system/unix/gomidas $RPM_BUILD_ROOT/usr/bin/gomidas ln -s %{prefix}/%{version}/system/unix/helpmidas $RPM_BUILD_ROOT/usr/bin/helpmidas ln -s %{prefix}/%{version}/system/unix/drs $RPM_BUILD_ROOT/usr/bin/drs # Install man pages mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1 gzip -9 -n $RPM_BUILD_ROOT%{prefix}/%{version}/system/unix/man1/inmidas.1 gzip -9 -n $RPM_BUILD_ROOT%{prefix}/%{version}/system/unix/man1/gomidas.1 gzip -9 -n $RPM_BUILD_ROOT%{prefix}/%{version}/system/unix/man1/helpmidas.1 gzip -9 -n $RPM_BUILD_ROOT%{prefix}/%{version}/system/unix/man1/readline.1 ln -s %{prefix}/%{version}/system/unix/man1/inmidas.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/inmidas.1.gz ln -s %{prefix}/%{version}/system/unix/man1/gomidas.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/gomidas.1.gz ln -s %{prefix}/%{version}/system/unix/man1/helpmidas.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/helpmidas.1.gz ln -s %{prefix}/%{version}/system/unix/man1/readline.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/readline.1.gz %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %attr(0755,root,root) /usr/bin/inmidas %attr(0755,root,root) /usr/bin/gomidas %attr(0755,root,root) /usr/bin/helpmidas %attr(0755,root,root) /usr/bin/drs /usr/share/man/man1/inmidas.1.gz /usr/share/man/man1/gomidas.1.gz /usr/share/man/man1/helpmidas.1.gz /usr/share/man/man1/readline.1.gz %dir %{prefix} %dir %{prefix}/%{version} %{prefix}/%{version}/* %files -n eso-midas-doc %defattr(-,root,root) %doc agldoc %doc daophot.ps %doc env.ps %doc ididoc.ps %doc installunix.ps %doc installvms.ps %doc midas-faq.doc %doc README.doc %doc vola %doc volume_a.ps %doc volb %doc volume_b.ps %files -n eso-midas-calib %defattr(-,root,root) %doc README.calib %dir %{prefix}/calib %{prefix}/calib/* %changelog * Mon Aug 20 2007 - rebuild for rhel 5 * Tue Jun 05 2007 - matwey.kornilov@gmail.com - initial version