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