forked from vancegroup-mirrors/gmtl-mirror
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pygmtl.spec
80 lines (61 loc) · 2.11 KB
/
pygmtl.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Spec file for PyGMTL.
%define name pygmtl
%define version 0.5.4
%define release 1
Name: %{name}
Summary: Python bindings for GMTL
Version: %{version}
Release: %{release}%{?dist}
Source: gmtl-%{version}.tar.gz
URL: http://ggt.sourceforge.net/
Group: Development/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
License: LGPL
BuildPrereq: scons >= 0.96.1
BuildPrereq: boost-devel >= 1.32
%description
PyGMTL provides Python language bindings to the Generic Math Template Library
(GMTL), a C++ library. GMTL is a high-performance, extensible, and generic
math library. The design is based upon discussion with many experts in the
field of computer graphics and virtual reality, culminating the efforts of
many previous math library efforts. GMTL gives the graphics programmer
several core math types and a rich library of graphics/math operations on
those types.
%define py_ver %(python -c 'import sys;print(sys.version[0:3])')
%ifarch i386 i486 i586
%define pygmtl_arch i686
%else
%define pygmtl_arch %{_arch}
%endif
%prep
rm -rf %{buildroot}
%setup -q -n gmtl-%{version}
%build
# This needs to be fixed once we have a boost install.
scons EnablePython=True BoostPythonDir=/usr optimize=yes %{_smp_mflags}
strip build.linux-%{pygmtl_arch}/gmtl.so
%install
install_dir=`python -c 'import distutils.sysconfig as ds; print ds.get_python_lib(True)'`
mkdir -p %{buildroot}$install_dir
cp -p build.linux-%{pygmtl_arch}/gmtl.so %{buildroot}$install_dir
%clean
rm -rf %{buildroot}
%pre
%post
%preun
%postun
%files
%defattr(-, root, root)
%{_libdir}/python%{py_ver}/site-packages/gmtl.so
%doc AUTHORS ChangeLog COPYING LICENSE.addendum README README-PyGMTL
%changelog
* Wed Jun 27 2007 Patrick Hartling <[email protected]> 0.5.4-1
- Updated version to 0.5.4
* Mon Jun 25 2007 Patrick Hartling <[email protected]> 0.5.3-1
- Updated version to 0.5.3
* Mon Jun 25 2007 Patrick Hartling <[email protected]> 0.5.2-1
- Updated version to 0.5.2
* Wed Jun 13 2007 Patrick Hartling <[email protected]> 0.5.1-1
- Updated to version 0.5.1
* Wed Jan 10 2007 Patrick Hartling <[email protected]>
- Fixed packaging errors