135 lines
4.3 KiB
RPMSpec
135 lines
4.3 KiB
RPMSpec
#
|
|
# spec file for package gltools
|
|
#
|
|
# Copyright (c) 2012 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: gltools
|
|
Version: 2.4
|
|
Release: 0
|
|
Summary: A colection of opengl tools for numerical analysts
|
|
License: MIT
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://www.wias-berlin.de/software/gltools/
|
|
Source0: %{name}-2-4.tar.bz2
|
|
Patch0: gltools-2.4-no-return-in-non-void-fix.patch
|
|
BuildRequires: Mesa-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
gltools has been designed with the needs of numerical analysts in mind.
|
|
Thus, unless many other packages available, it can be used to enhance
|
|
existing codes with interactive or non-interactive graphical output.
|
|
It enhances the OpenGL API with the following additional functionality:
|
|
* Multiple independent windows.
|
|
* Basic interactive handling through mouse and keyboard.
|
|
* Interactive three-dimensional rendering volume.
|
|
* Character output.
|
|
* High quality frame dump in encapsulated postscript format.
|
|
* MPEG video recording of window contents.
|
|
* Piecewise linear function rendering on two- and three-dimensional
|
|
simplex meshes (landscape view of plane sections, isolevel surfaces, isolines)
|
|
with an universal, callback based mesh interface
|
|
|
|
%package -n libgltools2
|
|
Summary: An colection of opengl tools for numerical analysts
|
|
Group: System/Libraries
|
|
|
|
%description -n libgltools2
|
|
gltools has been designed with the needs of numerical analysts in mind.
|
|
Thus, unless many other packages available, it can be used to enhance
|
|
existing codes with interactive or non-interactive graphical output.
|
|
It enhances the OpenGL API with the following additional functionality:
|
|
* Multiple independent windows.
|
|
* Basic interactive handling through mouse and keyboard.
|
|
* Interactive three-dimensional rendering volume.
|
|
* Character output.
|
|
* High quality frame dump in encapsulated postscript format.
|
|
* MPEG video recording of window contents.
|
|
* Piecewise linear function rendering on two- and three-dimensional
|
|
simplex meshes (landscape view of plane sections, isolevel surfaces, isolines)
|
|
with an universal, callback based mesh interface
|
|
|
|
%package devel
|
|
Summary: Development and header files for %{name}
|
|
Group: Development/Libraries/C and C++
|
|
Provides: %{name}-devel-static = %{version}
|
|
Requires: libgltools2 = %{version}
|
|
Requires: Mesa-devel
|
|
|
|
%description devel
|
|
This package contains the development and header files for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-2-4
|
|
%patch0 -p1
|
|
|
|
%build
|
|
make CCOPT="$RPM_OPT_FLAGS -fPIC" LIBRARY_PATH=-L/usr/X11R6/lib
|
|
|
|
mkdir shared
|
|
cd shared
|
|
ar x ../libgltools.a
|
|
gcc -shared -Wl,-soname=libgltools.so.2 -o ../libgltools.so.2.4 -L$LIBRARY_PATH -lX11 -lXext -lGL -lm *.o
|
|
cd ..
|
|
|
|
# build binaries and static lib
|
|
make CCOPT="$RPM_OPT_FLAGS" LIBRARY_PATH=-L/usr/X11R6/lib
|
|
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
for bin in glview glrexample glwexample-appctrl glwexample-evctrl; do
|
|
install -m755 $bin %{buildroot}%{_bindir}
|
|
done
|
|
|
|
install -m755 libgltools.so.* %{buildroot}%{_libdir}
|
|
install -m644 libgltools.a %{buildroot}%{_libdir}
|
|
|
|
pushd %{buildroot}%{_libdir}
|
|
ln -s libgltools.so.2.4 libgltools.so.2
|
|
ln -s libgltools.so.2.4 libgltools.so
|
|
popd
|
|
|
|
cp *.h %{buildroot}%{_includedir}
|
|
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%post -n libgltools2 -p /sbin/ldconfig
|
|
|
|
%postun -n libgltools2 -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE README.html
|
|
%{_bindir}/*
|
|
|
|
%files -n libgltools2
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.a
|
|
|
|
%changelog
|