-
Notifications
You must be signed in to change notification settings - Fork 4
/
freeglut.spec
147 lines (125 loc) · 4.71 KB
/
freeglut.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
136
137
138
139
140
141
142
143
144
145
146
147
#
# spec file for package freeglut (Version 2.6.0)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
# usedforbuild Mesa Mesa-devel aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db diffutils e2fsprogs expat file filesystem fillup findutils flex fontconfig fontconfig-devel gawk gcc gcc-c++ gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libdrm libdrm-devel libgcc libnscd libstdc++ libstdc++-devel libtool libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openmotif-libs openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim xorg-x11-devel xorg-x11-libs zlib zlib-devel
BuildRequires: Mesa-devel gcc-c++ libdrm-devel
Name: freeglut
Summary: Freely Licensed Alternative to the GLUT Library
Version: 2.6.0
Release: 1
URL: http://freeglut.sourceforge.net/
Source0: http://switch.dl.sourceforge.net/sourceforge/freeglut/freeglut-%{version}.tar.gz
# NOTE: SuSE adds the original GLUT man pages. If you don't have the file
# below, comment that line out and remove "-b1" from the setup macro.
Source1: glutman.tar.bz2
License: X11/MIT
Provides: mesaglut
Obsoletes: mesaglut
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
freeglut is a completely Open Source alternative to the OpenGL Utility
Toolkit (GLUT) library. GLUT was originally written by Mark Kilgard to
support the sample programs in the second edition OpenGL Redbook. Since
then, GLUT has been used in a wide variety of practical applications
because it is simple, universally available, and highly portable.
GLUT (and freeglut) allow the user to create and manage windows
containing OpenGL contexts and also read the mouse, keyboard, and
joystick functions on a wide range of platforms.
Authors:
--------
Pawel W. Olszta
Andreas Umbach
Steve Baker
%package devel
Summary: Development Package for freeglut (GLUT Library)
Group: Development/Libraries/X11
Requires: %{name} = %{version}-%{release}
Provides: mesaglut-devel
Obsoletes: mesaglut-devel
%description devel
Freeglut (GLUT library) development package.
%debug_package
%prep
%setup -q -b1
%build
./autogen.sh
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr --libdir=%_libdir
make %{?jobs:-j%jobs}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
# GLUT manual pages
touch man-pages
if test -d ../glut-3.7 ; then
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man3
dir=`pwd`
pushd ../glut-3.7
for i in man/glut/glut*; do
install -m 644 $i ${RPM_BUILD_ROOT}/%{_mandir}/man3/`basename $i man`3
gzip -9 ${RPM_BUILD_ROOT}/%{_mandir}/man3/`basename $i man`3
echo %{_mandir}/man3/`basename $i man`3.gz >> ${dir}/man-pages
done
popd
fi
%post
%run_ldconfig
%postun
%run_ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/libglut.so.*
%files devel -f man-pages
%defattr(-,root,root)
%{_includedir}/GL/*
%{_libdir}/libglut.a
%{_libdir}/libglut.la
%{_libdir}/libglut.so
%changelog -n freeglut
* Sun Apr 05 2009 - [email protected]
- updated to release 2.6.0
* Sat Aug 05 2006 - [email protected]
- Updated build requirements for SuSE 10.1
* Mon Jun 13 2005 - [email protected]
- updated to release 2.4.0
- use autogen.sh
- no need to remove demos
- conditionalized handling of GLUT manual pages
* Thu Apr 29 2004 - [email protected]
- build parallel if available
- build as user
* Mon Dec 15 2003 - [email protected]
- updated to release 2.2.0
* Mousewheel Support for Win32 & X11
* More unified Win32/*nix behavior and code
* Code style cleanups
* Visibility support in Win32
* Many other Good Bug Fixes
* Sat Dec 06 2003 - [email protected]
- updated to release 2.0.1
* fixes a number of bugs with menus
* Fri Oct 10 2003 - [email protected]
- fix build for mips
- satisfy configure checks
* Thu Oct 02 2003 - [email protected]
- provides/obsoletes mesaglut/mesglut-devel now
* Tue Sep 30 2003 - [email protected]
- removed demos
* Tue Sep 30 2003 - [email protected]
- added GLUT manual pages
* Mon Sep 29 2003 - [email protected]
- updated to final release 2.0.0
* Thu Aug 14 2003 - [email protected]
- added GameMode fix (GameModeFixes-4.dif)
* Thu Aug 07 2003 - [email protected]
- created package