| 1 |
### ########################################################################## |
| 2 |
### SG = < Socket Graphics > |
| 3 |
### Copyright (C) 1994-- Michael Holst |
| 4 |
### |
| 5 |
### This library is free software; you can redistribute it and/or |
| 6 |
### modify it under the terms of the GNU Lesser General Public |
| 7 |
### License as published by the Free Software Foundation; either |
| 8 |
### version 2.1 of the License, or (at your option) any later version. |
| 9 |
### |
| 10 |
### This library is distributed in the hope that it will be useful, |
| 11 |
### but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
### Lesser General Public License for more details. |
| 14 |
### |
| 15 |
### You should have received a copy of the GNU Lesser General Public |
| 16 |
### License along with this library; if not, write to the Free Software |
| 17 |
### Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 |
### |
| 19 |
### rcsid="$Id: sg.spec,v 1.4 2010/08/09 19:01:59 fetk Exp $" |
| 20 |
### ########################################################################## |
| 21 |
|
| 22 |
## ########################################################################### |
| 23 |
## File: sg.spec |
| 24 |
## |
| 25 |
## Purpose: Spec file for building RPMS |
| 26 |
## |
| 27 |
## Notes: If this is installed in the top directory the user can build a |
| 28 |
## full set of src and arch rpms with one command: |
| 29 |
## |
| 30 |
## rpm -ta sg.tar.gz |
| 31 |
## |
| 32 |
## Author: Stephen Bond and Michael Holst |
| 33 |
## ########################################################################### |
| 34 |
|
| 35 |
Summary: Socket Graphics |
| 36 |
Name: sg |
| 37 |
Version: 0.1 |
| 38 |
Release: 1 |
| 39 |
Copyright: GPL |
| 40 |
Group: Applications/Science |
| 41 |
Prefix: /usr/local |
| 42 |
Buildroot: %{_topdir}/buildroot |
| 43 |
Source: sg.tar.gz |
| 44 |
URL: http://scicomp.ucsd.edu/~mholst |
| 45 |
Packager: Michael Holst <[email protected]> |
| 46 |
%description |
| 47 |
SG (Socket Graphics) is an unstructured simplex mesh OpenGL display and |
| 48 |
manipulation tool for use with the finite element research codes MC and |
| 49 |
PLTMG. SG provides OpenGL-based graphics over UNIX and INET sockets on |
| 50 |
UNIX/X-based systems, Win32-based systems, and other systems. It can |
| 51 |
also be used with MCLite as a replacement for MATLAB's builtin graphics |
| 52 |
for polygons. SG can read Geomview OFF files and OpenInventor files for |
| 53 |
polygonal surface descriptions, and it can also read PDB files for molecule |
| 54 |
descriptions. SG looks and acts somewhat like Geomview, and it mimics most |
| 55 |
of the basic features and controls of Geomview for displaying polygonal |
| 56 |
2-manifolds. |
| 57 |
|
| 58 |
%prep |
| 59 |
%setup -n sg |
| 60 |
|
| 61 |
%build |
| 62 |
|
| 63 |
./configure --enable-shared --prefix=${RPM_BUILD_ROOT}/%{prefix} |
| 64 |
make |
| 65 |
|
| 66 |
%install |
| 67 |
mkdir -p ${RPM_BUILD_ROOT}/%{prefix} |
| 68 |
make install |
| 69 |
|
| 70 |
%clean |
| 71 |
rm -rf ${RPM_BUILD_ROOT} |
| 72 |
|
| 73 |
%post |
| 74 |
|
| 75 |
%postun |
| 76 |
|
| 77 |
%files |
| 78 |
%defattr(-,root,root) |
| 79 |
%{prefix}/lib |
| 80 |
%{prefix}/include |
| 81 |
%doc AUTHORS COPYING INSTALL NEWS ChangeLog doc |