File: gtkglarea.spec

package info (click to toggle)
gtkglarea 1.2.3-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,340 kB
  • ctags: 292
  • sloc: sh: 6,878; ansic: 2,724; makefile: 96
file content (62 lines) | stat: -rw-r--r-- 1,538 bytes parent folder | download | duplicates (4)
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
# Note that this is NOT a relocatable package
%define ver      1.2.3
%define rel      SNAP
%define prefix   /usr

Summary: GtkGLArea OpenGL widget for GTK+
Name: gtkglarea
Version: %ver
Release: %rel
Copyright: LGPL
Packager: Ray Glendenning <ray.glendenning@hackery.demon.co.uk>
Group: X11/Libraries
Source:  http://www.student.oulu.fi/~jlof/gtkglarea/download/gtkglarea-%{version}.tar.gz
BuildRoot: /var/tmp/gtkglarea-%{version}-root
Docdir: %{prefix}/doc
Requires: Mesa => 3.0, gtk+ => 1.1.5

%description
Just as GTK+ is build on top of GDK, GtkGLArea is built on top of gdkgl which
is basically wrapper around GLX functions. The widget itself is derived from
GtkDrawinigArea widget and adds only few extra functions.

%package devel
Summary: GtkGLArea OpenGL widget for GTK+.  Development libs and headers.
Group: X11/Libraries
Requires: %{name} = %{version} , Mesa-devel => 3.0 , gtk+-devel => 1.1.5

%description devel
Static libraries and header files for development using the GtkGLArea widget.

%prep
%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
make

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)

%doc AUTHORS COPYING ChangeLog INSTALL NEWS README docs/HOWTO.txt docs/gdkgl.txt docs/gtkglarea.txt
%{prefix}/lib/lib*.so.*

%files devel
%defattr(-, root, root)

%{prefix}/include/gtkgl/*
%{prefix}/lib/lib*.*a
%{prefix}/lib/lib*.so
%{prefix}/share/aclocal/*