Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d30683fc10 | ||
|
1493ac17bd | ||
|
d87a9c5916 | ||
|
440ce41e5f |
@ -1 +0,0 @@
|
|||||||
octave-3.0.5.tar.bz2
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
octave-3.2.3.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)
|
|
@ -1,2 +0,0 @@
|
|||||||
octave-3_0_2-2_fc10:HEAD:octave-3.0.2-2.fc10.src.rpm:1224776342
|
|
||||||
octave-3_0_5-1_fc11:HEAD:octave-3.0.5-1.fc11.src.rpm:1239552316
|
|
167
octave.spec
167
octave.spec
@ -1,30 +1,29 @@
|
|||||||
# From src/version.h:#define OCTAVE_API_VERSION
|
# From src/version.h:#define OCTAVE_API_VERSION
|
||||||
%define octave_api api-v32
|
%define octave_api api-v37
|
||||||
|
|
||||||
Name: octave
|
Name: octave
|
||||||
Version: 3.0.5
|
Version: 3.2.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A high-level language for numerical computations
|
Summary: A high-level language for numerical computations
|
||||||
Epoch: 6
|
Epoch: 6
|
||||||
|
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Source: ftp://ftp.octave.org/pub/octave/octave-%{version}.tar.bz2
|
Source: ftp://ftp.octave.org/pub/octave/octave-%{version}.tar.bz2
|
||||||
#Patch1: %{name}-sh-arch.patch
|
|
||||||
#Patch2: %{name}-gcc44.patch
|
|
||||||
URL: http://www.octave.org
|
URL: http://www.octave.org
|
||||||
Requires: gnuplot less info texinfo
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires(post): /sbin/install-info
|
|
||||||
Requires(postun): /sbin/ldconfig
|
Provides: octave(api) = %{octave_api}
|
||||||
Requires(post): /sbin/ldconfig
|
|
||||||
Requires(preun): /sbin/install-info
|
|
||||||
BuildRequires: bison flex less tetex gcc-gfortran lapack-devel blas-devel
|
BuildRequires: bison flex less tetex gcc-gfortran lapack-devel blas-devel
|
||||||
BuildRequires: ncurses-devel zlib-devel hdf5-devel texinfo qhull-devel
|
BuildRequires: ncurses-devel zlib-devel hdf5-devel texinfo qhull-devel
|
||||||
BuildRequires: readline-devel glibc-devel fftw-devel gperf ghostscript
|
BuildRequires: readline-devel glibc-devel fftw-devel gperf ghostscript
|
||||||
BuildRequires: curl-devel pcre-devel
|
BuildRequires: curl-devel pcre-devel texinfo-tex arpack-devel libX11-devel
|
||||||
BuildRequires: suitesparse-devel glpk-devel gnuplot desktop-file-utils
|
BuildRequires: suitesparse-devel glpk-devel gnuplot desktop-file-utils
|
||||||
Provides: octave(api) = %{octave_api}
|
BuildRequires: GraphicsMagick-c++-devel fltk-devel ftgl-devel qrupdate-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
Requires: gnuplot gnuplot-common less info texinfo
|
||||||
|
Requires(post): info
|
||||||
|
Requires(preun): info
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -54,6 +53,16 @@ The octave-devel package contains files needed for developing
|
|||||||
applications which use GNU Octave.
|
applications which use GNU Octave.
|
||||||
|
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Documentation for Octave
|
||||||
|
Group: Documentation
|
||||||
|
%if 0%{?fedora} > 10 || 0%{?rhel} > 5
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package contains documentation for Octave.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
# Check that octave_api is set correctly
|
# Check that octave_api is set correctly
|
||||||
@ -63,30 +72,28 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# patch for sh arch
|
|
||||||
#%patch1 -p1 -b .sh-arch
|
|
||||||
# patch for gcc 4.4
|
|
||||||
#%patch2 -p1 -b .gcc44
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define enable64 no
|
%global enable64 no
|
||||||
export CPPFLAGS="-DH5_USE_16_API"
|
export CPPFLAGS="-DH5_USE_16_API"
|
||||||
%configure --enable-shared --disable-static --enable-64=%enable64 --with-f77=gfortran
|
%configure --enable-shared --disable-static --enable-64=%enable64 F77=gfortran
|
||||||
make %{?_smp_mflags} OCTAVE_RELEASE="Fedora %{version}-%{release}"
|
# SMP make doesn't work in Octave 3.2.2
|
||||||
|
#make %{?_smp_mflags} OCTAVE_RELEASE="Fedora %{version}-%{release}"
|
||||||
|
make OCTAVE_RELEASE="Fedora %{version}-%{release}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
|
|
||||||
# Make library links
|
# Make library links
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
echo "%{_libdir}/octave-%{version}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/octave-%{_arch}.conf
|
echo "%{_libdir}/octave-%{version}" > %{buildroot}/etc/ld.so.conf.d/octave-%{_arch}.conf
|
||||||
|
|
||||||
# Remove RPM_BUILD_ROOT from ls-R files
|
# Remove RPM_BUILD_ROOT from ls-R files
|
||||||
perl -pi -e "s,$RPM_BUILD_ROOT,," $RPM_BUILD_ROOT%{_libexecdir}/%{name}/ls-R
|
perl -pi -e "s,%{buildroot},," %{buildroot}%{_libexecdir}/%{name}/ls-R
|
||||||
perl -pi -e "s,$RPM_BUILD_ROOT,," $RPM_BUILD_ROOT%{_datadir}/%{name}/ls-R
|
perl -pi -e "s,%{buildroot},," %{buildroot}%{_datadir}/%{name}/ls-R
|
||||||
|
# Make sure ls-R exists
|
||||||
|
touch %{buildroot}%{_datadir}/%{name}/ls-R
|
||||||
|
|
||||||
# Clean doc directory
|
# Clean doc directory
|
||||||
pushd doc
|
pushd doc
|
||||||
@ -95,20 +102,27 @@ pushd doc
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
# Create desktop file
|
# Create desktop file
|
||||||
rm $RPM_BUILD_ROOT%{_datadir}/applications/www.octave.org-octave.desktop
|
rm %{buildroot}%{_datadir}/applications/www.octave.org-octave.desktop
|
||||||
desktop-file-install --vendor fedora --add-category X-Fedora --remove-category Development \
|
desktop-file-install --vendor fedora --remove-category Development --add-category "Education" \
|
||||||
--dir $RPM_BUILD_ROOT%{_datadir}/applications examples/octave.desktop
|
--add-category "DataVisualization" --add-category "NumericalAnalysis" --add-category "Engineering" --add-category "Physics" \
|
||||||
|
--dir %{buildroot}%{_datadir}/applications examples/octave.desktop
|
||||||
|
|
||||||
# Create directories for add-on packages
|
# Create directories for add-on packages
|
||||||
HOST_TYPE=`$RPM_BUILD_ROOT%{_bindir}/octave-config -p CANONICAL_HOST_TYPE`
|
HOST_TYPE=`%{buildroot}%{_bindir}/octave-config -p CANONICAL_HOST_TYPE`
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}/site/oct/%{octave_api}/$HOST_TYPE
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}/site/oct/%{octave_api}/$HOST_TYPE
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}/site/oct/$HOST_TYPE
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}/site/oct/$HOST_TYPE
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/packages
|
mkdir -p %{buildroot}%{_datadir}/%{name}/packages
|
||||||
touch $RPM_BUILD_ROOT%{_datadir}/%{name}/octave_packages
|
touch %{buildroot}%{_datadir}/%{name}/octave_packages
|
||||||
|
|
||||||
|
# Create interpreter documentation directory
|
||||||
|
mkdir interpreter
|
||||||
|
cp -a doc/interpreter/*.pdf doc/interpreter/HTML/ interpreter/
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -120,33 +134,74 @@ if [ "$1" = "0" ]; then
|
|||||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/octave.info || :
|
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/octave.info || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING NEWS* PROJECTS README README.Linux README.kpathsea ROADMAP
|
%doc COPYING NEWS* PROJECTS README README.Linux README.kpathsea ROADMAP
|
||||||
%doc SENDING-PATCHES THANKS emacs examples doc/interpreter/octave.p*
|
%doc SENDING-PATCHES emacs/
|
||||||
%doc doc/faq doc/interpreter/HTML doc/refcard
|
# FIXME: Create an -emacs package that has the emacs addon
|
||||||
|
%config /etc/ld.so.conf.d/octave-*.conf
|
||||||
%{_bindir}/octave*
|
%{_bindir}/octave*
|
||||||
%config(noreplace) /etc/ld.so.conf.d/*
|
%{_libdir}/octave-%{version}/
|
||||||
%{_libdir}/octave*
|
%{_libexecdir}/octave/
|
||||||
%{_datadir}/octave
|
%{_mandir}/man1/octave*.1.*
|
||||||
%ghost %{_datadir}/octave/octave_packages
|
|
||||||
%{_libexecdir}/octave
|
|
||||||
%{_mandir}/man*/octave*
|
|
||||||
%{_infodir}/octave.info*
|
%{_infodir}/octave.info*
|
||||||
%{_datadir}/applications/*
|
%{_datadir}/applications/fedora-octave.desktop
|
||||||
|
# octave_packages is %ghost, so need to list everything else separately
|
||||||
|
%dir %{_datadir}/octave
|
||||||
|
%{_datadir}/octave/%{version}/
|
||||||
|
%{_datadir}/octave/ls-R
|
||||||
|
%ghost %{_datadir}/octave/octave_packages
|
||||||
|
%{_datadir}/octave/packages/
|
||||||
|
%{_datadir}/octave/site/
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc doc/liboctave
|
%{_bindir}/mkoctfile
|
||||||
%{_bindir}/mkoctfile*
|
%{_bindir}/mkoctfile-%{version}
|
||||||
%{_includedir}/octave-%{version}
|
%{_includedir}/octave-%{version}/
|
||||||
%{_mandir}/man*/mkoctfile*
|
%{_mandir}/man1/mkoctfile.1.*
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc doc/liboctave/HTML/ doc/liboctave/liboctave.pdf
|
||||||
|
%doc doc/faq/Octave-FAQ.pdf doc/refcard/*.pdf
|
||||||
|
%doc examples/ interpreter
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 29 2009 Orion Poplawski <orion@cora.nwra.com> - 6:3.2.3-1
|
||||||
|
- Update to 3.2.3
|
||||||
|
- Re-add make check
|
||||||
|
|
||||||
|
* Tue Sep 22 2009 Rakesh Pandit <rakesh@fedoraproject.org> - 6:3.2.2-5
|
||||||
|
- Added categories to desktop file: Education, DataVisualization, NumericalAnalysis
|
||||||
|
|
||||||
|
* Mon Sep 7 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 6:3.2.2-4
|
||||||
|
- Rebuild against new ATLAS
|
||||||
|
|
||||||
|
* Sun Sep 6 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 6:3.2.2-3
|
||||||
|
- Disable make check temporarily to get a build against newly fixed lapack
|
||||||
|
|
||||||
|
* Wed Sep 2 2009 Orion Poplawski <orion@cora.nwra.com> - 6:3.2.2-2
|
||||||
|
- Add make check
|
||||||
|
|
||||||
|
* Fri Jul 31 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 6:3.2.2-1
|
||||||
|
- Update to latest upstream (3.2.2).
|
||||||
|
|
||||||
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6:3.2.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 13 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 6:3.2.0-2
|
||||||
|
- Added BR: ftgl-devel for native graphics.
|
||||||
|
- Dropped obsolete X-Fedora category from desktop file.
|
||||||
|
- Macro use unifications.
|
||||||
|
- Branch documentation into its own subpackage.
|
||||||
|
|
||||||
|
* Sat Jul 11 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 6:3.2.0-1
|
||||||
|
- Update to latest upstream (3.2.0).
|
||||||
|
|
||||||
* Sun Apr 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> - 6:3.0.5-1
|
* Sun Apr 12 2009 Rakesh Pandit <rakesh@fedoraproject.org> - 6:3.0.5-1
|
||||||
- Updated to latest upstream (3.0.5)
|
- Updated to latest upstream (3.0.5)
|
||||||
|
|
||||||
@ -312,7 +367,7 @@ fi
|
|||||||
* Fri Nov 11 2005 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.4-1
|
* Fri Nov 11 2005 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.4-1
|
||||||
- New upstream release.
|
- New upstream release.
|
||||||
- Patch to make sure all headers are included in -devel.
|
- Patch to make sure all headers are included in -devel.
|
||||||
- PKG_ADD file now needs $RPM_BUILD_ROOT stripped from it.
|
- PKG_ADD file now needs %{buildroot} stripped from it.
|
||||||
- Cleanup errors in dependencies.
|
- Cleanup errors in dependencies.
|
||||||
|
|
||||||
* Tue Oct 25 2005 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.3-6
|
* Tue Oct 25 2005 Quentin Spencer <qspencer@users.sourceforge.net> 2.9.3-6
|
||||||
@ -634,7 +689,7 @@ does not exist.
|
|||||||
- repackage in powertools.
|
- repackage in powertools.
|
||||||
|
|
||||||
* Thu Jun 11 1998 Andrew Veliath <andrewtv@usa.net>
|
* Thu Jun 11 1998 Andrew Veliath <andrewtv@usa.net>
|
||||||
- Add %attr, build as user.
|
- Add %%attr, build as user.
|
||||||
|
|
||||||
* Mon Jun 1 1998 Andrew Veliath <andrewtv@usa.net>
|
* Mon Jun 1 1998 Andrew Veliath <andrewtv@usa.net>
|
||||||
- Add BuildRoot, installinfo, require gnuplot, description from
|
- Add BuildRoot, installinfo, require gnuplot, description from
|
||||||
|
Loading…
Reference in New Issue
Block a user