-
Notifications
You must be signed in to change notification settings - Fork 1
/
sage.spec.in
76 lines (62 loc) · 1.73 KB
/
sage.spec.in
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
%define name @PACKAGE@
%define version @VERSION@
%define release 1
%define prefix /usr
Summary: An OpenGL Extensions library using SDL
Name: %{name}
Version: %{version}
Release: %{release}
License: LGPL
Group: System Environment/Libraries
Source: %{name}-%{version}.tar.gz
Url: http://www.worldforge.org/
Requires: SDL >= @SDL_VERSION@
BuildRequires: SDL-devel >= @SDL_VERSION@
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Prereq: /sbin/ldconfig
AutoReqProv: no
%description
Sage is an OpenGL extensions library using SDL's SDL_GetProcAddress function to
connect OpenGL extension functions.
%package devel
Summary: An OpenGL Extensions library using SDL
Group: Development/Libraries
Requires: %{name} = %{version} SDL-devel >= @SDL_VERSION@
%description devel
Sage is an OpenGL extensions library using SDL's SDL_GetProcAddress function to connect OpenGL extension functions.
%prep
%setup -q
%build
CXXFLAGS=$RPM_OPT_FLAGS %configure
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libsage.so.*
%doc AUTHORS README COPYING NEWS
%files devel
%defattr(-,root,root)
%{_includedir}/sage/sage.h
%{_includedir}/sage/header.h
%{_includedir}/sage/utility.h
%{_includedir}/sage/sage_fptr.h
%{_includedir}/sage/GL.h
%{_includedir}/sage/GLU.h
%{_libdir}/libsage.a
%{_libdir}/libsage.so
%{_libdir}/libsage.la
%{_libdir}/pkgconfig/sage.pc
%{_mandir}/man3/sage.3.gz
%{_mandir}/man3/sage_init.3.gz
%changelog
* Mon Oct 10 2005 Simon Goodall <[email protected]>
- Add man pages to files section
* Mon Jun 28 2004 Simon Goodall <[email protected]>
- Replace _prefix with better macros
- Add missing file entries
- Ignore libGL.so.1