[BACK]Return to openxm-binary.spec.in CVS log [TXT][DIR] Up to [local] / OpenXM / misc / packages / Linux / RPM

File: [local] / OpenXM / misc / packages / Linux / RPM / openxm-binary.spec.in (download)

Revision 1.5, Tue Aug 29 06:48:48 2000 UTC (23 years, 9 months ago) by takayama
Branch: MAIN
Changes since 1.4: +6 -6 lines

Changes of spec files for RPM for 1.1.3.
New target:  build-source-rpm

# $OpenXM: OpenXM/misc/packages/Linux/RPM/openxm-binary.spec.in,v 1.5 2000/08/29 06:48:48 takayama Exp $
#  openxm-binary.spec.in
#
%define ver      1.1.3
%define prefix   /usr/local
%define work     /var/tmp

Summary:   The OpenXM package is a collection of mathematical software systems integrated by the OpenXM protocol. This package contains the binary files of it.
Name:      openxm-binary
Version:   %ver
Release:   test  
Copyright: See OpenXM/Copyright
Group:     Mathematical Software
Source:    ftp://ftp.math.sci.kobe-u.ac.jp/pub/OpenXM/openxm-1.1.3.tar.gz
URL:       http://www.openxm.org, http://www.math.sci.kobe-u.ac.jp/OpenXM
BuildRoot:  %{work}/%{name}-root
## BuildRoot should be removed in the real package building.


%description
The OpenXM package is a collection of mathematical software systems that
support the OpenXM protocol.
Main clients are asir and mathematica (math).
Servers are ox_asir, ox_sm1, ox_gnuplot, ox_math, ox_phc, ox_tigers.
[Note on installation]
This package is not relocatable as it is. But if you change directory
to OpenXM/rc after the installation and type in
make clean ; make install PREFIX=(Your favorite directory to put shell scripts to start OpenXM clients)
then everything works fine.
%prep
%setup -n openxm-%{ver}
%build
make configure
make

%install
/bin/rm -rf $RPM_BUILD_ROOT%{prefix}/OpenXM
make install-binary-files PREFIX=$RPM_BUILD_ROOT%{prefix}
make install-shell-scripts PREFIX=$RPM_BUILD_ROOT%{prefix}

%clean
rm -rf $RPM_BUILD_ROOT%{prefix}/OpenXM
rm -rf $RPM_BUILD_ROOT%{prefix}/bin/asir
rm -rf $RPM_BUILD_ROOT%{prefix}/bin/sm1
rm -rf $RPM_BUILD_ROOT%{prefix}/bin/oxmath
rm -rf $RPM_BUILD_ROOT%{prefix}/bin/oxMathematica
rm -rf $RPM_BUILD_ROOT%{prefix}/bin/openxm
rm -rf $RPM_BUILD_ROOT%{prefix}/bin/oxgp

%files
%defattr(-, root, root)
%{prefix}/OpenXM/bin/*
%{prefix}/OpenXM/lib/*.a
%{prefix}/OpenXM/lib/*.so*
%{prefix}/OpenXM/rc/*
%{prefix}/bin/asir
%{prefix}/bin/sm1
%{prefix}/bin/oxmath
%{prefix}/bin/oxMathematica
%{prefix}/bin/openxm
%{prefix}/bin/oxgp

%post
(cd %{prefix}/OpenXM/rc ; make clean ; make install)