Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1:Update
mathgl
mathgl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mathgl.spec of Package mathgl
# # spec file for package mathgl # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: mathgl Version: 1.11.2 Release: 1 License: GPLv3 Summary: Cross-platform library for making high-quality scientific graphics Url: http://mathgl.sourceforge.net Group: Productivity/Scientific/Other Source: %{name}-%{version}.tar.bz2 # PATCH-FIX-UPSTERAM mathgl-fltk.patch badshah400@gmail.com -- Correct typo in fltk's include statements Patch0: mathgl-fltk.patch BuildRequires: gcc-c++ BuildRequires: fdupes BuildRequires: fltk-devel BuildRequires: freeglut-devel BuildRequires: giflib-devel BuildRequires: gsl-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libqt4-devel BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: libtool BuildRequires: swig BuildRequires: python-devel BuildRequires: python-numpy-devel BuildRequires: texinfo %if %suse_version >= 1140 BuildRequires: wxWidgets-devel %define _use_internal_dependency_generator 0 %define __find_requires %wx_requires %else BuildRequires: wxGTK-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build Recommends: %{name}-doc 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/C and C++ Requires: %{name} = %{version} Requires: gsl-devel %description devel 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. This package contains libraries and header files for developing applications that use mathgl. %package doc Summary: Documentation for %{name} Group: Documentation/Other Requires: %{name} = %{version} %description doc 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. This package provides the documentation for mathgl. %package -n python-mathgl Summary: Libraries and header files for %{name} library Group: Productivity/Scientific/Other Requires: %{name} = %{version} Requires: python-base %description -n python-mathgl 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. This package provides the python bindings for mathgl. %prep %setup -q %patch0 -p1 #Correct location of numpy/arrayobject.h header file numpy_h=%{python_sitearch}/numpy/core/include/numpy/arrayobject.h sed -i "s|<numpy/arrayobject.h>|\"${numpy_h}\"|" lang/numpy.i #convert EOL encodings, maintaining timestames sed -i 's/r//' AUTHORS ChangeLog.txt README COPYRIGHT %build %configure \ --disable-static \ --enable-shared \ --enable-pthread \ --enable-gsl \ --disable-hdf5 \ --enable-gif \ --enable-jpeg \ --enable-docs \ --enable-glut \ --enable-wx \ --enable-qt \ --enable-fltk \ --enable-python # --enable-octave Turn on interface to octave make %{?_smp_mflags} %install %make_install #Remove residual .la files rm -f %{buildroot}/%{_libdir}/*.la rm -f %{buildroot}/%{python_sitearch}/*.la %fdupes %{buildroot}%{python_sitelib}/ %clean %{?buildroot:%__rm -rf "%{buildroot}"} %post /sbin/ldconfig /sbin/install-info --info-dir=%{_infodir} %{_infodir}/mathgl* %postun /sbin/ldconfig /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/mathgl* %files %defattr(-,root,root) %doc AUTHORS ChangeLog.txt README COPYING COPYRIGHT NEWS TODO %{_libdir}/*.so.* %{_bindir}/mgl* %{_datadir}/%{name}/ %{_infodir}/mathgl* %{_infodir}/mgl* %files doc %defattr(-,root,root) %dir %{_datadir}/doc/mathgl %{_datadir}/doc/mathgl/* %files devel %defattr(-,root,root) %{_includedir}/mgl/ %{_libdir}/*.so %files -n python-mathgl %defattr(-,root,root) %{python_sitelib}/mathgl* %{python_sitearch}/_mathgl.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor