Swap quoting in octave macros to make set -x output a little cleaner
- Stop trying to turn octave warnings off in macros
This commit is contained in:
parent
e2ff30f6ae
commit
8e983362f7
@ -11,10 +11,10 @@
|
|||||||
%octpkglibdir %{octarchprefix}/%{octpkg}-%{version}
|
%octpkglibdir %{octarchprefix}/%{octpkg}-%{version}
|
||||||
|
|
||||||
# Run an octave command - quietly with no startup files
|
# Run an octave command - quietly with no startup files
|
||||||
%octave_cmd() octave -H -q --no-window-system --no-site-file --eval "%*";
|
%octave_cmd() octave -H -q --no-window-system --no-site-file --eval '%*';
|
||||||
|
|
||||||
# Build unpacked source directory into a package tar file in a temporary location
|
# Build unpacked source directory into a package tar file in a temporary location
|
||||||
%octave_pkg_build %octave_cmd pkg build '-verbose' '-nodeps' %{_tmppath}/%{name}-%{version}-%{release}.%{_arch} %{_builddir}/%{buildsubdir}
|
%octave_pkg_build %octave_cmd pkg build "-verbose" "-nodeps" %{_tmppath}/%{name}-%{version}-%{release}.%{_arch} %{_builddir}/%{buildsubdir}
|
||||||
|
|
||||||
# Install a package. We use the octave pkg install command to install the
|
# Install a package. We use the octave pkg install command to install the
|
||||||
# built package into the buildroot. We also put a note to prevent the root
|
# built package into the buildroot. We also put a note to prevent the root
|
||||||
@ -24,7 +24,7 @@
|
|||||||
%octave_pkg_install \
|
%octave_pkg_install \
|
||||||
mkdir -p %{buildroot}%{octprefix} \
|
mkdir -p %{buildroot}%{octprefix} \
|
||||||
mkdir -p %{buildroot}%{octarchprefix} \
|
mkdir -p %{buildroot}%{octarchprefix} \
|
||||||
%octave_cmd warning('off','all');pkg('prefix','%{buildroot}%{octprefix}','%{buildroot}%{octarchprefix}');pkg('global_list',fullfile('%{buildroot}%{octshareprefix}','octave_packages'));pkg('local_list',fullfile('%{buildroot}%{octshareprefix}','octave_packages'));pkg('install','-nodeps','-verbose','%{_tmppath}/%{name}-%{version}-%{release}.%{_arch}/%{octpkg}-%{version}.tar.gz');unlink(pkg('local_list'));unlink(pkg('global_list')); \
|
%octave_cmd pkg("prefix","%{buildroot}%{octprefix}","%{buildroot}%{octarchprefix}");pkg("global_list",fullfile("%{buildroot}%{octshareprefix}","octave_packages"));pkg("local_list",fullfile("%{buildroot}%{octshareprefix}","octave_packages"));pkg("install","-nodeps","-verbose","%{_tmppath}/%{name}-%{version}-%{release}.%{_arch}/%{octpkg}-%{version}.tar.gz");unlink(pkg("local_list"));unlink(pkg("global_list")); \
|
||||||
if [ -e %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m ] \
|
if [ -e %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m ] \
|
||||||
then \
|
then \
|
||||||
mv %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m.orig \
|
mv %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m.orig \
|
||||||
@ -37,7 +37,7 @@ echo "endfunction" >> %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m \
|
|||||||
# Run pkg tests - We need to reinstall to recreate 'octave_packages' so that
|
# Run pkg tests - We need to reinstall to recreate 'octave_packages' so that
|
||||||
# octave can find the package, then remove 'octave_packages' again.
|
# octave can find the package, then remove 'octave_packages' again.
|
||||||
%octave_pkg_check \
|
%octave_pkg_check \
|
||||||
%octave_cmd warning('off','all');pkg('prefix','%{buildroot}%{octprefix}','%{buildroot}%{octarchprefix}');pkg('global_list',fullfile('%{buildroot}%{octshareprefix}','octave_packages'));pkg('local_list',fullfile('%{buildroot}%{octshareprefix}','octave_packages'));pkg('install','-nodeps','-verbose','%{_tmppath}/%{name}-%{version}-%{release}.%{_arch}/%{octpkg}-%{version}.tar.gz');pkg('load','%{octpkg}');runtests('%{buildroot}%{octpkgdir}');unlink(pkg('local_list'));unlink(pkg('global_list')); \
|
%octave_cmd pkg("prefix","%{buildroot}%{octprefix}","%{buildroot}%{octarchprefix}");pkg("global_list",fullfile("%{buildroot}%{octshareprefix}","octave_packages"));pkg("local_list",fullfile("%{buildroot}%{octshareprefix}","octave_packages"));pkg("install","-nodeps","-verbose","%{_tmppath}/%{name}-%{version}-%{release}.%{_arch}/%{octpkg}-%{version}.tar.gz");pkg("load","%{octpkg}");runtests("%{buildroot}%{octpkgdir}");unlink(pkg("local_list"));unlink(pkg("global_list")); \
|
||||||
%{nil}
|
%{nil}
|
||||||
|
|
||||||
# preun script - we need to remove our uninstall protection and perhaps
|
# preun script - we need to remove our uninstall protection and perhaps
|
||||||
@ -46,7 +46,7 @@ echo "endfunction" >> %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m \
|
|||||||
if [ -e %{octpkgdir}/packinfo/on_uninstall.m.orig ]; then \
|
if [ -e %{octpkgdir}/packinfo/on_uninstall.m.orig ]; then \
|
||||||
mv %{octpkgdir}/packinfo/on_uninstall.m.orig %{octpkgdir}/packinfo/on_uninstall.m \
|
mv %{octpkgdir}/packinfo/on_uninstall.m.orig %{octpkgdir}/packinfo/on_uninstall.m \
|
||||||
cd %{octpkgdir}/packinfo \
|
cd %{octpkgdir}/packinfo \
|
||||||
%octave_cmd l=pkg('list');on_uninstall(l{cellfun(@(x)strcmp(x.name,'%{octpkg}'),l)}); \
|
%octave_cmd l=pkg("list");on_uninstall(l{cellfun(@(x)strcmp(x.name,"%{octpkg}"),l)}); \
|
||||||
else \
|
else \
|
||||||
echo > %{octpkgdir}/packinfo/on_uninstall.m \
|
echo > %{octpkgdir}/packinfo/on_uninstall.m \
|
||||||
fi \
|
fi \
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
Name: octave
|
Name: octave
|
||||||
Epoch: 6
|
Epoch: 6
|
||||||
Version: 4.0.1
|
Version: 4.0.1
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A high-level language for numerical computations
|
Summary: A high-level language for numerical computations
|
||||||
Group: Applications/Engineering
|
Group: Applications/Engineering
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -409,6 +409,10 @@ fi
|
|||||||
%{_pkgdocdir}/refcard*.pdf
|
%{_pkgdocdir}/refcard*.pdf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 24 2016 Orion Poplawski <orion@cora.nwra.com> - 6:4.0.1-4
|
||||||
|
- Swap quoting in octave macros to make set -x output a little cleaner
|
||||||
|
- Stop trying to turn octave warnings off in macros
|
||||||
|
|
||||||
* Wed Mar 23 2016 Orion Poplawski <orion@cora.nwra.com> - 6:4.0.1-3
|
* Wed Mar 23 2016 Orion Poplawski <orion@cora.nwra.com> - 6:4.0.1-3
|
||||||
- Update signbit patch from gnulib upstream to work with older compilers
|
- Update signbit patch from gnulib upstream to work with older compilers
|
||||||
- Only munge headers for gnulib on Fedora 24+
|
- Only munge headers for gnulib on Fedora 24+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user