Name: mathgl Version: 2.1.2 Release: 1%{?dist} Summary: Cross-platform library for making high-quality scientific graphics Summary(de): Plattformübergreifende Bibliothek für hochwertige wissenschaftliche Graphiken Summary(ru): MathGL - это библиотека для осуществления высококачественной визуализации данных License: GPLv2+ Group: Development/Libraries Url: http://mathgl.sourceforge.net Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz #Mathgl's enable all tries to use hdf4 and 5 at the same time Patch0: mathgl-no-hdf4-and-hdf5-simultaneously.patch #CMake looks for "FLUID" - the fltk UI designer. #This is not needed - instruct cmake to skip it at build time Patch1: mathgl-fltk-skip-fluid.patch #Mathgl hardcodes the libdir as lib, then puts it in a var. # we will simply pass it as an arg to cmake. Patch2: mathgl-disable-lib-installdir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # mandatory packages BuildRequires: gsl-devel libpng-devel # optional packages BuildRequires: freeglut-devel hdf-devel hdf5-static libjpeg-devel libtiff-devel fltk-devel qt4-devel BuildRequires: wxGTK-devel giflib-devel BuildRequires: libharu-devel BuildRequires: swig octave-devel BuildRequires: libXmu-devel BuildRequires: python2-devel numpy BuildRequires: cmake Requires(post): info Requires(preun): info %description Mathgl is a cross-platform library for making high-quality scientific graphics. It provides fast data plotting and handling of large data arrays, as well as window and console modes and for easy embedding into other programs. Mathgl integrates into fltk, qt and opengl applications %package devel Summary: Libraries and header files for %{name} library Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gsl-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %description devel -l ru Пакет %{name}-devel содержит библиотеки и файлы заголовков необходимые для разработки приложений с использованием %{name}. %package doc Group: Documentation Summary: HTML documentation and tutorial for the %{name} applications BuildArch: noarch BuildRequires: texi2html texinfo-tex %description doc This package contains the documentation in the HTML format of the %{name} package. %package udav Summary: UDAV viewer and editor for mathgl graphs Group: Applications/Engineering Requires: %{name} = %{version}-%{release} %description udav UDAV is cross-platform program for interactive data array visualization using the MathGL library. UDAV works as a front-end to the mathgl scripting engine, allowing for the generation of a wide variety of scientific graph styles. %prep %setup -q #convert EOL encodings, maintaining timestames for file in AUTHORS ChangeLog.txt README ; do sed 's/\r//' $file > $file.new && \ touch -r $file $file.new && \ mv $file.new $file done %patch0 %patch1 %patch2 %build cmake -DMGL_LIB_INSTALL_DIR=%{_libdir} \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DLIB_INSTALL_DIR:PATH=%{_libdir} \ -Denable-all=on -Denable-hdf4=off -Denable-doc=on -Denable-all-swig=on -Denable-all-widgets=on -Denable-mpi=off make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" #Remove symlink to .so file in python dir. Let python find libs normally unlink $RPM_BUILD_ROOT/%{python_sitelib}/_mathgl.so #Remove static libraries generated by cmake rm ${RPM_BUILD_ROOT}/%{_libdir}/*.a #Remove the binary mgl.cgi. Im not convinced about it (eg mem leak in main), and that its really needed rm ${RPM_BUILD_ROOT}/%{_bindir}/mgl.cgi #Copy info file which is not otherwise installed cp texinfo/%{name}_en.info ${RPM_BUILD_ROOT}/%{_infodir}/%{name}.info %post /sbin/ldconfig /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %preun if [ $1 = 0 ] ; then /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog.txt README COPYING README_V2 %{_libdir}/*.so.* %{_bindir}/mgl* %{_datadir}/%{name}/ %{python_sitelib}/* %{_mandir}/man5/mgl.5.gz %{_mandir}/man1/mglconv.1.gz %{_mandir}/man1/mglview.1.gz %{_infodir}/%{name}*.gz %files udav %{_bindir}/udav %{_mandir}/man1/udav.1.gz %{_datadir}/applications/udav.desktop %{_datadir}/udav/ %{_datadir}/pixmaps/*.png %files devel %defattr(-,root,root,-) %{_includedir}/mgl2/ %{_libdir}/*.so %files doc %defattr(-,root,root,-) %doc %{_docdir}/%{name} %changelog * Sun Apr 14 2013 2.1.2-1 - Update to upstream 2.1.2 - New upstream has entirely different build system * Thu Feb 14 2013 Fedora Release Engineering - 1.11.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jan 18 2013 Adam Tkac - 1.11.3-2 - rebuild due to "jpeg8-ABI" feature drop * Fri Dec 07 2012 - 1.11.3-1 - Update to 1.11.3 * Mon Dec 03 2012 Orion Poplawski - 1.11.2-9 - Rebuild for hdf5 1.8.10 * Thu Jul 19 2012 Fedora Release Engineering - 1.11.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1.11.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Dec 09 2011 - 1.11.2-6 - Fix build fail due to libpng no longer including zlib - Remove no longer needed libtool hack * Tue Dec 06 2011 Adam Jackson - 1.11.2-5 - Rebuild for new libpng * Thu Jun 23 2011 - 1.11.2-4 - Recall why we needed hdf-devel. Its to keep configure happy. * Thu Jun 23 2011 - 1.11.2-3 - Bump for build * Thu Jun 23 2011 - 1.11.2-2 - Fix bug 678856, add hdf-static as buildrequire * Wed Jun 01 2011 - 1.11.2-1 - Update to upstream 1.11.2 * Tue May 31 2011 Ralf Corsépius - 1.11.0.1-6 - Reflect fltk having changed its include directory (Fix FTBS). - Fix German %%summary. * Tue May 17 2011 Orion Poplawski - 1.11.0.1-5 - Rebuild for hdf5 1.8.7 * Sun Feb 27 2011 - 1.11.0.1-4 - Remove octave for Bug 679948, and dynamic patch non-functional due to swig covariant return type problems with octave_map * Sat Feb 12 2011 - 1.11.0.1-3 - Request rebuild -- octave-config needs to emit correct api. * Tue Feb 08 2011 Fedora Release Engineering - 1.11.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Nov 27 2010 - 1.11.0.1-1 - Update to 1.11.0.1 * Sun Aug 08 2010 - 1.10.2.1-3 - Add gsl-devel to requires * Wed Jul 14 2010 Dan Horák - 1.10.2.1-2.1 - rebuilt against wxGTK-2.8.11-2 * Wed Apr 14 2010 - 1.10.2.1-1.1 - tag bump * Wed Apr 14 2010 - 1.10.2.1-1 - Update to 1.10.2.1 - Fix linker error due to DSO change (Bug #564982) * Sat Jan 02 2010 - 1.10-2 - Fix octave interface to load on startup - Fix texinfo insatll * Sat Jan 02 2010 - 1.10-1 - Update to 1.10 * Wed Nov 25 2009 Kevin Kofler - 1.9-8 - Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI) * Sun Oct 25 2009 Milos Jakubicek - 1.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Sep 14 2009 1.9-6 - Add COPYING to doc * Sat Sep 12 2009 1.9-5 - Removed the word "static" from devel description, as doesn't have static - Fonts now owned at datadir/name level - Added COPYRIGHT NEWS and TODO * Sat Aug 15 2009 1.9-4 - Fix octave installation method - Remove wx lib, which doesn't have meaningful code. * Sun Aug 02 2009 1.9-3 - Fix texinfo install (mv to main & add pre/post) - Remove chrpath, as we now autoreconf - Add octave pkg rebuild commands * Tue Jul 21 2009 1.9-2 - Fix rpath for build on x86_64. - remove unrecognized configure options: --enable-tiff, --disable-ltdl-install - Switch to --enable-all --enable-octave - Add hdf5 patch - Add doc subpackage * Thu Jul 09 2009 1.9-1 - Update to 1.9 - Drop explicit Requires - Perserve timestamps on EOL conversion - Added patch to disable unused gsl cblas link * Fri May 02 2009 1.8.1-1 - Update to 1.8.1 * Wed Jan 28 2009 1.8-3 - Ensure timestamps are preserved during make install - Modify defattr - Remove UDAV from package summary * Mon Dec 29 2008 1.8-2 - Remove redundant and erroneous licence field in devel section - Fix files from mgl/*h to mgl/ - Removed Requires, per bugzilla recommendation. - Disabled static library generation - Removed libltdl from build - Added libtool-ltdl as BuildRequires * Mon Dec 29 2008 1.8-1 - Updated to version 1.8 - Added QT env. vars for fedora - Cleaned up description - Change licence field from GPL to GPLv2 * Wed Jun 4 2008 Nik - disabled hdf5 support according to developer request * Tue Jun 3 2008 Nik - updated to version 1.7.1 * Sun Jun 2 2008 Nik - updated to version 1.7 * Sat Apr 5 2008 Nik - updated to version 1.6.2 * Thu Mar 13 2008 Nik - updated to version 1.6 - added fltk(-devel) to requres list * Tue Mar 11 2008 Nik - tiff bug fixed - enable-all option added * Sat Mar 1 2008 Nik - spec cleanup - --enable(jpeg, tiff, hdf5) features added - enable-tiff leads to make error, submitted to author. Feature disabled. * Fri Feb 29 2008 Nik - initial build of version 1.5