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