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