Compare commits
8 Commits
Author | SHA1 | Date |
---|---|---|
Fedora Release Engineering | 3322634cb7 | |
Bill Nottingham | 6c32c3fc75 | |
Quentin Spencer | 522f77590f | |
Quentin Spencer | c3761a91b3 | |
Quentin Spencer | cef1d4c61a | |
Quentin Spencer | 3db168e1ee | |
Quentin Spencer | 57bbeac767 | |
Bill Nottingham | e5c56d7a2f |
|
@ -1 +0,0 @@
|
|||
octave-2.9.9.tar.bz2
|
|
@ -0,0 +1 @@
|
|||
octave-3.0.0.tar.bz2
|
21
Makefile
21
Makefile
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: octave
|
||||
# $Id$
|
||||
NAME := octave
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
40
octave.spec
40
octave.spec
|
@ -1,15 +1,15 @@
|
|||
# From src/version.h:#define OCTAVE_API_VERSION
|
||||
%define octave_api api-v22
|
||||
%define octave_api api-v32
|
||||
|
||||
Name: octave
|
||||
Version: 2.9.9
|
||||
Version: 3.0.0
|
||||
Release: 2%{?dist}
|
||||
Summary: A high-level language for numerical computations
|
||||
Epoch: 6
|
||||
|
||||
Group: Applications/Engineering
|
||||
License: GPL
|
||||
Source: ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-%{version}.tar.bz2
|
||||
License: GPLv3+
|
||||
Source: ftp://ftp.octave.org/pub/octave/octave-%{version}.tar.bz2
|
||||
URL: http://www.octave.org
|
||||
Requires: gnuplot less info texinfo
|
||||
Requires(post): /sbin/install-info
|
||||
|
@ -17,9 +17,10 @@ Requires(postun): /sbin/ldconfig
|
|||
Requires(post): /sbin/ldconfig
|
||||
Requires(preun): /sbin/install-info
|
||||
BuildRequires: bison flex less tetex gcc-gfortran lapack-devel blas-devel
|
||||
BuildRequires: ncurses-devel zlib-devel hdf5-devel
|
||||
BuildRequires: ncurses-devel zlib-devel hdf5-devel texinfo qhull-devel
|
||||
BuildRequires: readline-devel glibc-devel fftw-devel gperf ghostscript
|
||||
BuildRequires: ufsparse-devel glpk-devel gnuplot desktop-file-utils
|
||||
BuildRequires: curl-devel pcre-devel
|
||||
Provides: octave(api) = %{octave_api}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
|
@ -63,8 +64,7 @@ fi
|
|||
|
||||
%build
|
||||
%define enable64 no
|
||||
export CPPFLAGS=-I%{_includedir}/glpk
|
||||
%configure --enable-shared --disable-static --enable-64=%enable64
|
||||
%configure --enable-shared --disable-static --enable-64=%enable64 --with-f77=gfortran
|
||||
make %{?_smp_mflags} OCTAVE_RELEASE="Fedora Extras %{version}-%{release}"
|
||||
|
||||
|
||||
|
@ -89,9 +89,15 @@ popd
|
|||
|
||||
# Create desktop file
|
||||
rm $RPM_BUILD_ROOT%{_datadir}/applications/www.octave.org-octave.desktop
|
||||
desktop-file-install --vendor fedora --add-category X-Fedora \
|
||||
desktop-file-install --vendor fedora --add-category X-Fedora --remove-category Development \
|
||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications examples/octave.desktop
|
||||
|
||||
# Create directories for add-on packages
|
||||
HOST_TYPE=`$RPM_BUILD_ROOT%{_bindir}/octave-config -p CANONICAL_HOST_TYPE`
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}/site/oct/%{octave_api}/$HOST_TYPE
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}/site/oct/$HOST_TYPE
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/packages
|
||||
touch $RPM_BUILD_ROOT%{_datadir}/%{name}/octave_packages
|
||||
|
||||
|
||||
%clean
|
||||
|
@ -119,6 +125,7 @@ fi
|
|||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
%{_libdir}/octave*
|
||||
%{_datadir}/octave
|
||||
%ghost %{_datadir}/octave/octave_packages
|
||||
%{_libexecdir}/octave
|
||||
%{_mandir}/man*/octave*
|
||||
%{_infodir}/octave.info*
|
||||
|
@ -133,6 +140,23 @@ fi
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 9 2008 Quentin Spencer <qspencer@users.sf.net> 3.0.0-2
|
||||
- Add curl-devel and pcre-devel as build dependencies. Closes bug 302231.
|
||||
|
||||
* Wed Dec 26 2007 Quentin Spencer <qspencer@users.sf.net> 3.0.0-1
|
||||
- Update to 3.0.0.
|
||||
|
||||
* Thu Dec 13 2007 Quentin Spencer <qspencer@users.sf.net> 2.9.19-1
|
||||
- Update to 2.9.19 and update octave_api.
|
||||
|
||||
* Mon Nov 5 2007 Quentin Spencer <qspencer@users.sf.net> 2.9.16-1
|
||||
- Update to version 2.9.16.
|
||||
- Update licencse from GPLv2+ to GPLv3+.
|
||||
- Add qhull-devel and texinfo as dependencies.
|
||||
- Detection of glpk no longer needs special CPPFLAGS.
|
||||
- Other changes from development branch, including new octave packages
|
||||
directory and changes to desktop file install.
|
||||
|
||||
* Tue Feb 20 2007 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.9-2
|
||||
- Fix install-info bug (Bug 219404).
|
||||
- Add dependency on octave API so that breakages will be detected. (Bug 224050).
|
||||
|
|
Loading…
Reference in New Issue