]>
Commit | Line | Data |
---|---|---|
b220ac20 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with glide3_sdk # build glide3x SDK here (normally built from Glide_V5-DRI.spec) | |
4 | # | |
8c36d1ec | 5 | %define snapdate 20010309 |
1534f84b | 6 | %define rel 17 |
f621645c | 7 | Summary: Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards |
0d091135 ER |
8 | Summary(ko.UTF-8): 3Dfx 부두 벤쉬/3 비디오카드용 Glide 런타임 라이브러리 |
9 | Summary(pl.UTF-8): Biblioteki Glide dla kart 3Dfx Voodoo Banshee oraz Voodoo3 | |
f621645c | 10 | Name: Glide_V3-DRI |
8c36d1ec | 11 | Version: 3.10.0 |
57ec86a7 | 12 | Release: 0.%{snapdate}.%{rel} |
8c55ed12 | 13 | Epoch: 1 |
8662ed33 | 14 | License: 3dfx Glide General Public License, 3Dfx Interactive Inc. |
f36c27f5 | 15 | Group: X11/Libraries |
f36c27f5 | 16 | Source0: cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz |
92fb596b | 17 | # Source0-md5: 42a8e093221b2360ec96191ae0e13ce0 |
f36c27f5 | 18 | Patch0: glide-ia64.patch |
b79d11f1 JB |
19 | Patch1: glide-ac-workaround.patch |
20 | Patch2: glide-h3.patch | |
21 | Patch3: glide-h5.patch | |
a2e27606 | 22 | Patch4: glide-am16.patch |
b7ae2b26 | 23 | Patch5: glide-gcc33.patch |
681e431e JB |
24 | Patch6: glide-ioctl.patch |
25 | Patch7: glide-morearchs.patch | |
06def67c | 26 | Patch8: glide-gcc34.patch |
4592bc09 JB |
27 | Patch9: glide-gcc4.patch |
28 | Patch10: glide-no_redefine_macro.patch | |
1534f84b JB |
29 | Patch11: glide-format.patch |
30 | Patch12: glide-include.patch | |
8662ed33 | 31 | URL: http://glide.sourceforge.net/ |
8c36d1ec | 32 | BuildRequires: autoconf |
3e091b9a | 33 | BuildRequires: automake |
f36c27f5 | 34 | BuildRequires: libtool |
3e091b9a | 35 | BuildRequires: xorg-lib-libX11-devel |
3e091b9a AM |
36 | BuildRequires: xorg-lib-libXext-devel |
37 | BuildRequires: xorg-lib-libXxf86dga-devel | |
38 | BuildRequires: xorg-lib-libXxf86vm-devel | |
30b3328d | 39 | Provides: Glide3-DRI |
35159403 | 40 | Obsoletes: Glide_V5-DRI |
3e091b9a | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f621645c | 42 | |
89b40613 | 43 | %description |
f621645c JR |
44 | This library allows the user to use a 3dfx Interactive Voodoo Banshee |
45 | or Voodoo3 card under Linux with DRI support. The source support DRI | |
46 | or non-DRI versions of Glide. | |
47 | ||
07dcfe42 JR |
48 | %description -l pl.UTF-8 |
49 | Ta biblioteka pozwala użytkownikowi na używanie kart 3dfx Interactive | |
8662ed33 | 50 | Voodoo Banshee lub Voodoo3 pod Linuksem z DRI. Ta wersja zawiera |
5b8fa112 | 51 | wsparcie dla wersji Glide z DRI i bez DRI. |
8d0c7a1f | 52 | |
f621645c JR |
53 | %package devel |
54 | Summary: Development headers for Glide 3.x | |
0d091135 | 55 | Summary(pl.UTF-8): Pliki nagłówkowe Glide 3.x |
f36c27f5 | 56 | Group: X11/Development/Libraries |
fbed22db | 57 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b220ac20 JB |
58 | Requires: Glide3x_SDK >= %{epoch}:%{version} |
59 | Provides: Glide3-DRI-devel = %{version} | |
35159403 | 60 | Obsoletes: Glide_V5-DRI-devel |
f621645c JR |
61 | |
62 | %description devel | |
63 | This package includes the headers files, documentation, and test files | |
64 | necessary for developing applications that use the 3Dfx Interactive | |
5b8fa112 | 65 | Voodoo Banshee or Voodoo3 cards. |
f621645c | 66 | |
07dcfe42 JR |
67 | %description devel -l pl.UTF-8 |
68 | Ten pakiet zawiera pliki nagłówkowe, dokumentacje, oraz pliki tekstowe | |
69 | wymagane przez aplikacje deweloperskie, które używają kart 3Dfx | |
f36c27f5 | 70 | Interactive Voodoo Banshe lub Voodoo3. |
8d0c7a1f | 71 | |
82296548 JR |
72 | %package static |
73 | Summary: Static library Glide 3.x | |
0d091135 | 74 | Summary(pl.UTF-8): Statyczne biblioteki Glide 3.x |
f36c27f5 | 75 | Group: X11/Development/Libraries |
fbed22db | 76 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
b220ac20 | 77 | Provides: Glide3-DRI-static = %{version} |
35159403 | 78 | Obsoletes: Glide_V5-DRI-static |
f621645c | 79 | |
82296548 | 80 | %description static |
5b8fa112 JB |
81 | This package includes the static Glide3 library for Voodoo Banshee or |
82 | Voodoo3 cards. | |
82296548 | 83 | |
07dcfe42 | 84 | %description static -l pl.UTF-8 |
5b8fa112 JB |
85 | Ten pakiet zawiera statyczne biblioteki Glide3 dla kart Voodoo Banshee |
86 | lub Voodoo3. | |
8d0c7a1f | 87 | |
b220ac20 JB |
88 | %package -n Glide3x_SDK |
89 | Summary: Development libraries for Glide 3.x | |
90 | Summary(pl.UTF-8): Część Glide 3.x przeznaczona dla programistów | |
91 | Group: Development/Libraries | |
92 | Conflicts: Glide_SDK | |
93 | ||
94 | %description -n Glide3x_SDK | |
95 | This package includes the header files and test files necessary for | |
96 | developing applications that use any of the 3D accelerators in the | |
97 | 3Dfx Interactive Voodoo line utilizing Glide 3.x interface. | |
98 | ||
99 | %description -n Glide3x_SDK -l pl.UTF-8 | |
100 | Ten pakiet zawiera pliki nagłówkowe i pliki testowe potrzebne do | |
101 | tworzenia aplikacji korzystających z akceleratorów 3D serii 3Dfx | |
102 | Interactive Voodoo przy użyciu interfejsu Glide 3.x. | |
103 | ||
82296548 | 104 | %prep |
8c36d1ec AM |
105 | %setup -q -n glide3x-%{snapdate} |
106 | %patch0 -p1 | |
b79d11f1 JB |
107 | %patch1 -p1 |
108 | %patch2 -p1 | |
109 | %patch3 -p1 | |
a2e27606 | 110 | %patch4 -p1 |
b7ae2b26 | 111 | %patch5 -p1 |
681e431e JB |
112 | %patch6 -p1 |
113 | %patch7 -p1 | |
06def67c | 114 | %patch8 -p1 |
4592bc09 JB |
115 | %patch9 -p2 |
116 | %patch10 -p1 | |
1534f84b JB |
117 | %patch11 -p1 |
118 | %patch12 -p1 | |
952774e5 | 119 | |
f621645c | 120 | %build |
b4ea7476 | 121 | %{__libtoolize} |
e27e2ad4 | 122 | %{__aclocal} |
a539fb77 | 123 | %{__autoconf} |
124 | %{__automake} -i | |
8c36d1ec AM |
125 | %configure \ |
126 | --enable-fx-dri-build \ | |
127 | --enable-fx-glide-hw=h3 \ | |
b79d11f1 | 128 | --enable-fx-debug=no \ |
06def67c | 129 | %ifarch i586 i686 athlon pentium3 pentium4 |
8662ed33 JB |
130 | --enable-amd3d |
131 | %endif | |
8c36d1ec | 132 | |
a0a5ac04 | 133 | %{__make} -j1 -f makefile.autoconf all \ |
f796cf0f | 134 | GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \ |
681e431e | 135 | GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \ |
a0a5ac04 | 136 | LINK_LIBS="-lX11 -lXext -lXxf86dga -lXxf86vm -lm" |
f621645c JR |
137 | |
138 | %install | |
139 | rm -rf $RPM_BUILD_ROOT | |
82296548 | 140 | |
b79d11f1 | 141 | # something is recompiled - use GCFLAGS too |
8c36d1ec | 142 | %{__make} -f makefile.autoconf install \ |
f796cf0f | 143 | GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \ |
b79d11f1 | 144 | GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \ |
a0a5ac04 | 145 | LINK_LIBS="-lX11 -lXext -lXxf86dga -lXxf86vm -lm" \ |
82296548 JR |
146 | DESTDIR=$RPM_BUILD_ROOT |
147 | ||
a2e27606 JB |
148 | # used by tdfx_dri.so from XFree86 |
149 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v3.so | |
150 | # used by ??? | |
b79d11f1 | 151 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so |
b220ac20 | 152 | # used by dlopen in X driver |
b79d11f1 | 153 | ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so |
f621645c | 154 | |
b220ac20 | 155 | %if %{with glide3_sdk} |
f621645c | 156 | # Install the examples and their source, no binaries |
b220ac20 JB |
157 | install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests |
158 | install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests/makefile | |
159 | install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
160 | install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
161 | install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
162 | install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests | |
163 | gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests/*.3df | |
164 | %else | |
165 | %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/glide3 | |
166 | %endif | |
f621645c | 167 | |
f621645c JR |
168 | %clean |
169 | rm -rf $RPM_BUILD_ROOT | |
170 | ||
4592bc09 JB |
171 | %post -p /sbin/ldconfig |
172 | %postun -p /sbin/ldconfig | |
f621645c JR |
173 | |
174 | %files | |
175 | %defattr(644,root,root,755) | |
3639407b | 176 | %doc glide_license.txt |
82296548 | 177 | %attr(755,root,root) %{_libdir}/libglide3.so.*.*.* |
a0a5ac04 | 178 | %attr(755,root,root) %ghost %{_libdir}/libglide3.so.3 |
a2e27606 | 179 | %attr(755,root,root) %{_libdir}/libglide3-v3.so |
f621645c JR |
180 | %attr(755,root,root) %{_libdir}/libglide3x.so |
181 | %attr(755,root,root) %{_libdir}/libglide3x_V3.so | |
f621645c JR |
182 | |
183 | %files devel | |
184 | %defattr(644,root,root,755) | |
8c36d1ec | 185 | %attr(755,root,root) %{_libdir}/libglide3.so |
a0a5ac04 | 186 | %{_libdir}/libglide3.la |
82296548 JR |
187 | |
188 | %files static | |
189 | %defattr(644,root,root,755) | |
a0a5ac04 | 190 | %{_libdir}/libglide3.a |
b220ac20 JB |
191 | |
192 | %if %{with glide3_sdk} | |
18be538d | 193 | %files -n Glide3x_SDK |
b220ac20 JB |
194 | %defattr(644,root,root,755) |
195 | %{_includedir}/glide3 | |
18be538d | 196 | %{_examplesdir}/glide3x-%{version} |
b220ac20 | 197 | %endif |