958976e
%ifnarch s390 s390x
958976e
%global with_openmpi 1
958976e
%endif
Dmitrij S. Kryzhevich be99495
%global with_mpich2 1
958976e
Dmitrij S. Kryzhevich a24724a
Name:          mathgl
Dmitrij S. Kryzhevich be99495
Version:       2.3
Rex Dieter 92187e9
Release:       2%{?dist}.1
Dmitrij S. Kryzhevich a24724a
Summary:       Cross-platform library for making high-quality scientific graphics
Dmitrij S. Kryzhevich a24724a
Summary(de):   Plattformübergreifende Bibliothek für hochwertige wissenschaftliche Graphiken
Dmitrij S. Kryzhevich a24724a
Summary(ru):   Библиотека для осуществления высококачественной визуализации данных
Dmitrij S. Kryzhevich a24724a
License:       GPLv2+
Dmitrij S. Kryzhevich a24724a
Group:         Development/Libraries
Dmitrij S. Kryzhevich a24724a
Url:           http://mathgl.sourceforge.net
Dmitrij S. Kryzhevich a24724a
Source0:       http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
98e6a77
D Haley 329d1cc
#Mathgl's enable all tries to use hdf4 and 5 at the same time
Dmitrij S. Kryzhevich be99495
Patch0:        mathgl-2.3-no-hdf4-and-hdf5-simultaneously.patch
Dmitrij S. Kryzhevich bb1e50e
Dmitrij S. Kryzhevich fc7be90
# Install binaries for generation examples of illustrations
Dmitrij S. Kryzhevich be99495
Patch1:        mathgl-2.2.1-examples.patch
Dmitrij S. Kryzhevich fefea00
Dmitrij S. Kryzhevich b8434f6
# There is no easy way to disable ONLY octave. Have to cut it from CmakeList.txt
Dmitrij S. Kryzhevich be99495
Patch2:        mathgl-2.3-no_octave.patch
Dmitrij S. Kryzhevich b8434f6
Dmitrij S. Kryzhevich be99495
# Skip FLUID binary test
Dmitrij S. Kryzhevich be99495
Patch3:        mathgl-2.3-fltk-skip-fluid.patch
Dmitrij S. Kryzhevich 0463772
Dmitrij S. Kryzhevich be99495
# No qt4 and qt5 simultaneously. There are some issues with Qt5, leave v.4
Dmitrij S. Kryzhevich be99495
Patch4:        mathgl-2.3-no_qt4.patch
Dmitrij S. Kryzhevich 0463772
Dmitrij S. Kryzhevich a24724a
Requires:      %{name}-common = %{version}-%{release}
98e6a77
98e6a77
# mandatory packages
Dmitrij S. Kryzhevich bb1e50e
BuildRequires: gsl-devel libpng-devel
Dmitrij S. Kryzhevich bb1e50e
BuildRequires: desktop-file-utils
Dmitrij S. Kryzhevich a24724a
BuildRequires: cmake
98e6a77
98e6a77
# optional packages
Dmitrij S. Kryzhevich 06ab450
BuildRequires: freeglut-devel hdf5-devel libjpeg-devel libtiff-devel
Dmitrij S. Kryzhevich be99495
BuildRequires: fltk-devel qt5-qtbase-devel qt5-qtwebkit-devel
Dmitrij S. Kryzhevich 06ab450
BuildRequires: wxGTK-devel giflib-devel
D Haley 329d1cc
BuildRequires: libharu-devel
Dmitrij S. Kryzhevich 6c8c26e
BuildRequires: swig lua-devel
Dmitrij S. Kryzhevich 6c8c26e
#Stop for a while. No new SWIG for 3.8 octave
Dmitrij S. Kryzhevich 6c8c26e
%if 0%{?fedora} < 21
Dmitrij S. Kryzhevich 6c8c26e
BuildRequires: octave-devel 
Dmitrij S. Kryzhevich 6c8c26e
%endif
D Haley 329d1cc
BuildRequires: libXmu-devel
D Haley 329d1cc
BuildRequires: python2-devel numpy
98e6a77
98e6a77
98e6a77
Requires(post): info
98e6a77
Requires(preun): info
98e6a77
98e6a77
%description
98e6a77
Mathgl is a cross-platform library for making high-quality scientific
98e6a77
graphics. It provides fast data plotting and handling of large data
98e6a77
arrays, as well as  window and console modes and for easy embedding
98e6a77
into other programs. Mathgl integrates into fltk, qt and
98e6a77
opengl applications
98e6a77
Dmitrij S. Kryzhevich f69c1f8
%description -l ru
Dmitrij S. Kryzhevich f69c1f8
Mathgl - это кроссплатформенная библиотека для подготовки высококачественных
Dmitrij S. Kryzhevich f69c1f8
научных иллюстраций. Библиотека обладает возможностью работы с большими
Dmitrij S. Kryzhevich f69c1f8
массивами данных, быстрой отрисовки, при этом работая как в консольном, так и
Dmitrij S. Kryzhevich f69c1f8
оконном режимах, легко интегрируясь в другие приложения. Mathgl может быть
Dmitrij S. Kryzhevich f69c1f8
использована в FLTK, Qt и OpenGL приложениях.
Dmitrij S. Kryzhevich f69c1f8
98e6a77
%package devel
Dmitrij S. Kryzhevich a24724a
Summary:       Libraries and header files for %{name} library
Dmitrij S. Kryzhevich a24724a
Summary(ru):   Библиотеки и файлы заголовков для %{name}
Dmitrij S. Kryzhevich a24724a
Group:         Development/Libraries
Dmitrij S. Kryzhevich a24724a
Requires:      %{name} = %{version}-%{release}
Dmitrij S. Kryzhevich a24724a
Requires:      gsl-devel
98e6a77
98e6a77
%description devel
98e6a77
The %{name}-devel package contains libraries and header files for
Dmitrij S. Kryzhevich a24724a
developing applications that use serial version of %{name}.
98e6a77
98e6a77
%description devel -l ru
Dmitrij S. Kryzhevich a24724a
Пакет %{name}-devel содержит библиотеки и файлы заголовков, необходимые
Dmitrij S. Kryzhevich a24724a
для разработки приложений с использованием однопоточной версии %{name}.
98e6a77
98e6a77
%package doc
Dmitrij S. Kryzhevich a24724a
Group:         Documentation
Dmitrij S. Kryzhevich a24724a
Summary:       HTML documentation and tutorial for the %{name} applications
Dmitrij S. Kryzhevich a24724a
BuildArch:     noarch
Dmitrij S. Kryzhevich a24724a
BuildRequires: texi2html texinfo-tex
98e6a77
98e6a77
%description doc
Dmitrij S. Kryzhevich a24724a
This package contains the documentation in the HTML and PDF format of the %{name}
98e6a77
package.
98e6a77
Dmitrij S. Kryzhevich bb1e50e
%package -n udav
Dmitrij S. Kryzhevich a24724a
Summary:       Viewer and editor for mathgl graphs
Dmitrij S. Kryzhevich a24724a
Summary(ru):   Редактор и средство визуализации для MathGL
Dmitrij S. Kryzhevich a24724a
Group:         Applications/Engineering
Dmitrij S. Kryzhevich a24724a
Requires:      %{name} = %{version}-%{release}
D Haley 329d1cc
Dmitrij S. Kryzhevich bb1e50e
%description -n udav
D Haley 329d1cc
UDAV is cross-platform program for interactive data array visualization
D Haley 329d1cc
using the MathGL library. UDAV works as a front-end to the mathgl
D Haley 329d1cc
scripting engine, allowing for the generation of a wide variety of
D Haley 329d1cc
scientific graph styles.
D Haley 329d1cc
Dmitrij S. Kryzhevich bb1e50e
%description -n udav -l ru
Dmitrij S. Kryzhevich f69c1f8
UDAV - это кроссплатформенное приложение для интерактивной визуализации массивов
Dmitrij S. Kryzhevich bb1e50e
данных с применением библиотеки MathGL. UDAV, как GUI для MathGL, может быть
Dmitrij S. Kryzhevich f69c1f8
использован для формирования различного вида научных иллюстраций.
D Haley 329d1cc
Dmitrij S. Kryzhevich a24724a
%package common
Dmitrij S. Kryzhevich a24724a
Summary:       Common files for %{name}
Dmitrij S. Kryzhevich a24724a
Group:         Applications/Engineering
Dmitrij S. Kryzhevich fc7be90
BuildArch:     noarch
Dmitrij S. Kryzhevich a24724a
Requires:      %{name} = %{version}-%{release}
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%description common
Dmitrij S. Kryzhevich a24724a
%{summary}.
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich fc7be90
%package examples
Dmitrij S. Kryzhevich fc7be90
Summary:       Example illustration generators for %{name}
Dmitrij S. Kryzhevich fc7be90
Group:         Applications/Engineering
Dmitrij S. Kryzhevich fc7be90
Requires:      %{name} = %{version}-%{release}
Dmitrij S. Kryzhevich fc7be90
Dmitrij S. Kryzhevich fc7be90
%description examples
Dmitrij S. Kryzhevich fc7be90
Binaries for generation examples of illustrations that could be 
Dmitrij S. Kryzhevich fc7be90
prepared by %{name}.
Dmitrij S. Kryzhevich fc7be90
958976e
%if 0%{?with_openmpi}
Dmitrij S. Kryzhevich a24724a
%package openmpi
Dmitrij S. Kryzhevich a24724a
Summary:       OpenMPI version of %{name} library
Dmitrij S. Kryzhevich a24724a
Group:         Applications/Engineering
Dmitrij S. Kryzhevich a24724a
BuildRequires: openmpi-devel
Dmitrij S. Kryzhevich a24724a
Requires:      openmpi
Dmitrij S. Kryzhevich a24724a
Requires:      %{name}-common = %{version}-%{release}
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%description openmpi
Dmitrij S. Kryzhevich a24724a
%{summary}.
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%package openmpi-devel
Dmitrij S. Kryzhevich a24724a
Summary:       Devel files for OpenMPI version of %{name} library
Dmitrij S. Kryzhevich a24724a
Group:         Applications/Engineering
Dmitrij S. Kryzhevich a24724a
Requires:      %{name}-openmpi%{_isa} = %{version}-%{release}
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%description openmpi-devel
Dmitrij S. Kryzhevich a24724a
%{summary}.
958976e
%endif
Dmitrij S. Kryzhevich a24724a
Deji Akingunola aff82bd
%package mpich
Deji Akingunola aff82bd
Summary:       MPICH version of %{name} library
Dmitrij S. Kryzhevich a24724a
Group:         Applications/Engineering
Deji Akingunola aff82bd
BuildRequires: mpich-devel
Deji Akingunola aff82bd
Requires:      mpich
Dmitrij S. Kryzhevich a24724a
Requires:      %{name}-common = %{version}-%{release}
Deji Akingunola aff82bd
Provides:      %{name}-mpich2 = %{version}-%{release}
Deji Akingunola aff82bd
Obsoletes:     %{name}-mpich2 < 2.1.2-9
Dmitrij S. Kryzhevich a24724a
Deji Akingunola aff82bd
%description mpich
Dmitrij S. Kryzhevich a24724a
%{summary}.
Dmitrij S. Kryzhevich a24724a
Deji Akingunola aff82bd
%package mpich-devel
Deji Akingunola aff82bd
Summary:       Devel files for MPICH version of %{name} library
Dmitrij S. Kryzhevich a24724a
Group:         Applications/Engineering
Deji Akingunola aff82bd
Requires:      %{name}-mpich%{_isa} = %{version}-%{release}
Deji Akingunola aff82bd
Provides:      %{name}-mpich2-devel = %{version}-%{release}
Deji Akingunola aff82bd
Obsoletes:     %{name}-mpich2-devel < 2.1.2-9
Dmitrij S. Kryzhevich a24724a
Deji Akingunola aff82bd
%description mpich-devel
Dmitrij S. Kryzhevich a24724a
%{summary}.
Dmitrij S. Kryzhevich a24724a
98e6a77
%prep
98e6a77
%setup -q
98e6a77
e2e9797
98e6a77
#convert EOL encodings, maintaining timestames
D Haley 329d1cc
for file in AUTHORS ChangeLog.txt README ; do
Dmitrij S. Kryzhevich a24724a
    sed 's/\r//' $file > $file.new && \
Dmitrij S. Kryzhevich a24724a
    touch -r $file $file.new && \
Dmitrij S. Kryzhevich a24724a
    mv $file.new $file
98e6a77
done
98e6a77
Dmitrij S. Kryzhevich 0463772
%patch0 -b .no-hdf4-and-hdf5-simultaneously
Dmitrij S. Kryzhevich be99495
%patch1 -b .examples
Dmitrij S. Kryzhevich be99495
%patch2 -b .no_octave
Dmitrij S. Kryzhevich be99495
%patch3 -b .fluid
Dmitrij S. Kryzhevich be99495
%patch4 -b .no_qt4_qt5
98e6a77
Dmitrij S. Kryzhevich a24724a
# Fix hardcoded paths
Dmitrij S. Kryzhevich a24724a
sed -i s,/usr/local/share/doc/mathgl/,%{_docdir}/%{name}/, udav/udav_wnd.h
Dmitrij S. Kryzhevich a24724a
sed -i s,/usr/local/share/udav/,%{_datadir}/udav/, udav/udav_wnd.cpp
Dmitrij S. Kryzhevich 06ab450
sed -i s,/usr/local/share/mathgl/fonts/,%{_datadir}/%{name}/fonts/, udav/prop_dlg.cpp
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich be99495
98e6a77
%build
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich bfd5800
OMP_NUM_THREADS=1
Dmitrij S. Kryzhevich bfd5800
export OMP_NUM_THREADS
Dmitrij S. Kryzhevich bfd5800
Dmitrij S. Kryzhevich a24724a
%define building() \
Dmitrij S. Kryzhevich 06ab450
BUILD_MPI="-Denable-mpi=on -Denable-all-docs=off" %buildcommon
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%define building_serial() \
Dmitrij S. Kryzhevich 06ab450
BUILD_MPI="-Denable-mpi=off -Denable-all-docs=on" %buildcommon
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%define buildcommon() \
Dmitrij S. Kryzhevich a24724a
mkdir -p %{_target_platform}_$MPI_COMPILER_NAME; \
Dmitrij S. Kryzhevich a24724a
pushd %{_target_platform}_$MPI_COMPILER_NAME; \
Dmitrij S. Kryzhevich a24724a
%{cmake} \\\
Dmitrij S. Kryzhevich a24724a
    -DMGL_LIB_INSTALL_DIR=%{_libdir} \\\
Dmitrij S. Kryzhevich a24724a
    -Denable-all=on \\\
Dmitrij S. Kryzhevich a24724a
    -Denable-hdf4=off \\\
Dmitrij S. Kryzhevich 0463772
    -Denable-qt4=on \\\
Dmitrij S. Kryzhevich 0463772
    -Denable-qt5=off \\\
Dmitrij S. Kryzhevich e9402f6
    -Denable-octave=off \\\
Dmitrij S. Kryzhevich a24724a
    -Denable-all-swig=on \\\
Dmitrij S. Kryzhevich a24724a
    -Denable-all-widgets=on \\\
Dmitrij S. Kryzhevich a24724a
    $BUILD_MPI \\\
Dmitrij S. Kryzhevich a24724a
    ..; \
Dmitrij S. Kryzhevich a24724a
popd; \
Dmitrij S. Kryzhevich 9fd7846
make -C %{_target_platform}_$MPI_COMPILER_NAME
Dmitrij S. Kryzhevich 9fd7846
#make %{?_smp_mflags} -C %{_target_platform}_$MPI_COMPILER_NAME
Dmitrij S. Kryzhevich 9fd7846
# disable SMP build for testing
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
# serial
Dmitrij S. Kryzhevich a24724a
MPI_COMPILER_NAME=serial %building_serial
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
# MPI vars
Dmitrij S. Kryzhevich a24724a
export CC=mpicc
Dmitrij S. Kryzhevich a24724a
export CXX=mpicxx
Dmitrij S. Kryzhevich a24724a
958976e
%if 0%{?with_openmpi}
Dmitrij S. Kryzhevich a24724a
# OpenMPI
Dmitrij S. Kryzhevich a24724a
%{_openmpi_load}
Dmitrij S. Kryzhevich a24724a
MPI_COMPILER_NAME=openmpi %building
Dmitrij S. Kryzhevich a24724a
%{_openmpi_unload}
958976e
%endif
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich be99495
%if 0%{?with_mpich2}
Dmitrij S. Kryzhevich a24724a
# MPICH2
Deji Akingunola aff82bd
%{_mpich_load}
Deji Akingunola aff82bd
MPI_COMPILER_NAME=mpich %building
Deji Akingunola aff82bd
%{_mpich_unload}
Dmitrij S. Kryzhevich be99495
%endif
98e6a77
98e6a77
%install
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
# MPI install libs only
Dmitrij S. Kryzhevich a24724a
%define installing() \
Dmitrij S. Kryzhevich a24724a
make install DESTDIR=%{buildroot}%{_libdir}/$MPI_COMPILER_NAME -C %{_target_platform}_$MPI_COMPILER_NAME INSTALL="install -p"; \
Dmitrij S. Kryzhevich 7a91c29
mkdir -p %{buildroot}%{_libdir}/$MPI_COMPILER_NAME/lib/ \
Dmitrij S. Kryzhevich 7a91c29
mv %{buildroot}%{_libdir}/$MPI_COMPILER_NAME/%{_libdir}/libmgl* %{buildroot}%{_libdir}/$MPI_COMPILER_NAME/lib/; \
Dmitrij S. Kryzhevich a24724a
mkdir -p %{buildroot}%{_includedir}/$MPI_COMPILER/mgl2; \
Dmitrij S. Kryzhevich a24724a
mv %{buildroot}%{_libdir}/$MPI_COMPILER_NAME/%{_includedir}/mgl2/* %{buildroot}%{_includedir}/$MPI_COMPILER/mgl2/; \
Dmitrij S. Kryzhevich a24724a
rm -f %{buildroot}%{_libdir}/$MPI_COMPILER_NAME/lib/*.a; \
Dmitrij S. Kryzhevich a24724a
rm -r %{buildroot}%{_libdir}/$MPI_COMPILER_NAME/usr
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
# Serial
Dmitrij S. Kryzhevich a24724a
make install DESTDIR=%{buildroot} -C %{_target_platform}_serial INSTALL="install -p"
Dmitrij S. Kryzhevich a24724a
958976e
%if 0%{?with_openmpi}
Dmitrij S. Kryzhevich a24724a
# OpenMPI
Dmitrij S. Kryzhevich a24724a
%{_openmpi_load}
Dmitrij S. Kryzhevich a24724a
MPI_COMPILER_NAME=openmpi %installing
Dmitrij S. Kryzhevich a24724a
%{_openmpi_unload}
958976e
%endif
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich be99495
%if 0%{?with_mpich2}
Deji Akingunola aff82bd
# MPICH
Deji Akingunola aff82bd
%{_mpich_load}
Deji Akingunola aff82bd
MPI_COMPILER_NAME=mpich %installing
Deji Akingunola aff82bd
%{_mpich_unload}
Dmitrij S. Kryzhevich be99495
%endif
98e6a77
D Haley 329d1cc
#Remove symlink to .so file in python dir. Let python find libs normally
Dmitrij S. Kryzhevich f69c1f8
unlink %{buildroot}/%{python_sitelib}/_mathgl.so
98e6a77
D Haley 329d1cc
#Remove static libraries generated by cmake
Dmitrij S. Kryzhevich f69c1f8
rm %{buildroot}/%{_libdir}/*.a
98e6a77
Dmitrij S. Kryzhevich 06ab450
# Remove the binary mgl.cgi. Im not convinced about it (eg mem leak in main), and that its really needed
Dmitrij S. Kryzhevich 06ab450
# The same with man file for it
Dmitrij S. Kryzhevich 06ab450
rm %{buildroot}/%{_datadir}/mathgl/mgl.cgi
Dmitrij S. Kryzhevich 06ab450
rm %{buildroot}/%{_mandir}/man1/mgl.cgi.1*
Dmitrij S. Kryzhevich 06ab450
Dmitrij S. Kryzhevich 06ab450
# Remove bad octave archive
Dmitrij S. Kryzhevich 6c8c26e
%if 0%{?fedora} < 21
Dmitrij S. Kryzhevich 0eeb189
#rm %{buildroot}%{_datadir}/mathgl/mathgl.tar.gz
Dmitrij S. Kryzhevich 6c8c26e
%endif
Dmitrij S. Kryzhevich 06ab450
Dmitrij S. Kryzhevich 06ab450
# Prepare for documentation
Dmitrij S. Kryzhevich 06ab450
if [ -d _tmp_docdir ]
Dmitrij S. Kryzhevich 06ab450
then
Dmitrij S. Kryzhevich 06ab450
rm -r _tmp_docdir
Dmitrij S. Kryzhevich 06ab450
fi
Dmitrij S. Kryzhevich 06ab450
mv %{buildroot}%{_docdir}/mathgl _tmp_docdir
43329e3
Dmitrij S. Kryzhevich f69c1f8
# Check .desktop file
Dmitrij S. Kryzhevich bb1e50e
desktop-file-validate %{buildroot}%{_datadir}/applications/udav.desktop
Dmitrij S. Kryzhevich bb1e50e
Dmitrij S. Kryzhevich bb1e50e
# Maintain l18n for udav
Dmitrij S. Kryzhevich bb1e50e
%find_lang udav --with-qt
Dmitrij S. Kryzhevich f69c1f8
Dmitrij S. Kryzhevich fc7be90
%post -p /sbin/ldconfig
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%post common
Dmitrij S. Kryzhevich bb1e50e
/sbin/install-info %{_infodir}/%{name}_en.info %{_infodir}/dir || :
98e6a77
Dmitrij S. Kryzhevich a24724a
%preun common
98e6a77
if [ $1 = 0 ] ; then
Dmitrij S. Kryzhevich a24724a
    /sbin/install-info --delete %{_infodir}/%{name}_en.info %{_infodir}/dir || :
98e6a77
fi
98e6a77
D Haley 3408663
%postun -p /sbin/ldconfig
98e6a77
98e6a77
%files
D Haley 329d1cc
%doc AUTHORS ChangeLog.txt README COPYING  README_V2
98e6a77
%{_libdir}/*.so.*
Dmitrij S. Kryzhevich 06ab450
%{_libdir}/mgl-lua.so
98e6a77
%{_bindir}/mgl*
Dmitrij S. Kryzhevich fefea00
%exclude %{_bindir}/mgl_*example
D Haley 329d1cc
%{_mandir}/man1/mglconv.1.gz
D Haley 329d1cc
%{_mandir}/man1/mglview.1.gz
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%files devel
Dmitrij S. Kryzhevich a24724a
%{_libdir}/*.so
Dmitrij S. Kryzhevich 06ab450
%exclude %{_libdir}/mgl-lua.so
Dmitrij S. Kryzhevich a24724a
%{_includedir}/mgl2/
D Haley 329d1cc
Dmitrij S. Kryzhevich bb1e50e
%files -n udav -f udav.lang
D Haley 329d1cc
%{_bindir}/udav
D Haley 329d1cc
%{_mandir}/man1/udav.1.gz
D Haley 329d1cc
%{_datadir}/applications/udav.desktop
Dmitrij S. Kryzhevich bb1e50e
%dir %{_datadir}/udav/
D Haley 329d1cc
%{_datadir}/pixmaps/*.png
98e6a77
98e6a77
%files doc
Dmitrij S. Kryzhevich 06ab450
%doc AUTHORS COPYING
Dmitrij S. Kryzhevich 06ab450
%doc _tmp_docdir/*
D Haley 329d1cc
Dmitrij S. Kryzhevich a24724a
%files common
Dmitrij S. Kryzhevich a24724a
%{python_sitelib}/*
Dmitrij S. Kryzhevich a24724a
%{_datadir}/%{name}/
Dmitrij S. Kryzhevich a24724a
%{_infodir}/%{name}*.gz
Dmitrij S. Kryzhevich a24724a
%{_mandir}/man5/mgl.5.gz
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich fc7be90
%files examples
Dmitrij S. Kryzhevich fc7be90
%{_bindir}/mgl_*example
Dmitrij S. Kryzhevich fc7be90
958976e
%if 0%{?with_openmpi}
Dmitrij S. Kryzhevich a24724a
%files openmpi
Dmitrij S. Kryzhevich a24724a
%doc COPYING
Dmitrij S. Kryzhevich a24724a
%{_libdir}/openmpi/lib/*.so.*
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich a24724a
%files openmpi-devel
Dmitrij S. Kryzhevich a24724a
%{_libdir}/openmpi/lib/*.so
Dmitrij S. Kryzhevich a24724a
%{_includedir}/openmpi-%{_arch}/mgl2/
958976e
%endif
Dmitrij S. Kryzhevich a24724a
Deji Akingunola aff82bd
%files mpich
Dmitrij S. Kryzhevich a24724a
%doc COPYING
Deji Akingunola aff82bd
%{_libdir}/mpich/lib/*.so.*
Dmitrij S. Kryzhevich a24724a
Deji Akingunola aff82bd
%files mpich-devel
Deji Akingunola aff82bd
%{_libdir}/mpich/lib/*.so
Deji Akingunola aff82bd
%{_includedir}/mpich-%{_arch}/mgl2/
98e6a77
98e6a77
%changelog
Rex Dieter 92187e9
* Fri May 15 2015 Rex Dieter <rdieter@fedoraproject.org> 2.3-2.1
Rex Dieter 92187e9
- rebuild (fltk)
Rex Dieter 92187e9
Dmitrij S. Kryzhevich 9fd7846
* Sat Oct 11 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.3-2
Dmitrij S. Kryzhevich 9fd7846
- Disable SMP build for serial (docs failed).
Dmitrij S. Kryzhevich 9fd7846
Dmitrij S. Kryzhevich be99495
* Tue Oct 07 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.3-1
Dmitrij S. Kryzhevich be99495
- Update for new 2.3 version.
Dmitrij S. Kryzhevich be99495
5ce4115
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-6
5ce4115
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5ce4115
6c65129
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-5
6c65129
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6c65129
Deji Akingunola 13b9fcc
* Sat Feb 22 2014 Deji Akingunola <dakingun@gmail.com> - 2.2.1-4
Deji Akingunola 13b9fcc
- Rebuild for mpich-3.1
Deji Akingunola 13b9fcc
958976e
* Mon Feb 17 2014 Dan Horák <dan[at]danny.cz> - 2.2.1-3
958976e
- Conditionalize openmpi support, fixes build on s390(x)
958976e
Dmitrij S. Kryzhevich bfd5800
* Fri Feb  7 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.2.1-2
Dmitrij S. Kryzhevich bfd5800
- Workaround for race condition during package building.
Dmitrij S. Kryzhevich bfd5800
Dmitrij S. Kryzhevich 0463772
* Tue Feb  4 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.2.1-1
Dmitrij S. Kryzhevich 0463772
- Update for new 2.2.1.
Dmitrij S. Kryzhevich 0463772
Dmitrij S. Kryzhevich 26a860c
* Thu Jan 16 2014 Dmitrij S. Kryzhevich <krege@land.ru> - 2.2-2
Dmitrij S. Kryzhevich 6c8c26e
- Drop bogus ocatave support. For a time.
Dmitrij S. Kryzhevich 6c8c26e
Dmitrij S. Kryzhevich 06ab450
* Wed Dec 25 2013 Dmitrij S. Kryzhevich <krege@land.ru> - 2.2-1
Dmitrij S. Kryzhevich 06ab450
- Update to 2.2.
Dmitrij S. Kryzhevich 06ab450
- Fix bogus dates.
Dmitrij S. Kryzhevich 06ab450
- Fix issue with docdirs.
Dmitrij S. Kryzhevich 06ab450
6b07609
* Mon Aug 12 2013 Orion Poplawski <orion@cora.nwra.com> - 2.1.2-11
6b07609
- Fix hdf BRs
6b07609
8d5a463
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-10
8d5a463
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8d5a463
Deji Akingunola aff82bd
* Mon Jul 22 2013 Deji Akingunola <dakingun@gmail.com> - 2.1.2-9
Deji Akingunola aff82bd
- Rename mpich2 sub-packages to mpich and rebuild for mpich-3.0
Deji Akingunola aff82bd
6731669
* Thu May 16 2013 Orion Poplawski <orion@cora.nwra.com> - 2.1.2-8
6731669
- Rebuild for hdf5 1.8.11
6731669
Dmitrij S. Kryzhevich 06ab450
* Tue Apr 23 2013 Dmitrij S. Kryzhevich <krege@land.ru> - 2.1.2-7
Dmitrij S. Kryzhevich b35340c
- Modify patch to fix pics generation.
Dmitrij S. Kryzhevich b35340c
Dmitrij S. Kryzhevich fefea00
* Mon Apr 22 2013 Dmitrij S. Kryzhevich <krege@land.ru> - 2.1.2-6
Dmitrij S. Kryzhevich fefea00
- Add patch to fix pics generation.
Dmitrij S. Kryzhevich fefea00
Dmitrij S. Kryzhevich fc7be90
* Thu Apr 18 2013 Dmitrij S. Kryzhevich <krege@land.ru> - 2.1.2-5
Dmitrij S. Kryzhevich fc7be90
- Install binaries used for generation of examples of illustrations.
Dmitrij S. Kryzhevich fc7be90
Dmitrij S. Kryzhevich d43abf4
* Wed Apr 17 2013 Dmitrij S. Kryzhevich <krege@land.ru> - 2.1.2-4
Dmitrij S. Kryzhevich e6b80d2
- Disable some .png generation for -doc.
Dmitrij S. Kryzhevich d43abf4
Dmitrij S. Kryzhevich a24724a
* Mon Apr 15 2013 Dmitrij S. Kryzhevich <krege@land.ru> - 2.1.2-3
Dmitrij S. Kryzhevich a24724a
- MPI suport for MathGL library: add -common subpackage.
Dmitrij S. Kryzhevich a24724a
- MPI enabled for MathGL library: add OpenMPI and MPICH2 support.
Dmitrij S. Kryzhevich a24724a
- Reformat spec for better reading (spaces vs tabs, aligning).
Dmitrij S. Kryzhevich a24724a
Dmitrij S. Kryzhevich f69c1f8
* Mon Apr 15 2013 Dmitrij S. Kryzhevich <krege@land.ru> - 2.1.2-2
Dmitrij S. Kryzhevich f69c1f8
- Fix spec for better cmake use.
Dmitrij S. Kryzhevich bb1e50e
- Make vars in spec to be in one style.
Dmitrij S. Kryzhevich f69c1f8
- Add some Russian translation.
Dmitrij S. Kryzhevich a24724a
- .info is installed. Remove copying.
Dmitrij S. Kryzhevich a24724a
- Make udav sub-package to be with name "udav".
Dmitrij S. Kryzhevich bb1e50e
- Maintain traslation for udav.
Dmitrij S. Kryzhevich f69c1f8
D Haley 329d1cc
* Sun Apr 14 2013 <mycae(a!)gmx.com> 2.1.2-1
D Haley 329d1cc
- Update to upstream 2.1.2
D Haley 329d1cc
- New upstream has entirely different build system
D Haley 329d1cc
a1c28aa
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.3-3
a1c28aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a1c28aa
Adam Tkac e134ad2
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 1.11.3-2
Adam Tkac e134ad2
- rebuild due to "jpeg8-ABI" feature drop
Adam Tkac e134ad2
D Haley 3408663
* Fri Dec 07 2012 <mycae(a!t)yahoo.com> - 1.11.3-1
D Haley 3408663
- Update to 1.11.3
D Haley 3408663
f774830
* Mon Dec 03 2012 Orion Poplawski <orion@cora.nwra.com> - 1.11.2-9
f774830
- Rebuild for hdf5 1.8.10
f774830
152ad15
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.2-8
152ad15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
152ad15
c0ca5b2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.2-7
c0ca5b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c0ca5b2
D Haley c3bc9e3
* Fri Dec 09 2011 <mycae(a!t)yahoo.com> - 1.11.2-6
D Haley c3bc9e3
- Fix build fail due to libpng no longer including zlib
D Haley c3bc9e3
- Remove no longer needed libtool hack
D Haley c3bc9e3
08e3984
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.11.2-5
08e3984
- Rebuild for new libpng
08e3984
mycae 336e63d
* Thu Jun 23 2011 <mycae(a!t)yahoo.com> - 1.11.2-4
mycae 336e63d
- Recall why we needed hdf-devel. Its to keep configure happy.
mycae 336e63d
mycae 7ceadf8
* Thu Jun 23 2011 <mycae(a!t)yahoo.com> - 1.11.2-3
mycae 7ceadf8
- Bump for build
mycae 7ceadf8
mycae d7d7688
* Thu Jun 23 2011 <mycae(a!t)yahoo.com> - 1.11.2-2
mycae d7d7688
- Fix bug 678856, add hdf-static as buildrequire
mycae d7d7688
builder 3c3761f
* Wed Jun 01 2011 <mycae(a!t)yahoo.com> - 1.11.2-1
builder 3c3761f
- Update to upstream 1.11.2
builder 3c3761f
builder 3c3761f
* Tue May 31 2011 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.11.0.1-6
builder 3c3761f
- Reflect fltk having changed its include directory (Fix FTBS).
builder 3c3761f
- Fix German %%summary.
builder 3c3761f
Orion Poplawski 4cb2271
* Tue May 17 2011 Orion Poplawski <orion@cora.nwra.com> - 1.11.0.1-5
Orion Poplawski 4cb2271
- Rebuild for hdf5 1.8.7 
Orion Poplawski 4cb2271
mycae 76fb802
* Sun Feb 27 2011 <mycae(a!t)yahoo.com> - 1.11.0.1-4
D Haley 39f9fd1
- Remove octave for Bug 679948, and dynamic patch non-functional due
D Haley 39f9fd1
  to swig covariant return type problems with octave_map
D Haley 39f9fd1
mycae 76fb802
* Sat Feb 12 2011 <mycae(a!t)yahoo.com> - 1.11.0.1-3
mycae 76fb802
- Request rebuild -- octave-config needs to emit correct api. 
mycae 76fb802
d2eb92c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.0.1-2
d2eb92c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d2eb92c
D Haley b8b8f21
* Sat Nov 27 2010 <mycae(a!t)yahoo.com> - 1.11.0.1-1
D Haley b8b8f21
- Update to 1.11.0.1
D Haley b8b8f21
mycae ed8f03b
* Sun Aug 08 2010 <mycae(a!t)yahoo.com> - 1.10.2.1-3
mycae ed8f03b
- Add gsl-devel to requires
mycae ed8f03b
e4671c9
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 1.10.2.1-2.1
e4671c9
- rebuilt against wxGTK-2.8.11-2
e4671c9
b57396b
* Wed Apr 14 2010 <mycae(a!t)yahoo.com> - 1.10.2.1-1.1
b57396b
- tag bump
b57396b
e2e9797
* Wed Apr 14 2010 <mycae(a!t)yahoo.com> - 1.10.2.1-1
e2e9797
- Update to 1.10.2.1
e2e9797
- Fix linker error due to DSO change (Bug #564982)
e2e9797
43329e3
* Sat Jan 02 2010 <mycae(a!t)yahoo.com> - 1.10-2
43329e3
- Fix octave interface to load on startup
43329e3
- Fix texinfo insatll
43329e3
aa0e9b7
* Sat Jan 02 2010 <mycae(a!t)yahoo.com> - 1.10-1
aa0e9b7
- Update to 1.10
aa0e9b7
c6c8192
* Wed Nov 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.9-8
c6c8192
- Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI)
c6c8192
125906c
* Sun Oct 25 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 1.9-7
125906c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
125906c
98e6a77
* Mon Sep 14 2009 <mycae(a!t)yahoo.com> 1.9-6
98e6a77
- Add COPYING to doc
98e6a77
98e6a77
* Sat Sep 12 2009 <mycae(a!t)yahoo.com> 1.9-5
98e6a77
- Removed the word "static" from devel description, as doesn't have static
98e6a77
- Fonts now owned at datadir/name level
98e6a77
- Added COPYRIGHT NEWS and TODO
98e6a77
98e6a77
* Sat Aug 15 2009 <mycae(a!t)yahoo.com> 1.9-4
98e6a77
- Fix octave installation method
98e6a77
- Remove wx lib, which doesn't have meaningful code.
98e6a77
98e6a77
* Sun Aug 02 2009  <mycae(a!t)yahoo.com> 1.9-3
98e6a77
- Fix texinfo install (mv to main & add pre/post)
98e6a77
- Remove chrpath, as we now autoreconf
98e6a77
- Add octave pkg rebuild commands
98e6a77
98e6a77
* Tue Jul 21 2009  <mycae(a!t)yahoo.com> 1.9-2 
98e6a77
- Fix rpath for build on x86_64. 
98e6a77
- remove unrecognized configure options: --enable-tiff, --disable-ltdl-install
98e6a77
- Switch to --enable-all --enable-octave
98e6a77
- Add hdf5 patch
98e6a77
- Add doc subpackage
98e6a77
98e6a77
* Thu Jul 09 2009 <mycae(a!t)yahoo.com> 1.9-1
98e6a77
- Update to 1.9
98e6a77
- Drop explicit Requires
98e6a77
- Perserve timestamps on EOL conversion
98e6a77
- Added patch to disable unused gsl cblas link
98e6a77
Dmitrij S. Kryzhevich 06ab450
* Sat May 02 2009 <mycae(a!t)yahoo.com> 1.8.1-1
98e6a77
- Update to 1.8.1
98e6a77
98e6a77
* Wed Jan 28 2009 <mycae(a!t)yahoo.com> 1.8-3
98e6a77
- Ensure timestamps are preserved during make install
98e6a77
- Modify defattr
98e6a77
- Remove UDAV from package summary
98e6a77
98e6a77
* Mon Dec 29 2008 <mycae(a!t)yahoo.com> 1.8-2
98e6a77
- Remove redundant and erroneous licence field in devel section
98e6a77
- Fix files from mgl/*h to mgl/
98e6a77
- Removed Requires, per bugzilla recommendation.
98e6a77
- Disabled static library generation
98e6a77
- Removed libltdl from build 
98e6a77
- Added libtool-ltdl as BuildRequires
98e6a77
98e6a77
* Mon Dec 29 2008 <mycae(a!t)yahoo.com> 1.8-1
98e6a77
- Updated to version 1.8
98e6a77
- Added QT env. vars for fedora
98e6a77
- Cleaned up description
98e6a77
- Change licence field from GPL to GPLv2
98e6a77
98e6a77
* Wed Jun 4 2008 Nik <niktr@mail.ru> 
98e6a77
- disabled hdf5 support according to developer request
98e6a77
98e6a77
* Tue Jun 3 2008 Nik <niktr@mail.ru> 
98e6a77
- updated to version 1.7.1
98e6a77
Dmitrij S. Kryzhevich 06ab450
* Mon Jun 2 2008 Nik <niktr@mail.ru> 
98e6a77
- updated to version 1.7
98e6a77
98e6a77
* Sat Apr 5 2008 Nik <niktr@mail.ru> 
98e6a77
- updated to version 1.6.2
98e6a77
98e6a77
* Thu Mar 13 2008 Nik <niktr@mail.ru>
98e6a77
- updated to version 1.6
98e6a77
- added fltk(-devel) to requres list
98e6a77
98e6a77
* Tue Mar 11 2008 Nik <niktr@mail.ru>
98e6a77
- tiff bug fixed
98e6a77
- enable-all option added
98e6a77
98e6a77
* Sat Mar 1 2008 Nik <niktr@mail.ru>
98e6a77
- spec cleanup
98e6a77
- --enable(jpeg, tiff, hdf5) features added
98e6a77
- enable-tiff leads to make error, submitted to author. Feature disabled.
98e6a77
98e6a77
* Fri Feb 29 2008 Nik <niktr@mail.ru>
98e6a77
- initial build of version 1.5