Name: gfan Version: 0.3 Release: 3%{?dist} Summary: Software for Computing Gröbner Fans and Tropical Varieties Group: Applications/Engineering License: GPL+ URL: http://www.math.tu-berlin.de/%7Ejensen/software/gfan/gfan.html #Source0: http://www.math.tu-berlin.de/%7Ejensen/software/gfan/gfan%{version}.tar.gz # The doc/ subdir of the upstream tarball is removed because it is # non-free. # tar -xzf gfan0.3.tar.gz # rm -rf gfan0.3/doc/ # tar -cjf gfan0.3-free.tar.bz2 gfan0.3/ Source0: gfan%{version}-free.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # Respect DESTDIR Patch0: gfan-0.3-respect-destdir.diff BuildRequires: cddlib-devel BuildRequires: gmp-devel BuildRequires: texlive-latex %description The software computes all marked reduced Gröbner bases of an ideal. Their union is a universal Gröbner basis. Gfan contains algorithms for computing this complex for general ideals and specialized algorithms for tropical curves, tropical hypersurfaces and tropical varieties of prime ideals. In addition to the above core functions the package contains many tools which are useful in the study of Gröbner bases, initial ideals and tropical geometry. Among these are an interactive traversal program for Gröbner fans and programs for graphical renderings. %prep %setup -q -n %{name}%{version} sed -i -e 's|^OPTFLAGS.*$||' \ -e 's|^PREFIX.*$|PREFIX = %{_prefix}|' \ -e 's|^BINDIR.*$|BINDIR = %{_bindir}|' Makefile %patch0 %build export OPTFLAGS="%{optflags} -DGMPRATIONAL" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name} mv $RPM_BUILD_ROOT%{_bindir}/gfan_* $RPM_BUILD_ROOT%{_libexecdir}/%{name}/ pushd $RPM_BUILD_ROOT%{_libexecdir}/%{name}/ for symlink in gfan_*; do rm $symlink # ln -s %{_bindir}/%{name} $symlink ln -s ../../bin/%{name} $symlink done popd %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING examples LICENSE %{_bindir}/%{name} %{_libexecdir}/%{name} %changelog * Tue Dec 30 2008 Conrad Meyer - 0.3-3 - Fix License tag. - Fix source tarball. - Fix build section. * Fri Dec 12 2008 Conrad Meyer - 0.3-2 - BR texlive-latex. * Sat Dec 6 2008 Conrad Meyer - 0.3-1 - Initial package.