forked from rpavlik/gmtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gmtl.spec
135 lines (108 loc) · 3.81 KB
/
gmtl.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Spec file for GMTL.
%define name gmtl
%define version 0.5.4
%define release 1
Name: %{name}
Summary: The GMTL Headers
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.gz
URL: http://ggt.sourceforge.net/
Group: Development/C++
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
License: LGPL
BuildPrereq: scons >= 0.96.1
BuildArch: noarch
Requires: flagpoll >= 0.8.1
%description
The Generic Math Template 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.
%package config
Summary: The gmtl-config script that calls flagpoll
Group: Development/C++
Requires: gmtl
Requires: flagpoll >= 0.8.1
Requires: python
%description config
The gmtl-config Python script that provides backwards compability for older
packages not using Flagpoll for getting compiler options necessary for
building against GMTL.
%package doc
Summary: GMTL API documentation
Group: Development/C++
BuildPrereq: doxygen
BuildPrereq: graphviz
%description doc
GMTL API documentation in HTML form and as man pages.
%prep
rm -rf %{buildroot}
%setup -q
%build
# This needs to be fixed once we have a boost install.
scons prefix=%{_prefix}
cd docs && make ref man
cd ..
%install
[ -z %{buildroot} ] || rm -rf %{buildroot}
scons install prefix=%{buildroot}%{_prefix}
# Remove all stupid scons temp files
find %{buildroot}%{_prefix} -name .sconsign -exec rm {} \;
find %{buildroot}%{_prefix}/include -name \*.h -exec chmod 644 {} \;
mkdir -p %{buildroot}%{_docdir}/gmtl-%{version}
mv docs/html %{buildroot}%{_docdir}/gmtl-%{version}
mv docs/man %{buildroot}%{_docdir}/gmtl-%{version}
for f in README AUTHORS ChangeLog COPYING LICENSE.addendum ; do
cp $f %{buildroot}%{_docdir}/gmtl-%{version}
done
%clean
[ -z %{buildroot} ] || rm -rf %{buildroot}
%pre
%post
%preun
%postun
%files
%defattr(-, root, root)
%dir %{_includedir}/gmtl-%{version}/
%dir %{_includedir}/gmtl-%{version}/gmtl/
%{_includedir}/gmtl-%{version}
%{_datadir}/flagpoll
%dir %{_docdir}/gmtl-%{version}/
%doc %{_docdir}/gmtl-%{version}/AUTHORS
%doc %{_docdir}/gmtl-%{version}/ChangeLog
%doc %{_docdir}/gmtl-%{version}/COPYING
%doc %{_docdir}/gmtl-%{version}/LICENSE.addendum
%doc %{_docdir}/gmtl-%{version}/README
%files config
%{_bindir}/gmtl-config
%files doc
%dir %{_docdir}/gmtl-%{version}/
%doc %{_docdir}/gmtl-%{version}/html
%doc %{_docdir}/gmtl-%{version}/man
%changelog
* Wed Jun 27 2007 Patrick Hartling <[email protected]> 0.5.4-1
- Updated version to 0.5.4
* Wed Jun 27 2007 Patrick Hartling <[email protected]> 0.5.3-4
- Package documentation in HTML and man page forms.
* Wed Jun 27 2007 Patrick Hartling <[email protected]> 0.5.3-3
- Package gmtl-config separately so that multiple versions of the gmtl
package can be installed in parallel.
* Wed Jun 27 2007 Patrick Hartling <[email protected]> 0.5.3-2
- The .fpc file now uses a relative path, so it is not necessary to perform
post processing on it to remove the staging area path..
* 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
- Fixed bad path in the GMTL .fpc file caused by the build not handling the
staging root correctly
- Package versioned header directory
* Wed Jun 13 2007 Patrick Hartling <[email protected]>
- Updated for the use of Flagpoll rather than pkg-config
* Wed Jan 10 2007 Patrick Hartling <[email protected]>
- Fixed packaging errors