1
by Michael Koch
Import upstream version 0.1.1 |
1 |
%define name @PACKAGE@ |
2 |
%define version @VERSION@ |
|
3 |
%define release 1 |
|
4 |
%define serial 1 |
|
5 |
%define prefix /usr |
|
6 |
||
7 |
Summary: An OpenGL Extensions library using SDL |
|
8 |
Name: %{name} |
|
9 |
Version: %{version} |
|
10 |
Release: %{release} |
|
11 |
Serial: %{serial} |
|
12 |
Copyright: LGPL |
|
13 |
Group: System Environment/Libraries |
|
14 |
Source: %{name}-%{version}.tar.gz |
|
15 |
BuildRoot: /var/temp/%{name}-%{version}-buildroot |
|
16 |
Requires: SDL >= @SDL_VERSION@ |
|
17 |
BuildRequires: SDL-devel >= @SDL_VERSION@ |
|
18 |
Prefix: %{prefix} |
|
19 |
||
20 |
%description
|
|
21 |
Sage is an OpenGL extensions library using SDL's SDL_GetProcAddress function to connect OpenGL extension functions. |
|
22 |
||
23 |
%package devel |
|
24 |
Summary: An OpenGL Extensions library using SDL |
|
25 |
Group: Development/Libraries |
|
26 |
Requires: %{name} = %{version} |
|
27 |
||
28 |
%description devel |
|
29 |
Sage is an OpenGL extensions library using SDL's SDL_GetProcAddress function to connect OpenGL extension functions. |
|
30 |
||
31 |
%prep
|
|
32 |
%setup
|
|
33 |
||
34 |
%build
|
|
35 |
CXXFLAGS=$RPM_OPT_FLAGS ./configure --prefix=%{prefix} |
|
36 |
||
37 |
%install
|
|
38 |
rm -rf $RPM_BUILD_ROOT |
|
39 |
make prefix=$RPM_BUILD_ROOT%{prefix} install |
|
40 |
||
41 |
%clean
|
|
42 |
rm -rf $RPM_BUILD_ROOT |
|
43 |
||
44 |
%files
|
|
45 |
%defattr(-,root,root) |
|
46 |
%{prefix}/lib/libsage.so.* |
|
47 |
%doc AUTHORS README COPYING NEWS |
|
48 |
||
49 |
%files devel |
|
50 |
%defattr(-,root,root) |
|
51 |
%{prefix}/include/sage/sage.h |
|
52 |
%{prefix}/include/sage/header.h |
|
53 |
%{prefix}/include/sage/utility.h |
|
54 |
%{prefix}/include/sage/glext_sage.h |
|
55 |
%{prefix}/lib/libsage.a |
|
56 |
%{prefix}/lib/libsage.so |
|
57 |
%{prefix}/lib/libsage.la |
|
58 |
%{prefix}/lib/pkgconfig/sage.pc |