Re: Is anyone packaging sage?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



brad <Bl0ngo067@xxxxxxx> wrote:

...

> I have attached the spec file as I have it so far.  There really isn't
> that much in there yet, although it is a start.  I'll try to find some
> time tomorrow to mess around with it.
> 
> Brad Longo
> Name: sage           
> Version: 2.10.1      
> Release: 1%{?dist}
> Summary: Open Source Mathematics Software       
> 
> Group: Development/Tools
> License: GNU General Public License (GPL)
> URL: http://sage.math.washington.edu/sage/
> Source0: sage-2.10.1.tar       
> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
> 
> BuildRequires: gcc >= 4.1.2  
> BuildRequires: gcc-c++ >= 4.1.2
> BuildRequires: m4 >= 1.4.10 
> BuildRequires: make >= 3.81
> BuildRequires: binutils >= 2.17.50.0.18
> #Requires:
> 
> %description
> Use SAGE for studying a huge range of mathematics, including algebra, calculus, elementary to very advanced number theory, cryptography, numerical computation, commutative algebra, group theory, combinatorics, graph theory, and exact linear algebra.  SAGE makes it easy for you to use most mathematics software together. SAGE includes interfaces to Magma, Maple, Mathematica, MATLAB, and MuPAD, and the free programs Axiom, GAP, GP/PARI, Macaulay2, Maxima, Octave, and Singular. 
> 
> %prep
> %setup -q 
> # ^^ As of right now the spec file breaks here at setup.  Setup looks for
>   a configure script, does not find one, and then it breaks.

%setup has never done such a thing... are you sure no %configure snuck in?
In any case, what %setup does is mostly to unpack the sources, so you can
do it by hand if absolutely needed.

> # At least those were my results.
> 
> 
> %build
> #%configure --prefix=/usr  
> #I have commented this because there is no configure script.
> make %{?_smp_mflags}

You might have to add CFLAGS="$PM_OPT_FLAGS" or some such to get the right
compilation flags. And/or add a patch to fix up the Makefile(s). That if
there is no home-brewed configuration machinery you can use.

> %install
> #rm -rf $RPM_BUILD_ROOT
> #make install DESTDIR=$RPM_BUILD_ROOT  
> 
> #This is also commented because there is no make install.  

Just create the needed directories and install the files under them by hand
then.

> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> 
> %files
> %defattr(-,root,root,-)
> %doc README.txt
> %doc HISTORY.txt
> %doc COPYING.txt

List here the files you installed above.

> %changelog
> *Mon Feb 18 2008 Brad Longo <bjlongo@xxxxxxxx> -2.10.1

Should be: 2.10.1-1 (version-release), i.e.,

*Mon Feb 18 2008 Brad Longo <bjlongo@xxxxxxxx> 2.10.1-1
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                    Fono: +56 32 2654431
Universidad Tecnica Federico Santa Maria             +56 32 2654239
Casilla 110-V, Valparaiso, Chile               Fax:  +56 32 2797513

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux