From 86c9c906ba957db9ae08afdb119c8941795f8fdf Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Aug 11 2017 04:33:13 +0000 Subject: Install metainfo.xml files in %octave_pkg_install --- diff --git a/macros.octave b/macros.octave index 1b02590..c6c0a71 100644 --- a/macros.octave +++ b/macros.octave @@ -57,6 +57,11 @@ fi \ echo "function on_uninstall (desc)" > %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m \ echo " error ('Can not uninstall %s installed by the redhat package manager', desc.name);" >> %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m \ echo "endfunction" >> %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m \ +if [ -e %{_builddir}/%{buildsubdir}/build/%{octpkg}-%{version}/octave-%{octpkg}.metainfo.xml ] \ +then \ + mkdir -p %{buildroot}/%{_datadir}/appdata \ + cp -p %{_builddir}/%{buildsubdir}/build/%{octpkg}-%{version}/octave-%{octpkg}.metainfo.xml %{buildroot}/%{_datadir}/appdata/ \ +fi \ %{nil} # Run pkg tests - We need to reinstall to recreate 'octave_packages' so that diff --git a/octave.spec b/octave.spec index 981df6e..de0537d 100644 --- a/octave.spec +++ b/octave.spec @@ -21,7 +21,7 @@ Name: octave Epoch: 6 Version: 4.2.1 -Release: 3%{?rcver:.rc%{rcver}}%{?dist}.2 +Release: 4%{?rcver:.rc%{rcver}}%{?dist}.2 Summary: A high-level language for numerical computations Group: Applications/Engineering License: GPLv3+ @@ -436,6 +436,9 @@ fi %{_pkgdocdir}/refcard*.pdf %changelog +* Fri Aug 10 2017 Orion Poplawski - 6:4.2.1-4 +- Install metainfo.xml files in %%octave_pkg_install + * Thu Aug 03 2017 Fedora Release Engineering - 6:4.2.1-3.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild