From 41df04d43832e9a7eeb3574f8279de0d261bbf55 Mon Sep 17 00:00:00 2001 From: Dmitrij S. Kryzhevich Date: Nov 24 2015 10:47:20 +0000 Subject: Fix files section --- diff --git a/mathgl.spec b/mathgl.spec index 14c6ae4..58ab61a 100644 --- a/mathgl.spec +++ b/mathgl.spec @@ -5,7 +5,7 @@ Name: mathgl Version: 2.3.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Cross-platform library for making high-quality scientific graphics Summary(de): Plattformübergreifende Bibliothek für hochwertige wissenschaftliche Graphiken Summary(ru): Библиотека для осуществления высококачественной визуализации данных @@ -314,6 +314,11 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/udav.desktop # Maintain l18n for udav %find_lang udav --with-qt +# mathgl cmake file is placed into strange location. Move it to proper one with proper name +mkdir -p %{buildroot}%{_datadir}/cmake/Modules +mv %{buildroot}/%{_libdir}/cmake/mathgl2/mathgl2-config.cmake %{buildroot}%{_datadir}/cmake/Modules/FindMathGL2.cmake +rm -r %{buildroot}/%{_libdir}/cmake + %post -p /sbin/ldconfig %post common @@ -326,6 +331,12 @@ fi %postun -p /sbin/ldconfig +%post udav +/usr/bin/update-desktop-database &> /dev/null || : + +%postun udav +/usr/bin/update-desktop-database &> /dev/null || : + %files %doc AUTHORS ChangeLog.txt README COPYING README_V2 %{_libdir}/*.so.* @@ -339,11 +350,13 @@ fi %{_libdir}/*.so %exclude %{_libdir}/mgl-lua.so %{_includedir}/mgl2/ +%{_datadir}/cmake/Modules/FindMathGL2.cmake %files -n udav -f udav.lang %{_bindir}/udav %{_mandir}/man1/udav.1.gz %{_datadir}/applications/udav.desktop +%{_datadir}/mime/packages/mgl.xml %dir %{_datadir}/udav/ %{_datadir}/pixmaps/*.png @@ -379,6 +392,9 @@ fi %{_includedir}/mpich-%{_arch}/mgl2/ %changelog +* Tue Nov 24 2015 Dsmitrij S. Kryzhevich - 2.3.3-3 +- Fix files section: cmake script and mime xml. + * Tue Nov 24 2015 Dsmitrij S. Kryzhevich - 2.3.3-2 - Add libtool-ltdl-devel to BR.