Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release-src > by-pkgid > ed697a1faab7fb14723e32cb621ded28 > files > 3

axiom-3.4-0.20100407.1mdv2010.1.src.rpm

%define axvers	20100407
%define AXIOM	%{_libdir}/%{name}-%{version}

Summary:	Symbolic Computation Program
Name:		axiom
Version:	3.4
Release:	%mkrel 0.%{axvers}.1
Source0:	%{name}-%{axvers}.tar.bz2

# Hint to use the html interface:
# in axiom prompt type:
#	)browse
# in firefox, open localhost:8085/usr/lib64/axiom-3.4/doc/hypertex/topicspage.xhtml
# or in a shell, type:
# firefox -remote 'openURL(localhost:8085/usr/lib64/axiom-3.4/doc/hypertex/topicspage.xhtml)'
# other good starting point is:
# /usr/lib64/axiom-3.4/doc/axbook/book-index.xhtml
# of course, if you don't need axiom evaluating expressions, just use:
# file:///usr/lib64/axiom-3.4/doc/axbook/book-index.xhtml
# The interface is not complete, and there are several missing features

# git clone git://github.com/daly/axiom.git axiom
# git archive --format=tar --prefix=axiom/ d7b61fa6dea4e97d3d329e7cc418ccf6df22ea3f | bzip2 > axiom-20100407.tar.bz2

# This is the gcl package, as of 20091125, BUILD dir after rpmbuild -bp
# This allows having an axiom binary that doesn't require
#	echo 0 >/proc/sys/kernel/randomize_va_space
# or equivalent sysctl call
Source1:	gcl-2.6.8pre3.tgz
Source2:	gcl-2.6.8pre3.h.linux.defs.patch
Source3:	gcl-2.6.8pre3.unixport.makefile.patch
Source4:	gcl-2.6.8pre3.unixport.init_gcl.lsp.in.patch
Source5:	gcl-2.6.8pre3.o.read.d.patch
# Fix underlinking - AdamW 2008/07
Patch0:		axiom-20091201-underlink.patch
License:	BSD
Group:		Sciences/Mathematics
URL:		http://axiom.axiom-developer.org
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

#BuildRequires:	libgmp-devel
BuildRequires:	libncurses-devel
BuildRequires:	libreadline-devel
BuildRequires:	binutils-devel
BuildRequires:	libxau-devel
BuildRequires:	libice-devel
BuildRequires:	libxaw-devel
BuildRequires:	libxdmcp-devel
BuildRequires:	libxext-devel
BuildRequires:	libxmu-devel
BuildRequires:	libxt-devel
BuildRequires:	x11-proto-devel
BuildRequires:	x11-xtrans-devel
BuildRequires:	xpm-static-devel
BuildRequires:	tetex
BuildRequires:	tetex-latex
BuildRequires:	gawk
BuildRequires:	ghostscript
Requires:	xterm

%description
Axiom is a general purpose Computer Algebra system. 
It is useful for research and development of mathematical algorithms. 
It defines a strongly typed, mathematically correct type hierarchy. 
It has a programming language and a built-in compiler. 

%prep
%setup -q -n %{name}
cp -f %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} zips
%patch0 -p1 -b .underlink

%build
export AXIOM=`pwd`/mnt/linux
export PATH=$AXIOM/bin:$PATH

# parallel build fail
make XLIB=%{_libdir} LDF=-L%{_libdir} MAKE=make

%install
mkdir -p %{buildroot}%{_libdir}/%{name}-%{version}
cp -far mnt/linux/* %{buildroot}%{_libdir}/%{name}-%{version}

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/axiom <<EOF
#!/bin/sh
AXIOM=%{AXIOM}
export AXIOM
PATH=\$AXIOM/bin:\$PATH
export PATH
exec \$AXIOM/bin/sman "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/axiom

# correct some %{buildroot} references
perl -pi -e 's|%{buildroot}/axiom/mnt/linux|%{AXIOM}|;'		\
	%{buildroot}%{AXIOM}/bin/index.html			\
	%{buildroot}%{AXIOM}/bin/man/man1/*.1			\
	%{buildroot}%{AXIOM}/bin/lib/pipedocs

# remove executable bit of some text files
chmod -x %{buildroot}%{AXIOM}/lib/{command.list,copyright}	\
	`find %{buildroot}%{AXIOM} -name axiom.sty`

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc license/license.*
%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/*
%{_bindir}/axiom


%changelog
* Thu Apr 08 2010 Paulo Andrade <pcpa@mandriva.com.br> 3.4-0.20100407.1mdv2010.1
+ Revision: 533235
- Update to newer git snapshot and rebuild with newer gmp

  + Funda Wang <fwang@mandriva.org>
    - rebuild for new gmp

* Wed Dec 02 2009 Paulo Andrade <pcpa@mandriva.com.br> 3.4-0.20091201.1mdv2010.1
+ Revision: 472701
- Update to git snapshot from 20091201

* Fri Nov 27 2009 Paulo Andrade <pcpa@mandriva.com.br> 3.4-0.20081101.1mdv2010.1
+ Revision: 470708
- Use newer gcl 2.6.8 pre tarball
- Update for newer binutils
- Run sman by default so that help/graphics are easily available.
- Rediff axiom patches to gcl instead of applying a patch on top of it.
- Update to latest upstream release.

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - BR xpm-static-devel
    - BR tetex-latex
    - kill re-definition of %%buildroot on Pixel's request
    - use %%mkrel
    - import axiom

  + Adam Williamson <awilliamson@mandriva.org>
    - replace upstream's in-tree gcl 2.6.8 snapshot with a newer one which works
      on x86-64: new source gcl-2.6.8pre2.tgz and patch gcl.patch
    - small adjustments to install process and file lists due to (presumably)
      upstream changes
    - we don't use /usr/X11R6 any more
    - cleanups:
      	+ buildrequires
      	+ needless #defines
      	+ tabs
      	+ license
      	+ $RPM_BUILD_ROOT vs. %%buildroot
    - add underlink.patch (fix underlinking issues)
    - new release (July 2008)

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot


* Thu Oct 20 2005 Giuseppe Ghibò <ghibo@mandriva.com> 3.4-0.20050901.1mdk
- Sep 2005 release.
- added xterm to Requires.

* Mon Apr 25 2005 Giuseppe Ghibò <ghibo@mandriva.com> 3.4-0.20050401.2mdk
- Added AXIOMsys in %%_bindir so to have it working under TeXmacs.

* Sun Apr 24 2005 Couriousous <couriousous@mandriva.org> 3.4-0.20050401.1mdk
- April 2005 release
- Try to package more things, help should works now
- version is 3.4 April 2005

* Sat Apr 16 2005 Giuseppe Ghibò <ghibo@mandriva.com> 0.20041230-1mdk
- Release: 20041230.
- Fix build for X86-64.

* Fri Feb 04 2005 Couriousous <couriousous@mandrake.org> 0.20041028-2mdk
- Rebuild for new libreadline

* Sun Dec  5 2004 Couriousous <couriousous@zarb.org> 0.20041028-1mdk
- First Mandrakelinux release