]> git.pld-linux.org Git - packages/Glide_V3-DRI.git/blob - Glide_V3-DRI.spec
- memory barriers and fake CPU detection for ppc, sparc, x86_64
[packages/Glide_V3-DRI.git] / Glide_V3-DRI.spec
1 %define snapdate 20010309
2 Summary:        Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
3 Summary(ko):    3Dfx ºÎµÎ º¥½¬/3 ºñµð¿ÀÄ«µå¿ë Glide ·±Å¸ÀÓ ¶óÀ̺귯¸®
4 Summary(pl):    Biblioteki Glide dla kart 3Dfx Voodoo Banshee oraz Voodoo3
5 Name:           Glide_V3-DRI
6 Version:        3.10.0
7 Release:        0.%{snapdate}.9
8 Epoch:          1
9 License:        3dfx Glide General Public License, 3Dfx Interactive Inc.
10 Vendor:         3dfx Interactive Inc.
11 Group:          X11/Libraries
12 Source0:        cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz
13 # Source0-md5:  42a8e093221b2360ec96191ae0e13ce0
14 Patch0:         glide-ia64.patch
15 Patch1:         glide-ac-workaround.patch
16 Patch2:         glide-h3.patch
17 Patch3:         glide-h5.patch
18 Patch4:         glide-am16.patch
19 Patch5:         glide-gcc33.patch
20 Icon:           3dfx.gif
21 URL:            http://glide.sourceforge.net/
22 BuildRequires:  XFree86-devel
23 BuildRequires:  automake
24 BuildRequires:  autoconf
25 BuildRequires:  libtool
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Provides:       Glide3-DRI
28 Obsoletes:      Glide_V5-DRI
29
30 %description
31 This library allows the user to use a 3dfx Interactive Voodoo Banshee
32 or Voodoo3 card under Linux with DRI support. The source support DRI
33 or non-DRI versions of Glide.
34
35 %description -l pl
36 Ta biblioteka pozwala u¿ytkownikowi na u¿ywanie kart 3dfx Interactive
37 Voodoo Banshee lub Voodoo3 pod Linuksem z DRI. Ta wersja zawiera
38 wsparcie dla wersji Glide z DRI i bez DRI.
39
40 %package devel
41 Summary:        Development headers for Glide 3.x
42 Summary(pl):    Pliki nag³ówkowe Glide 3.x
43 Group:          X11/Development/Libraries
44 Requires:       %{name} = %{epoch}:%{version}-%{release}
45 Provides:       Glide3-DRI-devel
46 Obsoletes:      Glide_V5-DRI-devel
47
48 %description devel
49 This package includes the headers files, documentation, and test files
50 necessary for developing applications that use the 3Dfx Interactive
51 Voodoo Banshee or Voodoo3 cards.
52
53 %description devel -l pl
54 Ten pakiet zawiera pliki nag³ówkowe, dokumentacje, oraz pliki tekstowe
55 wymagane przez aplikacje deweloperskie, które u¿ywaj± kart 3Dfx
56 Interactive Voodoo Banshe lub Voodoo3.
57
58 %package static
59 Summary:        Static library Glide 3.x
60 Summary(pl):    Statyczne biblioteki Glide 3.x
61 Group:          X11/Development/Libraries
62 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
63 Provides:       Glide3-DRI-static
64 Obsoletes:      Glide_V5-DRI-static
65
66 %description static
67 This package includes the static Glide3 library for Voodoo Banshee or
68 Voodoo3 cards.
69
70 %description static -l pl
71 Ten pakiet zawiera statyczne biblioteki Glide3 dla kart Voodoo Banshee
72 lub Voodoo3.
73
74 %prep
75 %setup -q -n glide3x-%{snapdate}
76 %patch0 -p1
77 %patch1 -p1
78 %patch2 -p1
79 %patch3 -p1
80 %patch4 -p1
81 %patch5 -p1
82
83 %build
84 rm -f missing
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %{__automake} -i
89 %configure \
90         --enable-fx-dri-build \
91         --enable-fx-glide-hw=h3 \
92         --enable-fx-debug=no \
93 %ifarch i586 i686 athlon
94         --enable-amd3d
95 %endif
96
97 %{__make} -f makefile.autoconf all \
98         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
99         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}"
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
104
105 # something is recompiled - use GCFLAGS too
106 %{__make} -f makefile.autoconf install \
107         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
108         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 # used by tdfx_dri.so from XFree86
112 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v3.so
113 # used by ???
114 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
115 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
116
117 # Install the examples and their source, no binaries
118 install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
119 install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
120 install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
121 install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
122 install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post   -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
129
130 %files
131 %defattr(644,root,root,755)
132 %doc glide_license.txt
133 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
134 %attr(755,root,root) %{_libdir}/libglide3-v3.so
135 %attr(755,root,root) %{_libdir}/libglide3x.so
136 %attr(755,root,root) %{_libdir}/libglide3x_V3.so
137
138 %files devel
139 %defattr(644,root,root,755)
140 %{_examplesdir}/glide3
141 %{_libdir}/lib*.la
142 %attr(755,root,root) %{_libdir}/libglide3.so
143 %{_includedir}/glide3
144
145 %files static
146 %defattr(644,root,root,755)
147 %{_libdir}/lib*.a
This page took 0.084741 seconds and 3 git commands to generate.