/[pkgs]/devel/Glide3/Glide3.spec
ViewVC logotype

Contents of /devel/Glide3/Glide3.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (show annotations) (download)
Fri Jul 24 15:30:40 2009 UTC (3 months, 4 weeks ago) by jkeating
Branch: MAIN
CVS Tags: F-12-split, Glide3-20050815-9_fc12, HEAD
Changes since 1.21: +4 -1 lines
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1 Name: Glide3
2 Version: 20050815
3 Release: 9%{?dist}
4 Summary: Glide3 runtime for the 3Dfx Voodoo family of cards
5 # Glide3 is x86/alpha/ia64/x86_64 only, ia64 is untested
6 ExclusiveArch: %{ix86} ia64 x86_64
7 Group: User Interface/X Hardware Support
8 License: Glide
9 URL: http://glide.sourceforge.net
10 # Create the Glide3 tarball by using:
11 # cvs -d :pserver:anonymous@cvs.glide.sourceforge.net:/cvsroot/glide \
12 # co -r glide-devel-branch Glide3
13 # pushd Glide3 ; find . -name CVS -type d |xargs rm -rf
14 # find . -name .cvsignore | xargs rm ; popd
15 # tar jcf Glide3-$(date +"%Y%m%d").tar.bz2 Glide3/
16 Source0: %{name}-%{version}.tar.bz2
17 Source1: glidelink.c
18 Patch0: Glide3-warn.patch
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20 BuildRequires: libX11-devel xorg-x11-proto-devel
21 # Add these to try the experimental DGA support and add DGA=1 to %{glide_flags}
22 # BuildRequires: libXxf86dga-devel libXxf86vm-devel
23 %ifarch %{ix86}
24 BuildRequires: nasm
25 Requires(post): policycoreutils /sbin/ldconfig
26 Requires(postun): policycoreutils /sbin/ldconfig
27 %endif
28
29 %description
30 Glide3 provides the necessary low-level interface glue between the Mesa
31 3D graphics library, and 3Dfx Voodoo series of hardware. This package is
32 required by the Xorg tdfx driver in order to provide 3D acceleration
33 support for the 3Dfx Voodoo 3 & 5. This package also contains support for
34 the Voodoo 2 & 1 in order to use the 3Dfx Voodoo 2 or 1 you need the
35 Glide3-libGL package or a native Glide3 application.
36
37
38 %package devel
39 Summary: Development libraries and headers for Glide3
40 Group: Development/Libraries
41 Requires: Glide3 = %{version}
42
43 %description devel
44 Glide3-devel contains the developmental files that must be installed in order
45 to compile native Glide3 applications.
46
47
48 %prep
49 %setup -q -n Glide3
50 %patch0 -p1 -z .warn
51
52
53 %build
54 %ifarch %{ix86}
55 %define glide_flags USE_X86=1 USE_3DNOW=1 USE_MMX=1 USE_SSE=1 USE_SSE2=1 TEXUS2=1
56 %else
57 %define glide_flags TEXUS2=1
58 %endif
59
60 make -f makefile.linux FX_GLIDE_HW=h5 DRI=1 XPATH=/usr/X11R6/%{_lib} \
61 OPTFLAGS="$RPM_OPT_FLAGS -Wno-unused-parameter" %{glide_flags}
62 mv h5/lib/libglide3.so libglide3-v5.so
63 make -f makefile.linux FX_GLIDE_HW=h5 realclean
64
65 make -f makefile.linux FX_GLIDE_HW=h3 DRI=1 XPATH=/usr/X11R6/%{_lib} \
66 OPTFLAGS="$RPM_OPT_FLAGS -Wno-unused-parameter" %{glide_flags}
67 mv h3/lib/libglide3.so libglide3-v3.so
68 make -f makefile.linux FX_GLIDE_HW=h3 realclean
69
70 make -f makefile.linux FX_GLIDE_HW=cvg \
71 OPTFLAGS="$RPM_OPT_FLAGS -Wno-unused-parameter" %{glide_flags}
72 mv cvg/lib/libglide3x.so libglide3-v2.so
73 make -f makefile.linux FX_GLIDE_HW=cvg realclean
74
75 #Sorry, no 64 bit support for Voodoo1 (yet)
76 %ifarch %{ix86}
77 make -f makefile.linux FX_GLIDE_HW=sst1 \
78 OPTFLAGS="$RPM_OPT_FLAGS -Wno-unused-parameter" %{glide_flags}
79 mv sst1/lib/libglide3x.so libglide3-v1.so
80 make -f makefile.linux FX_GLIDE_HW=sst1 realclean
81 %endif
82
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 %define libver 3.10.0
87 mkdir -p $RPM_BUILD_ROOT/%{_libdir}
88 mkdir -p $RPM_BUILD_ROOT/%{_includedir}/glide3
89
90 install -m 755 *.so $RPM_BUILD_ROOT/%{_libdir}
91 # Point to v2 by default
92 ln -snf libglide3-v2.so $RPM_BUILD_ROOT%{_libdir}/libglide3.so.%{libver}
93 ln -snf libglide3.so.%{libver} $RPM_BUILD_ROOT%{_libdir}/libglide3.so.3
94 ln -snf libglide3.so.%{libver} $RPM_BUILD_ROOT%{_libdir}/libglide3.so
95
96 install -p -m 644 swlibs/fxmisc/3dfx.h $RPM_BUILD_ROOT/%{_includedir}/glide3
97 install -p -m 644 h5/glide3/src/g3ext.h $RPM_BUILD_ROOT/%{_includedir}/glide3
98 install -p -m 644 h5/glide3/src/glide.h $RPM_BUILD_ROOT/%{_includedir}/glide3
99 install -p -m 644 h5/glide3/src/glidesys.h $RPM_BUILD_ROOT/%{_includedir}/glide3
100 install -p -m 644 h5/glide3/src/glideutl.h $RPM_BUILD_ROOT/%{_includedir}/glide3
101 install -p -m 644 swlibs/fxmisc/linutil.h $RPM_BUILD_ROOT/%{_includedir}/glide3
102 install -p -m 644 h5/incsrc/sst1vid.h $RPM_BUILD_ROOT/%{_includedir}/glide3
103 install -p -m 644 swlibs/texus2/lib/texus.h $RPM_BUILD_ROOT/%{_includedir}/glide3
104
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109
110 %ifarch %{ix86}
111 %post
112 /sbin/ldconfig
113 # Set SELinux file_context in the policy
114 semanage fcontext -a -t textrel_shlib_t '%{_libdir}/libglide3-v.\.so' 2>/dev/null || :
115 # Actually change the context
116 chcon -t textrel_shlib_t %{_libdir}/libglide3-v?.so || :
117 %else
118 %post -p /sbin/ldconfig
119 %endif
120
121 %ifarch %{ix86}
122 %postun
123 /sbin/ldconfig
124 # SELinux support
125 if [ $1 -eq 0 ]; then # final removal
126 semanage fcontext -d -t textrel_shlib_t '%{_libdir}/libglide3-v.\.so' 2>/dev/null || :
127 fi
128 %else
129 %postun -p /sbin/ldconfig
130 %endif
131
132
133 %files
134 %defattr(-,root,root,-)
135 %doc COPYING
136 %{_libdir}/libglide3.so.3
137 %{_libdir}/libglide3.so.%{libver}
138 %ifarch %{ix86}
139 %{_libdir}/libglide3-v1.so
140 %endif
141 %{_libdir}/libglide3-v2.so
142 %{_libdir}/libglide3-v3.so
143 %{_libdir}/libglide3-v5.so
144
145 %files devel
146 %defattr(-,root,root,-)
147 %dir %{_includedir}/glide3
148 %{_includedir}/glide3/*
149 %{_libdir}/libglide3.so
150
151
152 %changelog
153 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20050815-9
154 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
155
156 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20050815-8
157 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
158
159 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 20050815-7
160 - Autorebuild for GCC 4.3
161
162 * Sun Aug 5 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 20050815-6
163 - Update License tag for new Licensing Guidelines compliance
164
165 * Mon Aug 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 20050815-5
166 - FE6 Rebuild
167
168 * Fri Apr 28 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 20050815-4
169 - Add scripts to set SELinux type for the .so files to textrel_shlib_t
170 on i386, because of the non PIC asm used on i386 (bz 187484).
171
172 * Mon Feb 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 20050815-3
173 - Bump release and rebuild for new gcc4.1 and glibc.
174 - add %%{?dist} for consistency with my other packages
175
176 * Mon Jan 16 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 20050815-2
177 - Add modular Xorg BuildReqs
178 - Add a patch which fixes gcc4.1 warnings
179
180 * Mon Aug 15 2005 Hans de Goede <j.w.r.degoede@hhs.nl> 20050815-1
181 - Add -soname to linkerflags, so that we report the correct soname,
182 otherwise rpm can't properly resolve dependencies because of the
183 symlink stuff we do (merged upstream).
184
185 * Sat Aug 13 2005 Hans de Goede <j.w.r.degoede@hhs.nl> 20050813-1
186 - Work together with upstream to keep Glide alive, use upstream CVS
187 glide-devel-branch as a base.
188 - Intergrate all our patches into upstream CVS glide-devel-branch.
189 - New upstream branch (re)adds support for Voodoo1 (sst1).
190 - Make Voodoo2 (cvg) code 64 bit clean (merged upstream).
191
192 * Mon May 9 2005 Hans de Goede <j.w.r.degoede@hhs.nl>
193 - Change -L/usr/X11R6/lib to -L/usr/X11R6/lib64 when building on
194 x86_64 .
195 - Add an %%ifarch around the install command for the v2 version.
196 - Modify the description to match the current state of affairs.
197
198 * Thu May 5 2005 Hans de Goede <j.w.r.degoede@hhs.nl>
199 - More x86_64 fixes added to Glide-64bit.patch.
200 - Removed ancient Conflicts: XFree86-libs = 4.1.0
201
202 * Wed May 4 2005 Hans de Goede <j.w.r.degoede@hhs.nl>
203 - Tested amd3dnow code on a voodoo2, works for me (tm). Enabled
204 amd3dnow code on i386 for now.
205 - Added FX_GLIDE_I386 AM-conditonal and define, only use and build
206 cpudtect.s when this is set. This should fix the cpudtect assemble problem
207 on x86_64. Made this part of Glide-64bit.patch.
208
209 * Mon May 2 2005 Hans de Goede <j.w.r.degoede@hhs.nl>
210 - Fix amd3dnow code for cvg(voodoo2) so that it not only compiles but
211 also links. Still untested, so still disabled.
212
213 * Sun May 1 2005 Hans de Goede <j.w.r.degoede@hhs.nl>
214 - Added a patch which fixes PIC compilation of amd3dnow asm code
215 for h3 and h5 and which fixes compilation of amd3dnow code in general
216 for cvg. Currently amd3dnow support is still disabled because it doesn't
217 work on my voodoo2 (linking problem).
218 - replaced configure with %%configure
219
220 * Sat Apr 30 2005 Hans de Goede <j.w.r.degoede@hhs.nl>
221 - Removed unnescearry makefile mods from Glide3-gcc4.patch. The option
222 I added disabled another warning then the one I was trying to get disabled.
223 - Replaced glide-ia64.patch with Glide-64bit.patch this patch adds support
224 for x86_64 and has lots of "long" replaced with "unsigned long" so that
225 the code stays 100% the same on i386.
226 - Made the use of the new 64bit patch unconditional (iow for all archs).
227 - Fixed Glide3-fixes.patch so that compilation with the 64bit patch applied
228 actually works.
229 - Don't build support for voodoo2 / cvg on 64 bit archs since the 64bit patch
230 only adds 64bit support for voodoo3 & 5 / h3 & h5.
231
232 * Tue Apr 26 2005 Hans de Goede <j.w.r.degoede@hhs.nl>
233 - added x86_64 to ExclusiveArch list
234 - apply glide-ia64.patch for x86_64
235 - added Glide3-gcc4.patch which fixes all gcc4 errors
236 - first attempt to clean up the specfile a bit
237
238 * Sat Sep 4 2004 Hans de Goede <j.w.r.degoede@hhs.nl>
239 - added Glide3-fixes.patch which:
240 * Generally do everything needed to get this to compile on FC3test1
241 * replaces gcc3-patch with a patch which fixes the macros instead of
242 the caller of the macros
243 * replaces and fixes libtool patch
244 * replaces and improves gcc34 patch
245 * also fix this all for voodoo2
246 * fixes a bug in g3df.c which caused some of the test programs to fail
247 - also compile for Voodoo 2 (cvg)
248 - do the make install for the Voodoo 5 (h5) build not the (h3) since the
249 h5 headers define some additional texture types which Mesa 6 needs to compile
250 - made the symlink point to voodoo2 by default, since the XFree included mesa
251 which is used for h3 and h5 knows how to load the correct Glide itself.
252 Maybe we should reintroduce glidelink, since the symlink will still be needed
253 for native glide apps on h3 and h5.
254 - removed unused automake version detection macros
255 - removed Prereq ldconfig, rpm should pick this up automaticly
256 - removed conflicting parts from glide-ia64 patch, these are all handled
257 in an architecture indepent way in Glide3-fixes.patch, move it back to
258 position 0.
259
260 * Mon Jul 5 2004 Mike A. Harris <mharris@redhat.com> 20010520-33
261 - Moved glide-ia64 patch from position 0 to position 50 as we no longer
262 build Glide3 on these architectures. The patch should be reworked to apply
263 cleanly after all of the other patches we apply that are required for our
264 real builds. Currently it will just fail to apply. (#126734)
265
266 * Wed Jun 23 2004 Mike A. Harris <mharris@redhat.com>
267 - Fixed missing dependancy in Glide3
268
269 * Fri Jun 18 2004 Alan Cox <alan@redhat.com>
270 - Fixed gcc 3.4 compile breakage. It remains to see if it works. If not
271 I'd try turning off aliasing in gcc
272
273 * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
274 - rebuilt
275
276 * Fri Mar 19 2004 Mike A. Harris <mharris@redhat.com> 20010520-30
277 - Fixes from Alan Cox, who got Glide3 to build in Fedora Core devel:
278 - Added Glide3-gcc3.patch, Glide3-new-libtool.patch
279 - Use aclocal instead of aclocal-1.4, and automake instead of automake-1.4
280 - Run aclocal before libtoolize
281 - Added with_glide3_devel macro, enabled by default for now, which disables
282 the creation of the Glide3-devel subpackage. XFree86 4.2.0 and later seem
283 to dlopen() Glide3 now and not require it during build time, so there is not
284 any need to include Glide3-devel any longer. This needs to be install
285 tested and runtime tested first however, so we still include Glide3-devel
286 for now.
287 - Changed Prereq: /sbin/ldconfig to Requires(post,postun): /sbin/ldconfig
288
289 * Fri Feb 27 2004 Mike A. Harris <mharris@redhat.com> 20010520-29
290 - Added COPYING file to %%doc in files list (#115945)
291
292 * Thu Jan 29 2004 Mike A. Harris <mharris@redhat.com> 20010520-28
293 - Rebuild for Fedora Core 2
294
295 * Mon Sep 1 2003 Mike A. Harris <mharris@redhat.com> 20010520-27
296 - Rebuild 20010520-26 for Cambridge, for self hosting chocolatey goodness
297 - ia64 wont compile anymore and the problems are far too large to bother
298 fixing. Glide3 is now supported only on x86/alpha
299
300 * Tue Aug 5 2003 Elliot Lee <sopwith@redhat.com> 20010520-26
301 - Fix autoconf version
302
303 * Wed Jan 22 2003 Tim Powers <timp@redhat.com> 20010520-25
304 - rebuilt
305
306 * Fri Dec 20 2002 Mike A. Harris <mharris@redhat.com> 20010520-24
307 - Reworded the -devel package description for bug (#79477)
308
309 * Mon Nov 25 2002 Mike A. Harris <mharris@redhat.com> 20010520-23
310 - Bump and rebuild to pick up Alpha which did not get built in -22 somehow
311
312 * Sat Nov 23 2002 Mike A. Harris <mharris@redhat.com> 20010520-22
313 - Moved comment from XFree86 package to here on how to create Glide3 tarball
314
315 * Fri Nov 22 2002 Mike A. Harris <mharris@redhat.com> 20010520-21
316 - Remove /usr/lib/libglide3.{a,la} from buildroot since we dont ship them
317 - Use _libdir, _includedir everywhere
318 - Remove redundant ExcludeArch directive for s390
319
320 * Thu Oct 3 2002 Mike A. Harris <mharris@redhat.com> 20010520-20
321 - All-arch rebuild
322 - Added "Exclusivearch: {ix86}, alpha, ia64" as Glide3 is not ported to
323 other arches and likely never ever will be. That way lays madness.
324
325 * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 20010520-18
326 - automated rebuild
327
328 * Wed May 29 2002 Elliot Lee <sopwith@redhat.com> 20010520-17
329 - Make it specify the auto* tool versions explicitly.
330
331 * Tue May 28 2002 Mike A. Harris <mharris@redhat.com> 20010520-16
332 - Rebuilt with gcc 3.1 with new GNU autoconk/autobreak/libfool
333 - Added Glide3-new-autotools-bugfix.patch to fix problems with Glide automake
334 files.
335
336 * Wed Apr 3 2002 Mike A. Harris <mharris@redhat.com> 20010520-13
337 - Removed glidelink cruft entirely.
338 - Simplified spec install stage, filelist, etc to minimize error potential
339 - Fixed dangling symlink bug (#61521)
340
341 * Sun Mar 10 2002 Mike A. Harris <mharris@redhat.com> 20010520-12
342 - Removed all the old /usr/lib/lib* files, and removed the /usr/lib/glide3
343 directory. Moved the Voodoo 3 and voodoo 5 glide libs directly into
344 /usr/lib where the XFree86 4.2.0 tdfx dri driver will load them automatically.
345
346 * Thu Feb 21 2002 Mike A. Harris <mharris@redhat.com> 20010520-11
347 - Made glidelink conditional, and disabled by default, as it is not needed
348 in XFree86 4.2.0 as Mesa now loads the proper Glide3 library on its own.
349 - Added buildrequires kudzu-devel (#59960)
350
351 * Sat Jan 26 2002 Mike A. Harris <mharris@redhat.com> 20010520-10
352 - Added autoconf version detection and override via __automake so Glide3 will
353 build on any Red Hat Linux 7.* or rawhide system without specfile editing.
354 - Added -q flag to setup section
355
356 * Fri Jan 25 2002 Mike A. Harris <mharris@redhat.com> 20010520-9
357 - Fixed a build failure on ia64 with the ia64 patch
358
359 * Fri Jan 25 2002 Mike A. Harris <mharris@redhat.com> 20010520-8
360 - Undeprecated the Glide3 package that was merged into XFree86 packaging as
361 it seemed to create more problems than it solved. Took the RHL 7.2 package
362 as a starting point, and deintegrated Glide from the XFree86 4.2.0 package
363 back to separate packaging. Bumped release up to -8
364 - Changed Copyright tag to License
365 - Added Glide3-redhat-cleanup-1.patch to clean up some compiler warnings.
366 - Added Conflicts: XFree86-libs = 4.1.0 and Conflicts: XFree86-devel = 4.1.0
367 - Fixed BuildRoot with _tmppath
368
369 * Mon Feb 19 2001 Bill Nottingham <notting@redhat.com>
370 - fix typo in ia64 patch, only apply patch on alpha/ia64 (#27889)
371
372 * Thu Dec 21 2000 Bill Nottingham <notting@redhat.com>
373 - fix alpha asm (rth@redhat.com)
374
375 * Wed Dec 20 2000 Bill Nottingham <notting@redhat.com>
376 - update CVS
377 - build in 7.1 tree
378
379 * Wed Aug 23 2000 Bill Nottingham <notting@redhat.com>
380 - initial packaging

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2