Compare commits

...

2 Commits
rawhide ... f31

Author SHA1 Message Date
Dmitrij S. Kryzhevich 32bedb457e Remove octave tar.gz from -fonts subpackage 2020-03-03 17:29:31 +07:00
Dmitrij S. Kryzhevich 6c8422fb6c Fix different l10n files in different arch builds 2020-03-02 17:52:54 +07:00
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,11 @@
diff -urp mathgl-2.4.2.1/CMakeLists.txt mathgl-2.4.2.1-norebuild_l10n/CMakeLists.txt
--- mathgl-2.4.2.1/CMakeLists.txt 2018-03-31 00:32:12.000000000 +0700
+++ mathgl-2.4.2.1-norebuild_l10n/CMakeLists.txt 2020-03-02 10:07:18.750912058 +0700
@@ -636,6 +636,7 @@ if(WIN32)
set(USE_GETTEXT 0)
set(MGL_USE_LIBINTL 0)
endif(WIN32)
+set(USE_GETTEXT 0)
if(enable-doc-info)
set(MGL_HAVE_DOC_INFO 1)

View File

@ -19,7 +19,7 @@
Name: mathgl
Version: 2.4.2.1
Release: 8%{?dist}
Release: 10%{?dist}
Summary: Cross-platform library for making high-quality scientific graphics
Summary(de): Plattformübergreifende Bibliothek für hochwertige wissenschaftliche Graphiken
Summary(ru): Библиотека для осуществления высококачественной визуализации данных
@ -51,6 +51,11 @@ Patch6: mathgl-2.4.1-gcc7.patch
# Disable uppdate-{destop,mine}-database during install process
Patch7: mathgl-2.4.1-no_updatedb.patch
# Disable rebuild of l10n files, rhbz #1808694
# .mo files built in compile time contain time stamp what make them different
# between different archs (or not if you are lucky. I'm not.)
Patch8: mathgl-2.4.2.1-norebuild_l10n.patch
Requires: %{name}-common = %{version}-%{release}
# mandatory packages
@ -336,6 +341,7 @@ done
%else
%patch4 -p1 -b .no_octave
%endif
%patch8 -p1 -b .norebuild_l10n
# Fix hardcoded Python version
sed -i -e 's,3\.[0-9],%{python3_version},g' \
@ -428,6 +434,7 @@ rm -r %{buildroot}%{_libdir}/$MPI_COMPILER_NAME/usr
# Serial
make install DESTDIR=%{buildroot} -C %{_target_platform}_serial INSTALL="install -p"
%if 0%{?with_octave}
rm -f %{buildroot}%{_datadir}/%{name}/mathgl.tar.gz
mkdir -p %{mgl_octarch_dir}
cp %{_target_platform}_serial/lang/%{octpkg}.tar.gz %{mgl_octarch_dir}/%{mgl_octarch_name}
%octave_pkg_install
@ -581,7 +588,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/mgllab.desktop
%endif
%files fonts
%{_datadir}/%{name}/
%{_datadir}/%{name}/fonts/
%files common
%{_datadir}/pixmaps/*.png
@ -615,6 +622,12 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/mgllab.desktop
%endif
%changelog
* Mon Mar 02 2020 Dmitrij S. Kryzhevich <kryzhev@ispms.ru> - 2.4.2.1-10
- Remove octave tar.gz from -fonts subpackage.
* Mon Mar 02 2020 Dmitrij S. Kryzhevich <kryzhev@ispms.ru> - 2.4.2.1-9
- Disable rebuild of l10n. Fix rhbz #1808694.
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild