File mathgl.spec of Package mathgl
# spec file for package MathGL (Version 1.6.2)
#
# Copyright (c) 2008 Matwey V. Kornilov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments via http://build.opensuse.org
#
# norootforbuild
Name: mathgl
BuildRequires: gcc gcc-c++ gsl gsl-devel freeglut freeglut-devel libpng libpng-devel Mesa Mesa-devel
License: GPL
Group: Productivity/Graphics/Visualization/Graph
Version: 1.8.1
Release: 1
Summary: MathGL - library for scientific graphics
Source0: mathgl-%{version}.tar.gz
#Source1: mathgl-1.6-eng.pdf
#Patch0: 00_makefileam.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
%description
MathGL is a free library for the plotting of the data. It has more than 40 general types of graphics for 1d, 2d and 3d data arrays.
It can export graphics to raster and vector (EPS or SVG) formats. It has OpenGL
interface and can be used from console programs. It has functions for data
handling and script MGL language for simplification of data plotting. Also it
has several types of transparency and smoothed lightning, vector fonts and
TeX-like symbol parsing, arbitrary curvilinear coordinate system and many over
useful things. Finally it is platform independent and free.
http://mathgl.sourceforge.net
Authors:
--------
Alexey Balakin <balakin@appl.sci-nnov.ru>
%package -n mathgl-devel
Summary: MathGL - development files
Group: Development/Libraries/C and C++
Autoreqprov: on
%description -n mathgl-devel
This package contains the headers, static libraries and
documentation for MathGL.
http://mathgl.sourceforge.net
Authors:
--------
Alexey Balakin <balakin@appl.sci-nnov.ru>
%prep
%setup
#%patch -p1
#cp %{S:1} .
%build
%configure
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYRIGHT INSTALL ChangeLog NEWS README
%{_libdir}/libmgl*.so.*
%{_bindir}/mgl2eps
%{_bindir}/mgl2png
%{_bindir}/mgl2svg
%{_bindir}/mgl_example
%{_datadir}/%{name}/bigforth
%{_datadir}/%{name}/fonts
%files -n mathgl-devel
%defattr(-,root,root)
#%doc mathgl-1.6-eng.pdf
%{_includedir}/mgl/*.h
%{_libdir}/libmgl*.la
%{_libdir}/libmgl*.so
%{_libdir}/libmgl*.a
%{_libdir}/mgl
%changelog
* Fri Sep 19 2008 - v.astanin@gmail.com
- version 1.7
* Thu Apr 10 2008 - matwey.kornilov@gmail.com
- version 1.6.2