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

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

Revision 1.3, Sat Mar 11 05:44:16 2000 UTC (24 years, 2 months ago) by takayama
Branch: MAIN
Changes since 1.2: +10 -1 lines

Final commit to start to check the full build procedure of packages.
It will take several hours for the full build (I'm listening to MD walkman today,
I hope we will have ox_mp3 in a near future :-).

# $OpenXM: OpenXM/misc/packages/Linux/RPM/openxm-shared.spec.in,v 1.3 2000/03/11 05:44:16 takayama Exp $
#  openxm-shared.spec.in
#
%define ver      1.1.2
%define prefix   /usr/local
%define work     /var/tmp

Summary:   The OpenXM package is a collection of mathematical softwares integrated by the OpenXM protocol. This package contains architecture independent part of it.
Name:      openxm-shared
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.2.tar.gz
URL:       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 softwares 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-shared-files 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/lib/asir-contrib/*
%{prefix}/OpenXM/lib/java-support/*
%{prefix}/OpenXM/lib/k097/*
%{prefix}/OpenXM/lib/math/*
%{prefix}/OpenXM/lib/pari/*
%{prefix}/OpenXM/lib/sm1/*
%{prefix}/OpenXM/lib/asir/*
%{prefix}/OpenXM/man/*
%{prefix}/OpenXM/include/*
%{prefix}/OpenXM/Copyright/*
%doc  %{prefix}/OpenXM/doc/*
## %config %{prefix}/OpenXM/lib/asir/asir_key

%post
if [ -f /var/tmp/asir_key ] ; then
	cp -f /var/tmp/asir_key.save %{prefix}/OpenXM/lib/asir/asir_key ;
fi

%preun
if [ -f %{prefix}/OpenXM/lib/asir/asir_key ] ; then
	cp -f %{prefix}/OpenXM/lib/asir/asir_key /var/tmp/asir_key.save ;
fi